Open source remastering of the Freespace 2 engine
HudGaugeTargetBox Class Reference

#include <hudtargetbox.h>

Inheritance diagram for HudGaugeTargetBox:

Public Member Functions

 HudGaugeTargetBox ()
void initBitmaps (char *fname_monitor, char *fname_monitor_mask, char *fname_integrity, char *fname_static)
void initViewportOffsets (int x, int y)
void initViewportSize (int w, int h)
void initIntegrityOffsets (int x, int y)
void initIntegrityHeight (int h)
void initStatusOffsets (int x, int y)
void initNameOffsets (int x, int y)
void initClassOffsets (int x, int y)
void initDistOffsets (int x, int y)
void initSpeedOffsets (int x, int y)
void initCargoStringOffsets (int x, int y)
void initHullOffsets (int x, int y)
void initCargoScanStartOffsets (int x, int y)
void initCargoScanSize (int w, int h)
void initSubsysNameOffsets (int x, int y, bool activate)
void initSubsysIntegrityOffsets (int x, int y, bool activate)
void initDisabledStatusOffsets (int x, int y, bool activate)
void initDesaturate (bool desaturate)
void initialize ()
void pageIn ()
void render (float frametime)
void renderTargetShip (object *target_objp)
void renderTargetWeapon (object *target_objp)
void renderTargetDebris (object *target_objp)
void renderTargetAsteroid (object *target_objp)
void renderTargetJumpNode (object *target_objp)
void renderTargetSetup (vec3d *camera_eye, matrix *camera_orient, float zoom)
void renderTargetClose ()
void renderTargetForeground ()
void renderTargetIntegrity (int disabled, int force_obj_num=-1)
int maybeFlashElement (int index, int flash_fast=0)
void renderTargetShipInfo (object *target_objp)
void maybeRenderCargoScan (ship_info *target_sip)
void initFlashTimer (int index)
void showTargetData (float frametime)
- Public Member Functions inherited from HudGauge
 HudGauge ()
 HudGauge (int _gauge_object, int _gauge_config, bool _slew, bool _message, int _disabled_views, int r, int g, int b)
 HudGauge (int _gauge_config, bool _slew, int r, int g, int b, char *_custom_name, char *_custom_text, char *frame_fname, int txtoffset_x, int txtoffset_y)
virtual ~HudGauge ()
void initPosition (int x, int y)
void initBaseResolution (int w, int h)
void initSlew (bool slew)
void initFont (int input_font_num)
void initCockpitTarget (const char *display_name, int _target_x, int _target_y, int _target_w, int _target_h, int _canvas_w, int _canvas_h)
void initRenderStatus (bool render)
int getConfigType ()
int getObjectType ()
void getPosition (int *x, int *y)
bool isOffbyDefault ()
bool isActive ()
void updateColor (int r, int g, int b, int a=255)
void lockConfigColor (bool lock)
void sexpLockConfigColor (bool lock)
void updateActive (bool show)
void updatePopUp (bool pop_up_flag)
void updateSexpOverride (bool sexp)
void startFlashSexp ()
int maybeFlashSexp ()
bool flashExpiredSexp ()
void resetTimers ()
const char * getCustomGaugeName ()
void updateCustomGaugeCoords (int _x, int _y)
void updateCustomGaugeFrame (int frame_offset)
void updateCustomGaugeText (const char *txt)
void updateCustomGaugeText (const SCP_string &txt)
const char * getCustomGaugeText ()
void startPopUp (int time=4000)
int popUpActive ()
virtual void preprocess ()
virtual bool canRender ()
virtual void onFrame (float frametime)
bool setupRenderCanvas (int render_target=-1)
void setCockpitTarget (const cockpit_display *display)
void resetCockpitTarget ()
void setFont ()
void setGaugeColor (int bright_index=-4)
void renderBitmap (int x, int y)
void renderBitmap (int frame, int x, int y)
void renderBitmapColor (int frame, int x, int y)
void renderBitmapUv (int frame, int x, int y, int w, int h, float u0, float v0, float u1, float v1)
void renderBitmapEx (int frame, int x, int y, int w, int h, int sx, int sy)
void renderString (int x, int y, const char *str)
void renderString (int x, int y, int gauge_id, const char *str)
void renderStringAlignCenter (int x, int y, int area_width, const char *s)
void renderPrintf (int x, int y, const char *format,...)
void renderPrintf (int x, int y, int gauge_id, const char *format,...)
void renderLine (int x1, int y1, int x2, int y2)
void renderGradientLine (int x1, int y1, int x2, int y2)
void renderRect (int x, int y, int w, int h)
void renderCircle (int x, int y, int diameter)
void unsize (int *x, int *y)
void unsize (float *x, float *y)
void resize (int *x, int *y)
void resize (float *x, float *y)
void setClip (int x, int y, int w, int h)
void resetClip ()

