Open source remastering of the Freespace 2 engine
HudGaugeLock Class Reference

#include <hudlock.h>

Inheritance diagram for HudGaugeLock:

Public Member Functions

 HudGaugeLock ()
void initBitmaps (char *lock_gauge_fname, char *lock_anim_fname)
void initGaugeHalfSize (int w, int h)
void initSpinHalfSize (int w, int h)
void initTriHeight (float h)
void initTriBase (float length)
void initTargetBoxSize (int w, int h)
void initLoopLockedAnim (bool loop)
void render (float frametime)
void renderLockTriangles (int center_x, int center_y, float frametime)
void renderLockTrianglesOld (int center_x, int center_y, int radius)
void pageIn ()
void initialize ()
- 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 ()

Protected Attributes

hud_anim Lock_gauge
hud_anim Lock_anim
bool loop_locked_anim
int Lock_gauge_half_w
int Lock_gauge_half_h
int Lockspin_half_w
int Lockspin_half_h
float Lock_triangle_height
float Lock_triangle_base
int Lock_target_box_width
int Lock_target_box_height
int Rotate_time_id
int Lock_gauge_draw_stamp
int Lock_gauge_draw
bool Last_lock_status
- 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 26 of file hudlock.h.

Constructor & Destructor Documentation

HudGaugeLock::HudGaugeLock ( )

Definition at line 107 of file hudlock.cpp.

Member Function Documentation

void HudGaugeLock::initBitmaps ( char *  lock_gauge_fname,
char *  lock_anim_fname 

Definition at line 145 of file hudlock.cpp.

void HudGaugeLock::initGaugeHalfSize ( int  w,
int  h 

Definition at line 112 of file hudlock.cpp.

void HudGaugeLock::initialize ( )

Reimplemented from HudGauge.

Definition at line 154 of file hudlock.cpp.

void HudGaugeLock::initLoopLockedAnim ( bool  loop)

Definition at line 140 of file hudlock.cpp.

void HudGaugeLock::initSpinHalfSize ( int  w,
int  h 

Definition at line 118 of file hudlock.cpp.

void HudGaugeLock::initTargetBoxSize ( int  w,
int  h 

Definition at line 134 of file hudlock.cpp.

void HudGaugeLock::initTriBase ( float  length)

Definition at line 129 of file hudlock.cpp.

void HudGaugeLock::initTriHeight ( float  h)

Definition at line 124 of file hudlock.cpp.

void HudGaugeLock::pageIn ( )

Reimplemented from HudGauge.

Definition at line 1146 of file hudlock.cpp.

void HudGaugeLock::render ( float  frametime)

Reimplemented from HudGauge.

Definition at line 171 of file hudlock.cpp.

void HudGaugeLock::renderLockTriangles ( int  center_x,
int  center_y,
float  frametime 

Definition at line 668 of file hudlock.cpp.

void HudGaugeLock::renderLockTrianglesOld ( int  center_x,
int  center_y,
int  radius 

Definition at line 635 of file hudlock.cpp.

Member Data Documentation

bool HudGaugeLock::Last_lock_status

Definition at line 47 of file hudlock.h.

hud_anim HudGaugeLock::Lock_anim

Definition at line 30 of file hudlock.h.

hud_anim HudGaugeLock::Lock_gauge

Definition at line 29 of file hudlock.h.

int HudGaugeLock::Lock_gauge_draw

Definition at line 45 of file hudlock.h.

int HudGaugeLock::Lock_gauge_draw_stamp

Definition at line 44 of file hudlock.h.

int HudGaugeLock::Lock_gauge_half_h

Definition at line 35 of file hudlock.h.

int HudGaugeLock::Lock_gauge_half_w

Definition at line 34 of file hudlock.h.

int HudGaugeLock::Lock_target_box_height

Definition at line 41 of file hudlock.h.

int HudGaugeLock::Lock_target_box_width

Definition at line 40 of file hudlock.h.

float HudGaugeLock::Lock_triangle_base

Definition at line 39 of file hudlock.h.

float HudGaugeLock::Lock_triangle_height

Definition at line 38 of file hudlock.h.

int HudGaugeLock::Lockspin_half_h

Definition at line 37 of file hudlock.h.

int HudGaugeLock::Lockspin_half_w

Definition at line 36 of file hudlock.h.

bool HudGaugeLock::loop_locked_anim

Definition at line 32 of file hudlock.h.

int HudGaugeLock::Rotate_time_id

Definition at line 43 of file hudlock.h.

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