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

CBasicADFGauge Class Reference

#include <Gauges.h>

Inheritance diagram for CBasicADFGauge:

CNeedleGauge CBitmapGauge CGauge CStreamObject CObject List of all members.

Public Member Functions

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

Protected Attributes

Tag comp_tag
CGaugeNeedlecomp
CGaugeKnobknob
CGaugeNeedlehdng
float compass

Detailed Description

Definition at line 926 of file Gauges.h.


Constructor & Destructor Documentation

CBasicADFGauge::CBasicADFGauge void   ) 
 

Definition at line 2318 of file Gauges.cpp.

References comp, comp_tag, compass, hdng, and knob.

CBasicADFGauge::~CBasicADFGauge void   )  [virtual]
 

Definition at line 2329 of file Gauges.cpp.

References comp, hdng, and knob.


Member Function Documentation

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

Reimplemented from CGauge.

Definition at line 2449 of file Gauges.cpp.

References BlitSurface(), knob, CGaugeKnob::surf, and CGauge::surf.

void CBasicADFGauge::Draw void   )  [virtual]
 

Reimplemented from CNeedleGauge.

Definition at line 2422 of file Gauges.cpp.

References CGauge::ClearSurface(), comp, compass, CGauge::cx, CGauge::cy, CGaugeKnob::Draw(), CGaugeNeedle::Draw(), CBitmapGauge::DrawOverlay(), CBitmapGauge::DrawUnderlay(), hdng, SMessage::id, knob, CGauge::mesg, MSG_GETDATA, CNeedleGauge::nedl, SMessage::realData, SendMessage(), CGauge::surf, and SMessage::user.

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

Todo:
Automatic accelerated updates as long as button is held

Reimplemented from CGauge.

Definition at line 2398 of file Gauges.cpp.

References compass, CGaugeClickArea::IsHit(), knob, MOUSE_BUTTON_LEFT, MOUSE_BUTTON_RIGHT, MOUSE_TRACKING_OFF, and Wrap360().

ECursorResult CBasicADFGauge::MouseMoved int  x,
int  y
[virtual]
 

Reimplemented from CGauge.

Definition at line 2381 of file Gauges.cpp.

References CURSOR_NOT_CHANGED, knob, CGauge::MouseMoved(), and CGaugeClickArea::MouseMoved().

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

Todo:
Parse user string into SMessage field update

Reimplemented from CNeedleGauge.

Definition at line 2336 of file Gauges.cpp.

References comp, comp_tag, globals, hdng, knob, SGlobals::logWarning, CNeedleGauge::Read(), ReadFrom(), ReadTag(), TAG_IGNORED, TAG_READ, TagToString(), and CLogFile::Write().

void CBasicADFGauge::ReadFinished void   )  [virtual]
 

Reimplemented from CBitmapGauge.

Definition at line 2374 of file Gauges.cpp.

References knob, CBitmapGauge::ReadFinished(), CGaugeKnob::SetOffset(), CGauge::x, and CGauge::y.


Member Data Documentation

CGaugeNeedle* CBasicADFGauge::comp [protected]
 

Definition at line 943 of file Gauges.h.

Referenced by CBasicADFGauge(), Draw(), Read(), and ~CBasicADFGauge().

Tag CBasicADFGauge::comp_tag [protected]
 

Definition at line 942 of file Gauges.h.

Referenced by CBasicADFGauge(), and Read().

float CBasicADFGauge::compass [protected]
 

Definition at line 946 of file Gauges.h.

Referenced by CBasicADFGauge(), Draw(), and MouseClick().

CGaugeNeedle* CBasicADFGauge::hdng [protected]
 

Definition at line 945 of file Gauges.h.

Referenced by CBasicADFGauge(), Draw(), Read(), and ~CBasicADFGauge().

CGaugeKnob* CBasicADFGauge::knob [protected]
 

Definition at line 944 of file Gauges.h.

Referenced by Blit(), CBasicADFGauge(), Draw(), MouseClick(), MouseMoved(), Read(), ReadFinished(), and ~CBasicADFGauge().


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