40 #ifndef _GLSODOMETER_H
41 #define _GLSODOMETER_H
47 #if( defined( GLSGEN_EXPORT_GLSODOMETER ) || defined( GLSGEN_IMPORT_GLSODOMETER ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
48 && defined( _MSC_VER )
49 # if defined( GLSGEN_EXPORT_GLSODOMETER ) || defined( GLS_EXPORT_GENERATED )
50 # define GLSGEN_GLSODOMETER_EXPORT __declspec( dllexport )
52 # define GLSGEN_GLSODOMETER_EXPORT __declspec( dllimport )
55 # 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." )
94 GLSGEN_GLSODOMETER_EXPORT
GlsOdometer(
bool generateInstance =
false );
96 GLSGEN_GLSODOMETER_EXPORT GlsOdometer(
const GlsOdometer& that,
const bool generateNames );
101 static GLSGEN_GLSODOMETER_EXPORT
DisplayObject* CreateInstance();
103 virtual GLSGEN_GLSODOMETER_EXPORT
void SetAvailableAttributes(
unsigned int value ) DISTI_METHOD_OVERRIDE;
115 virtual GLSGEN_GLSODOMETER_EXPORT
void Draw(
void ) DISTI_METHOD_OVERRIDE;
117 virtual GLSGEN_GLSODOMETER_EXPORT
void SetValue(
int spec, va_list& args ) DISTI_METHOD_OVERRIDE;
127 } GlsOdometerBehaviorType;
133 } GlsOdometerGeometryType;
136 GLSGEN_GLSODOMETER_EXPORT
void MaxValue(
const float& value );
138 virtual GLSGEN_GLSODOMETER_EXPORT
float MaxValue();
141 GLSGEN_GLSODOMETER_EXPORT
void MinValue(
const float& value );
143 virtual GLSGEN_GLSODOMETER_EXPORT
float MinValue();
147 GLSGEN_GLSODOMETER_EXPORT
void Value(
const float& value );
150 virtual GLSGEN_GLSODOMETER_EXPORT
float Value();
154 virtual GLSGEN_GLSODOMETER_EXPORT
void BaseSystem(
const int& value );
157 virtual GLSGEN_GLSODOMETER_EXPORT
int BaseSystem();
163 GLSGEN_GLSODOMETER_EXPORT
void BehaviorType(
const GlsOdometerBehaviorType value );
166 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerBehaviorType
BehaviorType();
173 GLSGEN_GLSODOMETER_EXPORT
void GeometryType(
const GlsOdometerGeometryType value );
176 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerGeometryType
GeometryType();
183 GLSGEN_GLSODOMETER_EXPORT
void TextureScale(
const float& value );
195 virtual GLSGEN_GLSODOMETER_EXPORT
int OrderOfMagnitude()
const;
196 virtual GLSGEN_GLSODOMETER_EXPORT
float RolloverThreshold()
const;
199 int _orderOfMagnitude;
201 float _degreesPerDigit;
202 float _rolloverThreshold;
208 GlsOdometerBehaviorType _behavior;
209 GlsOdometerGeometryType _geometry;
220 bool _textureLocSaved;
222 void OrderOfMagnitude(
const int& value );
224 void RolloverThreshold(
const float& value );
226 void CalculateOrderOfMagnitude(
void );
227 void CalculateRolloverThreshold(
void );
231 void SaveTextureLoc(
void );
virtual void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
virtual GlsOdometerGeometryType GeometryType()
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:436
Definition: dynamic_array.h:66
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:473
virtual DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
virtual DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
virtual GlsOdometerBehaviorType BehaviorType()
virtual float DegreesPerDigit()
virtual void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
Definition: gls_odometer.h:213
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
Definition: gls_glo_file.h:988
virtual void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
Definition: gls_odometer.h:78
virtual float TextureScale()
virtual void Draw(void) DISTI_METHOD_OVERRIDE
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46