40 #ifndef _GLSODOMETER_H
41 #define _GLSODOMETER_H
47 #if (defined(GLSGEN_EXPORT_GLSODOMETER) || \
48 defined(GLSGEN_IMPORT_GLSODOMETER) || \
49 defined(GLS_EXPORT_GENERATED) || \
50 defined(GLS_IMPORT_GENERATED)) \
52 # if defined(GLSGEN_EXPORT_GLSODOMETER) || defined(GLS_EXPORT_GENERATED)
53 # define GLSGEN_GLSODOMETER_EXPORT __declspec(dllexport)
55 # define GLSGEN_GLSODOMETER_EXPORT __declspec(dllimport)
58 # define GLSGEN_GLSODOMETER_EXPORT
62 #define LIB_BASE_NAME "gls_odometer"
70 GLS_GLSODOMETER_VALUE = GLS_LAST_INITIALIZER+1,
71 GLS_GLSODOMETER_MIN_VALUE,
72 GLS_GLSODOMETER_MAX_VALUE,
73 GLS_GLSODOMETER_BASE_SYSTEM,
74 GLS_GLSODOMETER_BEHAVIOR_TYPE,
75 GLS_GLSODOMETER_GEOMETRY_TYPE,
76 GLS_GLSODOMETER_TEXTURE_SCALE,
77 GLS_GLSODOMETER_DEGREES_PER_DIGIT
83 friend class GlsOdometerEditor;
95 GLSGEN_GLSODOMETER_EXPORT
GlsOdometer(
bool generateInstance=
false);
97 GLSGEN_GLSODOMETER_EXPORT GlsOdometer(
const GlsOdometer& that,
const bool generateNames );
102 static GLSGEN_GLSODOMETER_EXPORT
DisplayObject* CreateInstance();
116 virtual GLSGEN_GLSODOMETER_EXPORT
void Draw(
void);
118 virtual GLSGEN_GLSODOMETER_EXPORT
void SetValue(
int spec,va_list &args);
128 } GlsOdometerBehaviorType;
134 } GlsOdometerGeometryType;
137 GLSGEN_GLSODOMETER_EXPORT
void MaxValue(
const float& value );
139 virtual GLSGEN_GLSODOMETER_EXPORT
float MaxValue();
142 GLSGEN_GLSODOMETER_EXPORT
void MinValue(
const float& value );
144 virtual GLSGEN_GLSODOMETER_EXPORT
float MinValue();
148 GLSGEN_GLSODOMETER_EXPORT
void Value(
const float& value );
151 virtual GLSGEN_GLSODOMETER_EXPORT
float Value();
155 virtual GLSGEN_GLSODOMETER_EXPORT
void BaseSystem(
const int& value );
158 virtual GLSGEN_GLSODOMETER_EXPORT
int BaseSystem();
164 GLSGEN_GLSODOMETER_EXPORT
void BehaviorType(
const GlsOdometerBehaviorType value );
167 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerBehaviorType
BehaviorType();
174 GLSGEN_GLSODOMETER_EXPORT
void GeometryType(
const GlsOdometerGeometryType value );
177 virtual GLSGEN_GLSODOMETER_EXPORT GlsOdometerGeometryType
GeometryType();
184 GLSGEN_GLSODOMETER_EXPORT
void TextureScale(
const float& value );
196 virtual GLSGEN_GLSODOMETER_EXPORT
int OrderOfMagnitude()
const;
197 virtual GLSGEN_GLSODOMETER_EXPORT
float RolloverThreshold()
const;
200 int _orderOfMagnitude;
202 float _degreesPerDigit;
203 float _rolloverThreshold;
209 GlsOdometerBehaviorType _behavior;
210 GlsOdometerGeometryType _geometry;
221 bool _textureLocSaved;
223 void OrderOfMagnitude(
const int& value );
225 void RolloverThreshold(
const float& value );
227 void CalculateOrderOfMagnitude(
void);
228 void CalculateRolloverThreshold(
void);
232 void SaveTextureLoc(
void);
238 virtual GLS_EXPORT
void SetFromGloData(GlsGloFileAttribute &data);
virtual GlsOdometerGeometryType GeometryType()
Definition: dynamic_array.h:63
The disti::Group class. Implements groups of objects.
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:281
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:214
Definition: gls_odometer.h:81
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)