Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CNavigationGauge Class Reference

#include <Gauges.h>

Inheritance diagram for CNavigationGauge:

CBitmapGauge CGauge CStreamObject CObject List of all members.

Public Member Functions

 CNavigationGauge (void)
virtual ~CNavigationGauge (void)
int Read (SStream *stream, Tag tag)
void ReadFinished ()
EClickResult MouseClick (int x, int y, int buttons)
EClickResult StopClick (int x, int y, int buttons)
void Draw (void)
void Blit (int xOffset, int yOffset, int y_isiz)

Protected Attributes

Tag comp_tag
CGaugeNeedle comp_ndl
SArtOffset lndl
SArtOffset gndl
SArtRectangle obs
char wtab_art [64]
char ttab_art [64]
char ftab_art [64]
int ntpl_x
int ntpl_y
int gspl_x
int gspl_y
Tag radi_tag
int radi_unit
SMessage fcs
SSurfacesurfObsKnob
SBitmapbmObsKnob
int nObsKnobFrames
SBitmapbmLocalizer
int nLocalizerFrames
float localizerFramesPerDeg
SBitmapbmGlideslope
int nGlideslopeFrames
float glideslopeFramesPerDeg
SBitmapbmWarnTab
SBitmapbmToTab
SBitmapbmFromTab
float obsSetting
int obsRate
bool obsKnobClick
float obsKnobTickRate
float obsKnobTickRateTimer
float obsKnobLastTick

Detailed Description

Definition at line 1183 of file Gauges.h.


Constructor & Destructor Documentation

CNavigationGauge::CNavigationGauge void   ) 
 

Definition at line 3175 of file Gauges.cpp.

References SArtRectangle::art, SArtOffset::art, bmFromTab, bmGlideslope, bmLocalizer, bmObsKnob, bmToTab, bmWarnTab, comp_tag, fcs, ftab_art, gndl, gspl_x, gspl_y, lndl, nObsKnobFrames, ntpl_x, ntpl_y, obs, obsKnobClick, obsSetting, radi_tag, radi_unit, surfObsKnob, ttab_art, wtab_art, SArtOffset::x, SArtRectangle::x1, SArtRectangle::x2, SArtOffset::y, SArtRectangle::y1, and SArtRectangle::y2.

CNavigationGauge::~CNavigationGauge void   )  [virtual]
 

Definition at line 3217 of file Gauges.cpp.

References bmFromTab, bmGlideslope, bmLocalizer, bmObsKnob, bmToTab, bmWarnTab, and FreeBitmap().


Member Function Documentation

void CNavigationGauge::Blit int  xOffset,
int  yOffset,
int  y_isiz
[virtual]
 

Reimplemented from CGauge.

Definition at line 3532 of file Gauges.cpp.

References BlitSurface(), CGauge::surf, and surfObsKnob.

void CNavigationGauge::Draw void   )  [virtual]
 

Reimplemented from CBitmapGauge.

Definition at line 3440 of file Gauges.cpp.

References bmFromTab, bmGlideslope, bmLocalizer, bmObsKnob, bmToTab, bmWarnTab, CGauge::ClearSurface(), comp_ndl, CGauge::cx, CGauge::cy, SMessage::dataType, CGaugeNeedle::Draw(), DrawBitmap(), DrawNoticeToUser(), CBitmapGauge::DrawOverlay(), CBitmapGauge::DrawUnderlay(), EraseSurface(), CTimeManager::GetElapsedSimTime(), globals, gndl, SMessage::id, lndl, localizerFramesPerDeg, CGauge::mesg, MSG_GETDATA, nGlideslopeFrames, nLocalizerFrames, nObsKnobFrames, ntpl_x, ntpl_y, obsKnobClick, obsKnobLastTick, obsKnobTickRate, obsKnobTickRateTimer, obsRate, obsSetting, SMessage::realData, SendMessage(), CGauge::surf, surfObsKnob, SGlobals::timemgr, TYPE_REAL, SMessage::user, Wrap360(), SArtOffset::x, and SArtOffset::y.

