39#ifndef DISTI_INCLUDED_GLS_ODOMETER_H
40#define DISTI_INCLUDED_GLS_ODOMETER_H
46#if( defined( GLSGEN_EXPORT_GLSODOMETER ) || defined( GLSGEN_IMPORT_GLSODOMETER ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
47 && defined( _MSC_VER )
48# if defined( GLSGEN_EXPORT_GLSODOMETER ) || defined( GLS_EXPORT_GENERATED )
49# define GLSGEN_GLSODOMETER_EXPORT __declspec( dllexport )
51# define GLSGEN_GLSODOMETER_EXPORT __declspec( dllimport )
54# define GLSGEN_GLSODOMETER_EXPORT
59#define LIB_BASE_NAME "gls_odometer"
67 GLS_GLSODOMETER_VALUE = GLS_LAST_INITIALIZER + 1,
68 GLS_GLSODOMETER_MIN_VALUE,
69 GLS_GLSODOMETER_MAX_VALUE,
70 GLS_GLSODOMETER_BASE_SYSTEM,
71 GLS_GLSODOMETER_BEHAVIOR_TYPE,
72 GLS_GLSODOMETER_GEOMETRY_TYPE,
73 GLS_GLSODOMETER_TEXTURE_SCALE,
74 GLS_GLSODOMETER_DEGREES_PER_DIGIT
80 friend class GlsOdometerEditor;
87 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
Definition: dynamic_array.h:79
Definition: gls_glo_file.h:1241
Definition: gls_odometer.h:224
Vector v4
The top left corner.
Definition: gls_odometer.h:229
Vector v2
The bottom right corner.
Definition: gls_odometer.h:227
Vector v3
The top right corner.
Definition: gls_odometer.h:228
Vector v1
The bottom left corner.
Definition: gls_odometer.h:226
Definition: gls_odometer.h:79
float _rolloverThreshold
The amount required to make the first digit roll over by one.
Definition: gls_odometer.h:213
virtual void BaseSystem(const int &value)
void CalculateRolloverThreshold()
void Value(const float &value)
float _degreesPerDigit
The amount to rotate the geometry for each digit. GeometryType == GEOMETRY_3D.
Definition: gls_odometer.h:212
GlsOdometerGeometryType
Definition: gls_odometer.h:133
virtual float DegreesPerDigit()
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
GlsOdometerBehaviorType _behavior
The "rollover" behavior in use.
Definition: gls_odometer.h:219
virtual GlsOdometerGeometryType GeometryType()
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
void RolloverThreshold(const float &value)
void GeometryType(const GlsOdometerGeometryType value)
void OrderOfMagnitude(const int &value)
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
GlsOdometerBehaviorType
Definition: gls_odometer.h:126
void MaxValue(const float &value)
void BehaviorType(const GlsOdometerBehaviorType value)
int _orderOfMagnitude
The number of digits (zeroes) the odometer can have.
Definition: gls_odometer.h:210
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
virtual GlsOdometerBehaviorType BehaviorType()
float _maxValue
The maximum value that can be represented on the wheels.
Definition: gls_odometer.h:216
float _textureScale
The amount in texture coordinates to move for each digit. GeometryType == GEOMETRY_2D.
Definition: gls_odometer.h:211
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
DynamicArray< TexturePoints > _startLoc
A list of start texture locations, one for each wheel.
Definition: gls_odometer.h:232
void Draw() DISTI_METHOD_OVERRIDE
void MinValue(const float &value)
void DegreesPerDigit(const float &value)
virtual float TextureScale()
virtual float RolloverThreshold() const
virtual int OrderOfMagnitude() const
float _minValue
The minimum value that can be represented on the wheels.
Definition: gls_odometer.h:215
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
bool _textureLocSaved
True denotes that the texture locations have been saved off.
Definition: gls_odometer.h:233
float _currentValue
The current value displayed on the wheels.
Definition: gls_odometer.h:218
int _baseSystem
The base system represented, e.g. base 10.
Definition: gls_odometer.h:217
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
GlsOdometerGeometryType _geometry
The "movement" behavior in use.
Definition: gls_odometer.h:220
void TextureScale(const float &value)
void CalculateOrderOfMagnitude()
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:245
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:487
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:50
#define GLSGEN_GLSODOMETER_EXPORT
Provides support for creating DLLs.
Definition: gls_odometer.h:54
The disti::Group class. Implements groups of objects.
Definition: bmpimage.h:46