Open source remastering of the Freespace 2 engine
HudGaugeRadarDradis Class Reference

#include <radardradis.h>

Inheritance diagram for HudGaugeRadarDradis:
HudGaugeRadar HudGauge

Public Member Functions

 HudGaugeRadarDradis ()
void initBitmaps (char *fname_xy, char *fname_xz_yz, char *fname_sweep, char *fname_target_brackets, char *fname_unknown)
void initSound (int loop_snd, float _loop_sound_volume, int arrival_snd, int departue_snd, int stealth_arrival_snd, int stealth_departue_snd, float arrival_delay, float departure_delay)
void blipDrawDistorted (blip *b, vec3d *pos, float alpha)
void blipDrawFlicker (blip *b, vec3d *pos, float alpha)
void drawBlips (int blip_type, int bright, int distort)
void drawBlipsSorted (int distort)
void drawContact (vec3d *pnt, int idx, int clr_idx, float dist, float alpha, float scale_factor)
void drawContactImage (vec3d *pnt, int rad, int idx, int clr_idx, float mult)
void drawSweeps ()
void drawCrosshairs (vec3d pnt)
void doneDrawing ()
void doneDrawingHtl ()
void drawOutlines ()
void drawOutlinesHtl ()
void setupViewHtl ()
int calcAlpha (vec3d *pt)
void render (float frametime)
void pageIn ()
void plotBlip (blip *b, vec3d *pos, float *alpha)
virtual void onFrame (float frametime)
virtual void initialize ()
void doLoopSnd ()
void doBeeps ()
- Public Member Functions inherited from HudGaugeRadar
 HudGaugeRadar ()
 HudGaugeRadar (int _gauge_object, int r, int g, int b)
void initRadius (int w, int h)
void initBlipRadius (int normal, int target)
void initDistanceShortOffsets (int x, int y)
void initDistanceLongOffsets (int x, int y)
void initDistanceInfinityOffsets (int x, int y)
void initInfinityIcon ()
void drawRange ()
- 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 ()
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 Member Functions

bool shouldDoSounds ()

Additional Inherited Members

- Protected Attributes inherited from HudGaugeRadar
int Radar_radius [2]
int Radar_dist_offsets [RR_MAX_RANGES][2]
int Radar_blip_radius_normal
int Radar_blip_radius_target
int Radar_static_playing
int Radar_static_next
int Radar_avail_prev_frame
int Radar_death_timer
int Radar_flicker_timer [NUM_FLICKER_TIMERS]
int Radar_flicker_on [NUM_FLICKER_TIMERS]
int Small_blip_offset_x
int Small_blip_offset_y
int Large_blip_offset_x
int Large_blip_offset_y
char Small_blip_string [2]
char Large_blip_string [2]
ubyte Radar_infinity_icon
- 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 21 of file radardradis.h.

Constructor & Destructor Documentation

HudGaugeRadarDradis::HudGaugeRadarDradis ( )

Definition at line 34 of file radardradis.cpp.

Member Function Documentation

void HudGaugeRadarDradis::blipDrawDistorted ( blip b,
vec3d pos,
float  alpha 

Definition at line 183 of file radardradis.cpp.

void HudGaugeRadarDradis::blipDrawFlicker ( blip b,
vec3d pos,
float  alpha 

Definition at line 208 of file radardradis.cpp.

int HudGaugeRadarDradis::calcAlpha ( vec3d pt)
void HudGaugeRadarDradis::doBeeps ( )

Definition at line 580 of file radardradis.cpp.

void HudGaugeRadarDradis::doLoopSnd ( )

Definition at line 559 of file radardradis.cpp.

void HudGaugeRadarDradis::doneDrawing ( )
void HudGaugeRadarDradis::doneDrawingHtl ( )

Definition at line 322 of file radardradis.cpp.

void HudGaugeRadarDradis::drawBlips ( int  blip_type,
int  bright,
int  distort 

Definition at line 246 of file radardradis.cpp.

void HudGaugeRadarDradis::drawBlipsSorted ( int  distort)

Definition at line 422 of file radardradis.cpp.

void HudGaugeRadarDradis::drawContact ( vec3d pnt,
int  idx,
int  clr_idx,
float  dist,
float  alpha,
float  scale_factor 

Definition at line 138 of file radardradis.cpp.

void HudGaugeRadarDradis::drawContactImage ( vec3d pnt,
int  rad,
int  idx,
int  clr_idx,
float  mult 
void HudGaugeRadarDradis::drawCrosshairs ( vec3d  pnt)
void HudGaugeRadarDradis::drawOutlines ( )
void HudGaugeRadarDradis::drawOutlinesHtl ( )

Definition at line 332 of file radardradis.cpp.

void HudGaugeRadarDradis::drawSweeps ( )

Definition at line 356 of file radardradis.cpp.

void HudGaugeRadarDradis::initBitmaps ( char *  fname_xy,
char *  fname_xz_yz,
char *  fname_sweep,
char *  fname_target_brackets,
char *  fname_unknown 

Definition at line 85 of file radardradis.cpp.

void HudGaugeRadarDradis::initialize ( )

Reimplemented from HudGaugeRadar.

Definition at line 700 of file radardradis.cpp.

void HudGaugeRadarDradis::initSound ( int  loop_snd,
float  _loop_sound_volume,
int  arrival_snd,
int  departue_snd,
int  stealth_arrival_snd,
int  stealth_departue_snd,
float  arrival_delay,
float  departure_delay 

Definition at line 675 of file radardradis.cpp.

void HudGaugeRadarDradis::onFrame ( float  frametime)

Reimplemented from HudGauge.

Definition at line 691 of file radardradis.cpp.

void HudGaugeRadarDradis::pageIn ( )

Reimplemented from HudGaugeRadar.

Definition at line 550 of file radardradis.cpp.

void HudGaugeRadarDradis::plotBlip ( blip b,
vec3d pos,
float alpha 

Definition at line 113 of file radardradis.cpp.

void HudGaugeRadarDradis::render ( float  frametime)

Reimplemented from HudGaugeRadar.

Definition at line 454 of file radardradis.cpp.

void HudGaugeRadarDradis::setupViewHtl ( )

Definition at line 313 of file radardradis.cpp.

bool HudGaugeRadarDradis::shouldDoSounds ( )

Definition at line 708 of file radardradis.cpp.

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