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

CGaugeNeedle Class Reference

#include <Gauges.h>

Inheritance diagram for CGaugeNeedle:

CStreamObject CObject List of all members.

Public Member Functions

 CGaugeNeedle (void)
virtual ~CGaugeNeedle (void)
virtual int Read (SStream *stream, Tag tag)
virtual void ReadFinished (void)
virtual void Draw (SSurface *surface, float degrees, int cx, int cy)

Public Attributes

Tag tag

Protected Attributes

bool shar
int sizx
int sizy
int offx
int offy
int mind
int maxd
char base [64]
SBitmapbmap
int nFrames
bool readFinished

Detailed Description

Definition at line 226 of file Gauges.h.


Constructor & Destructor Documentation

CGaugeNeedle::CGaugeNeedle void   ) 
 

Definition at line 83 of file Gauges.cpp.

References base, bmap, maxd, mind, offx, offy, readFinished, shar, sizx, and sizy.

CGaugeNeedle::~CGaugeNeedle void   )  [virtual]
 

Definition at line 97 of file Gauges.cpp.

References bmap, and FreeBitmap().


Member Function Documentation

void CGaugeNeedle::Draw SSurface surface,
float  degrees,
int  cx,
int  cy
[virtual]
 

Todo:
How do needle offx/offy and sizx/sizy factor into this?

Definition at line 209 of file Gauges.cpp.

References bmap, DrawBitmap(), GetBitmapSize(), maxd, mind, nFrames, offx, offy, and Wrap360().

Referenced by CNavigationGauge::Draw(), CBasicADFGauge::Draw(), and CNeedleGauge::Draw().

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

Reimplemented from CStreamObject.

Definition at line 105 of file Gauges.cpp.

References base, CloseStream(), SStream::filename, globals, SGlobals::logWarning, maxd, mind, SStream::mode, offx, offy, OpenStream(), ReadFrom(), ReadInt(), ReadString(), shar, sizx, sizy, TAG_IGNORED, TAG_READ, TagToString(), and CLogFile::Write().

void CGaugeNeedle::ReadFinished void   )  [virtual]
 

Reimplemented from CStreamObject.

Definition at line 180 of file Gauges.cpp.

References base, SBitmap::bitmapName, bmap, GetBitmapSize(), LoadBitmap(), nFrames, NumBitmapFrames(), offx, offy, and readFinished.


Member Data Documentation

char CGaugeNeedle::base[64] [protected]
 

Definition at line 249 of file Gauges.h.

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

SBitmap* CGaugeNeedle::bmap [protected]
 

Definition at line 251 of file Gauges.h.

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

int CGaugeNeedle::maxd [protected]
 

Definition at line 248 of file Gauges.h.

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

int CGaugeNeedle::mind [protected]
 

Definition at line 247 of file Gauges.h.

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

int CGaugeNeedle::nFrames [protected]
 

Definition at line 252 of file Gauges.h.

Referenced by Draw(), and ReadFinished().

int CGaugeNeedle::offx [protected]
 

Definition at line 245 of file Gauges.h.

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

int CGaugeNeedle::offy [protected]
 

Definition at line 246 of file Gauges.h.

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

bool CGaugeNeedle::readFinished [protected]
 

Definition at line 255 of file Gauges.h.

Referenced by CGaugeNeedle(), and ReadFinished().

bool CGaugeNeedle::shar [protected]
 

Definition at line 242 of file Gauges.h.

Referenced by CGaugeNeedle(), and Read().

int CGaugeNeedle::sizx [protected]
 

Definition at line 243 of file Gauges.h.

Referenced by CGaugeNeedle(), and Read().

int CGaugeNeedle::sizy [protected]
 

Definition at line 244 of file Gauges.h.

Referenced by CGaugeNeedle(), and Read().

Tag CGaugeNeedle::tag
 

Definition at line 239 of file Gauges.h.

Referenced by CNeedleGauge::Read().


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