40 #ifndef _GLSTHUMBWHEEL_H
41 #define _GLSTHUMBWHEEL_H
48 #if (defined(GLSGEN_EXPORT_GLSTHUMBWHEEL) || \
49 defined(GLSGEN_IMPORT_GLSTHUMBWHEEL) || \
50 defined(GLS_EXPORT_GENERATED) || \
51 defined(GLS_IMPORT_GENERATED)) \
53 # if defined(GLSGEN_EXPORT_GLSTHUMBWHEEL) || defined(GLS_EXPORT_GENERATED)
54 # define GLSGEN_GLSTHUMBWHEEL_EXPORT __declspec(dllexport)
56 # define GLSGEN_GLSTHUMBWHEEL_EXPORT __declspec(dllimport)
59 # define GLSGEN_GLSTHUMBWHEEL_EXPORT
63 #define LIB_BASE_NAME "gls_thumb_wheel"
73 GLS_GLSTHUMBWHEEL_INITIAL_VAL = GLS_LAST_INITIALIZER+1,
74 GLS_GLSTHUMBWHEEL_EMIT_DETENT_VAL_EVENT,
75 GLS_GLSTHUMBWHEEL_EMIT_LIMIT_EVENT,
76 GLS_GLSTHUMBWHEEL_EMIT_RELEASE_EVENT,
77 GLS_GLSTHUMBWHEEL_NUMBER_OF_DETENTS,
78 GLS_GLSTHUMBWHEEL_CONTINUOUS_DRAG,
79 GLS_GLSTHUMBWHEEL_DETENT_VAL,
80 GLS_GLSTHUMBWHEEL_WHICH_OBJECT_THUMBWHEEL,
81 GLS_GLSTHUMBWHEEL_WHICH_OBJECT_ODOMETER,
82 GLS_GLSTHUMBWHEEL_SOUND_INDEX
88 friend class GlsThumbWheelEditor;
95 GLSGEN_GLSTHUMBWHEEL_EXPORT
GlsThumbWheel(
bool generateInstance=
false);
100 static GLSGEN_GLSTHUMBWHEEL_EXPORT
DisplayObject* CreateInstance();
114 virtual GLSGEN_GLSTHUMBWHEEL_EXPORT
void Draw(
void);
121 virtual void SetValue(
int spec,va_list &args);
130 GLSGEN_GLSTHUMBWHEEL_EXPORT
void DetentVal(
const int& val );
135 GLSGEN_GLSTHUMBWHEEL_EXPORT
int DetentVal();
140 GLSGEN_GLSTHUMBWHEEL_EXPORT
void IndexVal(
const int& val );
145 GLSGEN_GLSTHUMBWHEEL_EXPORT
int IndexVal();
169 const Vector& logicalCoords,
171 const Vector& directionVector,
177 bool _emitDetentValEvent;
178 bool _emitLimitEvent;
179 bool _emitReleaseEvent;
183 int _numberOfDetents;
185 bool _continuousDrag;
186 int _whichObjectThumbWheel;
187 int _whichObjectOdometer;
189 int _browserIndexThumbWheel;
190 int _browserIndexOdometer;
194 unsigned int _currentCursor;
200 virtual void SetFromGloData(GlsGloFileAttribute &data);
virtual void SetAvailableAttributes(unsigned int value)
virtual void CopyProperties(DisplayObject *src)
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:289
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL)
virtual DisplayObject * Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)
InputOrientationEnum InputType(void)
virtual DisplayObject * handle(DisplayEvent *ev)
InputOrientationEnum
Enumeration for Input Operators.
Definition: glsutil.h:268
int WhichObjectOdometer()
virtual void SetValue(int spec, va_list &args)
GlsThumbWheel(bool generateInstance=false)
int WhichObjectThumbWheel()
virtual void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler)
Definition: gls_thumb_wheel.h:86
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array)
virtual DisplayObject * CloneObject(bool generateNames=false)
GL Studio helper functions.
Definition: bmpimage.h:46