EClickResult CNavigationGauge::MouseClick int  x,
int  y,
int  buttons
[virtual]
 

Reimplemented from CGauge.

Definition at line 3398 of file Gauges.cpp.

References CTimeManager::GetElapsedSimTime(), globals, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_RIGHT, MOUSE_TRACKING_OFF, MOUSE_TRACKING_ON, obs, obsKnobClick, obsKnobLastTick, obsKnobTickRate, obsKnobTickRateTimer, obsRate, SGlobals::timemgr, SArtRectangle::x1, SArtRectangle::x2, SArtRectangle::y1, and SArtRectangle::y2.

int CNavigationGauge::Read SStream stream,
Tag  tag
[virtual]
 

Todo:
Parse user string into SMessage field update

Reimplemented from CBitmapGauge.

Definition at line 3245 of file Gauges.cpp.

References SArtRectangle::art, SArtOffset::art, comp_ndl, comp_tag, fcs, ftab_art, globals, gndl, gspl_x, gspl_y, lndl, SGlobals::logWarning, ntpl_x, ntpl_y, obs, radi_tag, radi_unit, CBitmapGauge::Read(), ReadFrom(), ReadInt(), ReadMessage(), ReadString(), ReadTag(), TAG_IGNORED, TAG_READ, TagToString(), ttab_art, CLogFile::Write(), wtab_art, SArtOffset::x, SArtRectangle::x1, SArtRectangle::x2, SArtOffset::y, SArtRectangle::y1, and SArtRectangle::y2.

void CNavigationGauge::ReadFinished  )  [virtual]
 

Reimplemented from CBitmapGauge.

Definition at line 3331 of file Gauges.cpp.

References SArtOffset::art, SArtRectangle::art, SBitmap::bitmapName, bmFromTab, bmGlideslope, bmLocalizer, bmObsKnob, bmToTab, bmWarnTab, CreateSurface(), ftab_art, glideslopeFramesPerDeg, gndl, SMessage::group, lndl, LoadBitmap(), localizerFramesPerDeg, CGauge::mesg, nGlideslopeFrames, nLocalizerFrames, nObsKnobFrames, NumBitmapFrames(), obs, radi_tag, radi_unit, CBitmapGauge::ReadFinished(), surfObsKnob, ttab_art, SMessage::user, wtab_art, CGauge::x, SArtRectangle::x1, SArtRectangle::x2, SSurface::xScreen, CGauge::y, SArtRectangle::y1, SArtRectangle::y2, and SSurface::yScreen.

EClickResult CNavigationGauge::StopClick int  x,
int  y,
int  buttons
[virtual]
 

Reimplemented from CGauge.

Definition at line 3430 of file Gauges.cpp.

References MOUSE_TRACKING_OFF, and obsKnobClick.


Member Data Documentation

SBitmap* CNavigationGauge::bmFromTab [protected]
 

Definition at line 1224 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

SBitmap* CNavigationGauge::bmGlideslope [protected]
 

Definition at line 1219 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

SBitmap* CNavigationGauge::bmLocalizer [protected]
 

Definition at line 1216 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

SBitmap* CNavigationGauge::bmObsKnob [protected]
 

Definition at line 1214 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

SBitmap* CNavigationGauge::bmToTab [protected]
 

Definition at line 1223 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

SBitmap* CNavigationGauge::bmWarnTab [protected]
 

Definition at line 1222 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), ReadFinished(), and ~CNavigationGauge().

CGaugeNeedle CNavigationGauge::comp_ndl [protected]
 

Definition at line 1200 of file Gauges.h.

Referenced by Draw(), and Read().

Tag CNavigationGauge::comp_tag [protected]
 

Definition at line 1199 of file Gauges.h.

Referenced by CNavigationGauge(), and Read().

SMessage CNavigationGauge::fcs [protected]
 

