39#ifndef DISTI_INCLUDED_GLS_MUTEX_GROUP_H
40#define DISTI_INCLUDED_GLS_MUTEX_GROUP_H
46#if( defined( GLSGEN_EXPORT_GLSMUTEXGROUP ) || defined( GLSGEN_IMPORT_GLSMUTEXGROUP ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
47 && defined( _MSC_VER )
48# if defined( GLSGEN_EXPORT_GLSMUTEXGROUP ) || defined( GLS_EXPORT_GENERATED )
49# define GLSGEN_GLSMUTEXGROUP_EXPORT __declspec( dllexport )
51# define GLSGEN_GLSMUTEXGROUP_EXPORT __declspec( dllimport )
54# define GLSGEN_GLSMUTEXGROUP_EXPORT
59#define LIB_BASE_NAME "gls_mutex_group"
66static AttributeName MetaMutexState(
"MutexState" );
67static AttributeName MetaState(
"State" );
68static AttributeName MetaCalculateInvisibleStates(
"CalculateInvisibleStates" );
69static AttributeName MetaPickInvisibleStates(
"PickInvisibleStates" );
70static AttributeName MetaPredrawInvisibleStates(
"PreDrawInvisibleStates" );
71static AttributeName MetaInputDeviceBehavior(
"InputDeviceBehavior" );
76 GLS_MUTEX_GROUP_STATE = GLS_LAST_INITIALIZER + 1,
77 GLS_MUTEX_GROUP_CALC_INVISIBLE_STATES,
78 GLS_MUTEX_GROUP_PICK_INVISIBLE_STATES,
79 GLS_MUTEX_GROUP_PREDRAW_INVISIBLE_STATES,
80 GLS_MUTEX_GROUP_INPUT_DEVICE_BEHAVIOR
84class GlsGloFileAttribute;
95 friend class GlsMutexGroupEditor;
96 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
130 const
Vector& logicalCoords,
132 const
Vector& directionVector,
220 const Vector& logicalCoords,
222 const Vector& directionVector,
Definition: dynamic_array.h:79
unsigned Count() const
Definition: dynamic_array.h:218
Definition: gls_glo_file.h:1241
Definition: gls_mutex_group.h:89
bool InputDeviceBehavior()
Definition: gls_mutex_group.h:186
bool _predrawInvisibleStates
Whether or not to call predraw on invisible states.
Definition: gls_mutex_group.h:240
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
DisplayObject * Pick3DUtil(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices)
bool PickInvisibleStates()
Definition: gls_mutex_group.h:170
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
int _state
The index of the currently active object in the group, 0 to N, anything else = none.
Definition: gls_mutex_group.h:236
void PickInvisibleStates(bool value)
bool ValidInputDeviceState(const int state) const
Definition: gls_mutex_group.h:203
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
void MutexState(int state)
bool CalculateInvisibleStates()
Definition: gls_mutex_group.h:162
int MutexState() const
Definition: gls_mutex_group.h:144
bool _calculateInvisibleStates
Whether or not to call calculate on invisible states.
Definition: gls_mutex_group.h:238
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
void PreDrawInvisibleStates(bool value)
bool IsVisibleInScene(const DisplayObject *obj=NULL) const DISTI_METHOD_OVERRIDE
bool ValidMutexState(const int state) const
Definition: gls_mutex_group.h:196
virtual DisplayObject * Pick3D(const Vector &winLoc, const Vector &logicalCoords, float scale, const Vector &directionVector, Vector &collisionWinLoc, const OpenGLMatrices &drawnMatrices) DISTI_METHOD_OVERRIDE
bool _inputDevice
Definition: gls_mutex_group.h:233
int State()
Definition: gls_mutex_group.h:153
void Calculate(double time) DISTI_METHOD_OVERRIDE
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
void CalculateInvisibleStates(bool value)
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
bool _pickInvisibleStates
Whether or not to call pick on invisible states.
Definition: gls_mutex_group.h:239
void InputDeviceBehavior(bool value)
bool PreDrawInvisibleStates()
Definition: gls_mutex_group.h:178
DisplayObjectArray _objects
The objects contained in this group.
Definition: group.h:80
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:245
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:487
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:221
#define GLSGEN_GLSMUTEXGROUP_EXPORT
Provides support for creating DLLs.
Definition: gls_mutex_group.h:54
The disti::Group class. Implements groups of objects.
Definition: bmpimage.h:46