Open source remastering of the Freespace 2 engine
HudGaugeThrottle Class Reference

#include <hudreticle.h>

Inheritance diagram for HudGaugeThrottle:

Public Member Functions

 HudGaugeThrottle ()
void initThrottleStartY (int y)
void initThrottleSizes (int w, int h)
void initAburnHeight (int h)
void initMaxSpeedOffsets (int x, int y, bool show)
void initZeroSpeedOffsets (int x, int y, bool show)
void initOrbitCenterOffsets (int x, int y, bool orbiting)
void initOrbitRadius (int radius)
void initTargetSpeedOffsets (int x, int y, bool show, bool percent)
void initGlideOffsets (int x, int y, bool custom)
void initMatchSpeedOffsets (int x, int y, bool custom)
void showBackground (bool show)
void initBitmaps (char *fname)
void render (float frametime)
void renderThrottleSpeed (float current_speed, int y_end)
void renderThrottleLine (int y)
void renderThrottleForeground (int y_end)
void renderThrottleBackground (int y_end)
void pageIn ()
- 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 initialize ()
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_frames throttle_frames
int Bottom_offset_y
int throttle_h
int throttle_w
int throttle_aburn_h
int Max_speed_offsets [2]
bool Show_max_speed
int Zero_speed_offsets [2]
bool Show_min_speed
int Orbit_center_offsets [2]
int orbit_radius
bool orbit
int Target_speed_offsets [2]
bool Show_target_speed
bool Show_percent
int Glide_offsets [2]
bool Use_custom_glide
int Match_speed_offsets [2]
bool Use_custom_match_speed
ubyte Match_speed_icon
bool Show_background
- 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 54 of file hudreticle.h.

Constructor & Destructor Documentation

HudGaugeThrottle::HudGaugeThrottle ( )

Definition at line 349 of file hudreticle.cpp.

Member Function Documentation

void HudGaugeThrottle::initAburnHeight ( int  h)

Definition at line 365 of file hudreticle.cpp.

void HudGaugeThrottle::initBitmaps ( char *  fname)

Definition at line 433 of file hudreticle.cpp.

void HudGaugeThrottle::initGlideOffsets ( int  x,
int  y,
bool  custom 

Definition at line 409 of file hudreticle.cpp.

void HudGaugeThrottle::initMatchSpeedOffsets ( int  x,
int  y,
bool  custom 

Definition at line 416 of file hudreticle.cpp.

void HudGaugeThrottle::initMaxSpeedOffsets ( int  x,
int  y,
bool  show 

Definition at line 370 of file hudreticle.cpp.

void HudGaugeThrottle::initOrbitCenterOffsets ( int  x,
int  y,
bool  orbiting 

Definition at line 384 of file hudreticle.cpp.

void HudGaugeThrottle::initOrbitRadius ( int  radius)

Definition at line 391 of file hudreticle.cpp.

void HudGaugeThrottle::initTargetSpeedOffsets ( int  x,
int  y,
bool  show,
bool  percent 

Definition at line 396 of file hudreticle.cpp.

void HudGaugeThrottle::initThrottleSizes ( int  w,
int  h 

Definition at line 359 of file hudreticle.cpp.

void HudGaugeThrottle::initThrottleStartY ( int  y)

Definition at line 354 of file hudreticle.cpp.

void HudGaugeThrottle::initZeroSpeedOffsets ( int  x,
int  y,
bool  show 

Definition at line 377 of file hudreticle.cpp.

void HudGaugeThrottle::pageIn ( )

Reimplemented from HudGauge.

Definition at line 442 of file hudreticle.cpp.

void HudGaugeThrottle::render ( float  frametime)

Reimplemented from HudGauge.

Definition at line 447 of file hudreticle.cpp.

void HudGaugeThrottle::renderThrottleBackground ( int  y_end)

Definition at line 639 of file hudreticle.cpp.

void HudGaugeThrottle::renderThrottleForeground ( int  y_end)

Definition at line 626 of file hudreticle.cpp.

void HudGaugeThrottle::renderThrottleLine ( int  y)

Definition at line 614 of file hudreticle.cpp.

void HudGaugeThrottle::renderThrottleSpeed ( float  current_speed,
int  y_end 

Definition at line 556 of file hudreticle.cpp.

void HudGaugeThrottle::showBackground ( bool  show)

Definition at line 404 of file hudreticle.cpp.

Member Data Documentation

int HudGaugeThrottle::Bottom_offset_y

Definition at line 59 of file hudreticle.h.

int HudGaugeThrottle::Glide_offsets[2]

Definition at line 78 of file hudreticle.h.

ubyte HudGaugeThrottle::Match_speed_icon

Definition at line 83 of file hudreticle.h.

int HudGaugeThrottle::Match_speed_offsets[2]

Definition at line 81 of file hudreticle.h.

int HudGaugeThrottle::Max_speed_offsets[2]

Definition at line 64 of file hudreticle.h.

bool HudGaugeThrottle::orbit

Definition at line 72 of file hudreticle.h.

int HudGaugeThrottle::Orbit_center_offsets[2]

Definition at line 70 of file hudreticle.h.

int HudGaugeThrottle::orbit_radius

Definition at line 71 of file hudreticle.h.

bool HudGaugeThrottle::Show_background

Definition at line 85 of file hudreticle.h.

bool HudGaugeThrottle::Show_max_speed

Definition at line 65 of file hudreticle.h.

bool HudGaugeThrottle::Show_min_speed

Definition at line 68 of file hudreticle.h.

bool HudGaugeThrottle::Show_percent

Definition at line 76 of file hudreticle.h.

bool HudGaugeThrottle::Show_target_speed

Definition at line 75 of file hudreticle.h.

int HudGaugeThrottle::Target_speed_offsets[2]

Definition at line 74 of file hudreticle.h.

int HudGaugeThrottle::throttle_aburn_h

Definition at line 62 of file hudreticle.h.

hud_frames HudGaugeThrottle::throttle_frames

Definition at line 57 of file hudreticle.h.

int HudGaugeThrottle::throttle_h

Definition at line 60 of file hudreticle.h.

int HudGaugeThrottle::throttle_w

Definition at line 61 of file hudreticle.h.

bool HudGaugeThrottle::Use_custom_glide

Definition at line 79 of file hudreticle.h.

bool HudGaugeThrottle::Use_custom_match_speed

Definition at line 82 of file hudreticle.h.

int HudGaugeThrottle::Zero_speed_offsets[2]

Definition at line 67 of file hudreticle.h.

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