Definition at line 1211 of file Gauges.h.

Referenced by CNavigationGauge(), and Read().

char CNavigationGauge::ftab_art[64] [protected]
 

Definition at line 1206 of file Gauges.h.

Referenced by CNavigationGauge(), Read(), and ReadFinished().

float CNavigationGauge::glideslopeFramesPerDeg [protected]
 

Definition at line 1221 of file Gauges.h.

Referenced by ReadFinished().

SArtOffset CNavigationGauge::gndl [protected]
 

Definition at line 1202 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), Read(), and ReadFinished().

int CNavigationGauge::gspl_x [protected]
 

Definition at line 1208 of file Gauges.h.

Referenced by CNavigationGauge(), and Read().

int CNavigationGauge::gspl_y [protected]
 

Definition at line 1208 of file Gauges.h.

Referenced by CNavigationGauge(), and Read().

SArtOffset CNavigationGauge::lndl [protected]
 

Definition at line 1201 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), Read(), and ReadFinished().

float CNavigationGauge::localizerFramesPerDeg [protected]
 

Definition at line 1218 of file Gauges.h.

Referenced by Draw(), and ReadFinished().

int CNavigationGauge::nGlideslopeFrames [protected]
 

Definition at line 1220 of file Gauges.h.

Referenced by Draw(), and ReadFinished().

int CNavigationGauge::nLocalizerFrames [protected]
 

Definition at line 1217 of file Gauges.h.

Referenced by Draw(), and ReadFinished().

int CNavigationGauge::nObsKnobFrames [protected]
 

Definition at line 1215 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), and ReadFinished().

int CNavigationGauge::ntpl_x [protected]
 

Definition at line 1207 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), and Read().

int CNavigationGauge::ntpl_y [protected]
 

Definition at line 1207 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), and Read().

SArtRectangle CNavigationGauge::obs [protected]
 

Definition at line 1203 of file Gauges.h.

Referenced by CNavigationGauge(), MouseClick(), Read(), and ReadFinished().

bool CNavigationGauge::obsKnobClick [protected]
 

Definition at line 1228 of file Gauges.h.

Referenced by CNavigationGauge(), Draw(), MouseClick(), and StopClick().

float CNavigationGauge::obsKnobLastTick [protected]
 

Definition at line 1231 of file Gauges.h.

Referenced by Draw(), and MouseClick().

float CNavigationGauge::obsKnobTickRate [protected]
 

Definition at line 1229 of file Gauges.h.

Referenced by Draw(), and MouseClick().

float CNavigationGauge::obsKnobTickRateTimer [protected]
 

Definition at line 1230 of file Gauges.h.

Referenced by Draw(), and MouseClick().

int CNavigationGauge::obsRate [protected]
 

Definition at line 1227 of file Gauges.h.

Referenced by Draw(), and MouseClick().

float CNavigationGauge::obsSetting [protected]
 

Definition at line 1226 of file Gauges.h.

Referenced by CNavigationGauge(), and Draw().

Tag CNavigationGauge::radi_tag [protected]
 

Definition at line 1209 of file Gauges.h.

Referenced by CNavigationGauge(), Read(), and ReadFinished().

int CNavigationGauge::radi_unit [protected]
 

Definition at line 1210 of file Gauges.h.

Referenced by CNavigationGauge(), Read(), and ReadFinished().

SSurface* CNavigationGauge::surfObsKnob [protected]
 

Definition at line 1213 of file Gauges.h.

Referenced by Blit(), CNavigationGauge(), Draw(), and ReadFinished().

char CNavigationGauge::ttab_art[64] [protected]
 

Definition at line 1205 of file Gauges.h.

Referenced by CNavigationGauge(), Read(), and ReadFinished().

char CNavigationGauge::wtab_art[64] [protected]
 

Definition at line 1204 of file Gauges.h.

Referenced by CNavigationGauge(), Read(), and ReadFinished().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen