GL Studio Safety Critical Embedded C++ Runtime Library
|
#include <gls_odometer.h>
Classes | |
struct | InitParameters |
Public Types | |
enum | Behavior { BEHAVIOR_ANALOG, BEHAVIOR_DIGITAL } |
enum | GeometryType { GEOMETRY_TYPE_2D, GEOMETRY_TYPE_3D } |
Public Types inherited from GlsDisplayObject | |
enum | ObjectType { OBJECT_TYPE_COMPOSITE, OBJECT_TYPE_RENDERABLE } |
enum | PickMode { PICK_MODE_NEVER, PICK_MODE_FIRST, PICK_MODE_ALWAYS } |
Public Member Functions | |
GlsOdometer (InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
void | SetValue (const GlsFloat32 value) |
Public Member Functions inherited from GlsGroup | |
GlsGroup (InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
virtual void | Draw (GlsStateManager &gl, const GlsFloat64 time) |
virtual void | Calculate (const GlsFloat64 time) |
virtual GlsDisplayObject * | PickTest (const GlsVector2D &windowCoord, GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
virtual void | SetChildrenAlphaMode (const GlsAlphaMode alphaMode) |
virtual void | SetChildrenFillColor (const GlsColor &fillColor) |
virtual void | SetChildrenLineColor (const GlsColor &lineColor) |
virtual void | SetChildrenLineWidth (const GlsFloat32 lineWidth) |
virtual void | SetChildrenPolygonMode (const GlsPolygonMode polygonMode) |
Public Member Functions inherited from GlsDisplayObject | |
GlsDisplayObject * | HandleEvent (GlsEvent &event) |
ObjectType | GetObjectType (void) const |
void | SetBlinking (const GlsBool blinking) |
void | SetBlinkRate (const GlsFloat32 blinkRate) |
void | SetDynamicRotation (const GlsVector3D &dynamicRotation) |
void | SetDynamicScale (const GlsVector3D &dynamicScale) |
void | SetDynamicTranslation (const GlsVector3D &dynamicTranslation) |
void | SetVisibility (const GlsBool visible) |
void | SetParent (GlsDisplayObject *const parent) |
void | SetPickMode (const PickMode pickMode) |
GlsBool | NeedCalculate (void) const |
void | InvalidatePickCache (void) |
Protected Member Functions | |
void | UpdateDigits (void) |
virtual | ~GlsOdometer () |
Protected Member Functions inherited from GlsGroup | |
virtual | ~GlsGroup () |
Protected Member Functions inherited from GlsCompositeObject | |
GlsCompositeObject (const InitParameters &initParameters, GlsEventDispatcher *const eventDispatcher) | |
virtual | ~GlsCompositeObject () |
Protected Member Functions inherited from GlsDisplayObject | |
GlsDisplayObject (const InitParameters &initParameters, const ObjectType objectType, GlsEventDispatcher *const eventDispatcher) | |
virtual | ~GlsDisplayObject () |
GlsBool | CalcDrawMatrix (const GlsMatrixAffineD *const additionalTransform, const GlsBool includeLocation) |
virtual void | CalcWindowPickRegion (GlsInputManager &inputManager, const GlsMatrixAffineD::GLMatrixAffineF &parentDrawMatrix) |
GlsBool | IsBlinkedOff (const GlsFloat64 time) const |
This class facilitates building rolling odometer displays.
GlsOdometer::GlsOdometer | ( | InitParameters & | initParameters, |
GlsEventDispatcher *const | eventDispatcher | ||
) |
Constructor - create an instance
initParameters | initialization parameters |
eventDispatcher | event dispatcher for this object else GLS_NULL |
|
protectedvirtual |
Destructor - shall never be called
void GlsOdometer::SetValue | ( | const GlsFloat32 | value | ) |
Set the current display value for the odometer
value | new display value |
|
protected |
Update the odometer digits to display the current value
|
protected |
base of number system for display ( >0 )
|
protected |
odometer behavior mode
|
protected |
rotation in degrees for one digit when in 3D geometry mode
|
protected |
odometer geometry type
|
protected |
magnitude of last (least significant) digit in odometer
|
protected |
magnitude of most significant digit on odometer
|
protected |
maximum display value for odometer ( maxValue >= minValue )
|
protected |
minimum display value for odometer ( minValue <= maxValue )
|
protected |
threshold determining when digit rollover occurs ( >0.0f )
|
protected |
array of y texture offsets for each digit in odometer else GLS_NULL if no digits
|
protected |
amount to slide texture when in 2D geometry mode
|
protected |
current display value for odometer ( minValue <= initialValue <= maxValue )