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();
115 virtual GLSGEN_GLSODOMETER_EXPORT
void Draw(
void );
117 virtual GLSGEN_GLSODOMETER_EXPORT
void SetValue(
int spec, va_list& args );
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 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:296
virtual GlsOdometerBehaviorType BehaviorType()
virtual DisplayObject * handle(DisplayEvent *ev)
virtual float DegreesPerDigit()
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
Definition: gls_odometer.h:213
Definition: gls_glo_file.h:982
Definition: gls_odometer.h:78
virtual float TextureScale()
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
virtual DisplayObject * CloneObject(bool generateNames=false)
virtual void SetAvailableAttributes(unsigned int value)
virtual void SetValue(int spec, va_list &args)
Macros and helper code to determine what subset of C++11/14/17 is available.
Definition: bmpimage.h:46
virtual void CopyProperties(DisplayObject *src)