Additional Inherited Members

- Protected Attributes inherited from HudGauge
int position [2]
int base_w
int base_h
color gauge_color
int gauge_config
int gauge_object
int font_num
bool lock_color
bool sexp_lock_color
bool reticle_follow
bool active
bool off_by_default
bool sexp_override
bool pop_up
int popup_timer
bool message_gauge
int disabled_views
int flash_duration
int flash_next
bool flash_status
bool custom_gauge
hud_frames custom_frame
int custom_frame_offset
int textoffset_x
int textoffset_y
char custom_name [NAME_LENGTH]
SCP_string custom_text
SCP_string default_text
char texture_target_fname [MAX_FILENAME_LEN]
int texture_target
int canvas_w
int canvas_h
int target_w
int target_h
int target_x
int target_y
int display_offset_x
int display_offset_y

Detailed Description

Definition at line 43 of file hudtargetbox.h.

Constructor & Destructor Documentation

HudGaugeTargetBox::HudGaugeTargetBox ( )

Definition at line 206 of file hudtargetbox.cpp.

Member Function Documentation

void HudGaugeTargetBox::initBitmaps ( char *  fname_monitor,
char *  fname_monitor_mask,
char *  fname_integrity,
char *  fname_static 

Definition at line 318 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initCargoScanSize ( int  w,
int  h 

Definition at line 286 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initCargoScanStartOffsets ( int  x,
int  y 

Definition at line 280 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initCargoStringOffsets ( int  x,
int  y 

Definition at line 268 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initClassOffsets ( int  x,
int  y 

Definition at line 250 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initDesaturate ( bool  desaturate)

Definition at line 313 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initDisabledStatusOffsets ( int  x,
int  y,
bool  activate 

Definition at line 306 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initDistOffsets ( int  x,
int  y 

Definition at line 256 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initFlashTimer ( int  index)

Definition at line 352 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initHullOffsets ( int  x,
int  y 

Definition at line 274 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initialize ( )

Reimplemented from HudGauge.

Definition at line 341 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initIntegrityHeight ( int  h)

Definition at line 233 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initIntegrityOffsets ( int  x,
int  y 

Definition at line 227 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initNameOffsets ( int  x,
int  y 

Definition at line 244 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initSpeedOffsets ( int  x,
int  y 

Definition at line 262 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initStatusOffsets ( int  x,
int  y 

Definition at line 238 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initSubsysIntegrityOffsets ( int  x,
int  y,
bool  activate 

Definition at line 299 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initSubsysNameOffsets ( int  x,
int  y,
bool  activate 

Definition at line 292 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initViewportOffsets ( int  x,
int  y 

Definition at line 215 of file hudtargetbox.cpp.

void HudGaugeTargetBox::initViewportSize ( int  w,
int  h 

Definition at line 221 of file hudtargetbox.cpp.

int HudGaugeTargetBox::maybeFlashElement ( int  index,
int  flash_fast = 0 

Definition at line 1302 of file hudtargetbox.cpp.

void HudGaugeTargetBox::maybeRenderCargoScan ( ship_info target_sip)

If the player is scanning for cargo, draw some cool scanning lines on the target monitor

Definition at line 1869 of file hudtargetbox.cpp.

void HudGaugeTargetBox::pageIn ( )

Reimplemented from HudGauge.

Definition at line 2300 of file hudtargetbox.cpp.

void HudGaugeTargetBox::render ( float  frametime)

Reimplemented from HudGauge.

Definition at line 358 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetAsteroid ( object target_objp)
Formerly hud_render_target_asteroid(object *target_objp)

Definition at line 1056 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetClose ( )

Definition at line 1328 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetDebris ( object target_objp)
formerly hud_render_target_debris(object *target_objp) (Swifty)

Definition at line 693 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetForeground ( )

Definition at line 436 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetIntegrity ( int  disabled,
int  force_obj_num = -1 

Draw the integrity bar that is on the right of the target monitor

Definition at line 446 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetJumpNode ( object target_objp)

Render a jump node on the target monitor

Formerly hud_render_target_jump_node(object *target_objp)

Definition at line 1181 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetSetup ( vec3d camera_eye,
matrix camera_orient,
float  zoom 

Definition at line 500 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetShip ( object target_objp)

Definition at line 527 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetShipInfo ( object target_objp)

Definition at line 1613 of file hudtargetbox.cpp.

void HudGaugeTargetBox::renderTargetWeapon ( object target_objp)
Formerly hud_render_target_weapon(object *target_objp)

Definition at line 797 of file hudtargetbox.cpp.

void HudGaugeTargetBox::showTargetData ( float  frametime)

Definition at line 1910 of file hudtargetbox.cpp.

The documentation for this class was generated from the following files: