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;
92 GLSGEN_GLSODOMETER_EXPORT
GlsOdometer(
bool generateInstance =
false );
94 GLSGEN_GLSODOMETER_EXPORT GlsOdometer(
const GlsOdometer& that,
const bool generateNames );
99 static GLSGEN_GLSODOMETER_EXPORT
DisplayObject* CreateInstance();
113 virtual GLSGEN_GLSODOMETER_EXPORT
void Draw(
void );
115 virtual GLSGEN_GLSODOMETER_EXPORT
void SetValue(
int spec, va_list& args );
125 } GlsOdometerBehaviorType;
131 } GlsOdometerGeometryType;
134 GLSGEN_GLSODOMETER_EXPORT
void MaxValue(
const float& value );
136 virtual GLSGEN_GLSODOMETER_EXPORT
float MaxValue();
139 GLSGEN_GLSODOMETER_EXPORT
void MinValue(
const float& value );
141 virtual GLSGEN_GLSODOMETER_EXPORT
float MinValue();
145 GLSGEN_GLSODOMETER_EXPORT
void Value(
const float& value );
148 virtual GLSGEN_GLSODOMETER_EXPORT
float Value();
152 virtual GLSGEN_GLSODOMETER_EXPORT
void BaseSystem(
const int& value );
155 virtual GLSGEN_GLSODOMETER_EXPORT
int BaseSystem();
161 GLSGEN_GLSODOMETER_EXPORT
void BehaviorType(
const GlsOdometerBehaviorType value );
164 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerBehaviorType
BehaviorType();
171 GLSGEN_GLSODOMETER_EXPORT
void GeometryType(
const GlsOdometerGeometryType value );
174 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerGeometryType
GeometryType();
181 GLSGEN_GLSODOMETER_EXPORT
void TextureScale(
const float& value );
193 virtual GLSGEN_GLSODOMETER_EXPORT
int OrderOfMagnitude()
const;
194 virtual GLSGEN_GLSODOMETER_EXPORT
float RolloverThreshold()
const;
197 int _orderOfMagnitude;
199 float _degreesPerDigit;
200 float _rolloverThreshold;
206 GlsOdometerBehaviorType _behavior;
207 GlsOdometerGeometryType _geometry;
218 bool _textureLocSaved;
220 void OrderOfMagnitude(
const int& value );
222 void RolloverThreshold(
const float& value );
224 void CalculateOrderOfMagnitude(
void );
225 void CalculateRolloverThreshold(
void );
229 void SaveTextureLoc(
void );
virtual GlsOdometerGeometryType GeometryType()
Definition: dynamic_array.h:62
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:278
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:211
Definition: gls_glo_file.h:835
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)