39#ifndef DISTI_INCLUDED_GLS_DYNAMIC_PATH_H
40#define DISTI_INCLUDED_GLS_DYNAMIC_PATH_H
46#if( defined( GLSGEN_EXPORT_GLSDYNAMICPATH ) || defined( GLSGEN_IMPORT_GLSDYNAMICPATH ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
47 && defined( _MSC_VER )
48# if defined( GLSGEN_EXPORT_GLSDYNAMICPATH ) || defined( GLS_EXPORT_GENERATED )
49# define GLSGEN_GLSDYNAMICPATH_EXPORT __declspec( dllexport )
51# define GLSGEN_GLSDYNAMICPATH_EXPORT __declspec( dllimport )
54# define GLSGEN_GLSDYNAMICPATH_EXPORT
59#define LIB_BASE_NAME "gls_dynamic_path"
68 GLS_DYNAMICPATH_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
69 GLS_DYNAMICPATH_AFFECTS_LOCATION_X,
70 GLS_DYNAMICPATH_AFFECTS_LOCATION_Y,
71 GLS_DYNAMICPATH_AFFECTS_LOCATION_Z,
72 GLS_DYNAMICPATH_AFFECTS_ROTATION_X,
73 GLS_DYNAMICPATH_AFFECTS_ROTATION_Y,
74 GLS_DYNAMICPATH_AFFECTS_ROTATION_Z,
75 GLS_DYNAMICPATH_AFFECTS_SCALE_X,
76 GLS_DYNAMICPATH_AFFECTS_SCALE_Y,
77 GLS_DYNAMICPATH_AFFECTS_SCALE_Z,
78 GLS_DYNAMICPATH_USE_SHORT_ROTATION_PATHS,
79 GLS_DYNAMICPATH_STATE_COUNT,
86 friend class GlsDynamicPathEditor;
93 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
Definition: disti_metadata.h:750
Definition: disti_metadata.h:220
Definition: dynamic_array.h:79
unsigned Count() const
Definition: dynamic_array.h:218
Definition: gls_dynamic_path.h:208
void Value(const float &value)
Definition: gls_dynamic_path.h:269
void Scale(const Vector &value)
Definition: gls_dynamic_path.h:258
void Location(const Vector &value)
Definition: gls_dynamic_path.h:236
Vector Scale() const
Definition: gls_dynamic_path.h:265
Vector Location()
Definition: gls_dynamic_path.h:240
Vector Rotation() const
Definition: gls_dynamic_path.h:254
float _value
The key value of the animation state.
Definition: gls_dynamic_path.h:282
float Value() const
Definition: gls_dynamic_path.h:276
Vector Scale()
Definition: gls_dynamic_path.h:262
State(const State &)
Copy constructor.
void MakeAttribDict()
Sets up DistiAttributes associated with each member of this class.
Vector _rotation
The rotation of the animation state.
Definition: gls_dynamic_path.h:280
float Value()
Definition: gls_dynamic_path.h:273
Vector Rotation()
Definition: gls_dynamic_path.h:251
Vector Location() const
Definition: gls_dynamic_path.h:243
DistiAttribDict & Attributes()
Definition: gls_dynamic_path.h:227
Vector _scale
The scale of the animation state.
Definition: gls_dynamic_path.h:281
DistiAttribDict * _attribDict
Attribute storage for the members of this class.
Definition: gls_dynamic_path.h:283
const State & operator=(const State &)
Vector _location
The location of the animation state.
Definition: gls_dynamic_path.h:279
void Rotation(const Vector &value)
Definition: gls_dynamic_path.h:247
Definition: gls_dynamic_path.h:85
const StateArrayType & StateArray() const
Definition: gls_dynamic_path.h:292
bool AffectsRotationZ() const
Definition: gls_dynamic_path.h:176
DynamicArray< State > StateArrayType
Typedef for a list of States.
Definition: gls_dynamic_path.h:286
bool _affectsScaleZ
If true, this path will affect an object's Z scale.
Definition: gls_dynamic_path.h:371
void FindFirstPathSegmentContainingValue(float value, int *index1, int *index2)
bool AffectsScaleZ() const
Definition: gls_dynamic_path.h:197
bool _affectsLocationY
If true, this path will affect an object's Y location.
Definition: gls_dynamic_path.h:364
bool AffectsLocationY() const
Definition: gls_dynamic_path.h:148
void SetValue(int spec, va_list &args) DISTI_METHOD_OVERRIDE
bool AffectsScaleY() const
Definition: gls_dynamic_path.h:190
DistiAttributeBase & Resource(const char *name) DISTI_METHOD_OVERRIDE
bool AffectsRotationY() const
Definition: gls_dynamic_path.h:169
Vector GetPathRotation(float value)
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
bool _affectsRotationY
If true, this path will affect an object's Y rotation.
Definition: gls_dynamic_path.h:367
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
bool _affectsRotationX
If true, this path will affect an object's X rotation.
Definition: gls_dynamic_path.h:366
void GetResources(std::ostream &outstr, GlsResourceFilter *filter) DISTI_METHOD_OVERRIDE
StateArrayType _stateArray
The list of animation states for this path.
Definition: gls_dynamic_path.h:375
DisplayObject * handle(DisplayEvent *ev) DISTI_METHOD_OVERRIDE
void AffectsScaleY(const bool &value)
void UseShortRotationPaths(const bool &value)
void MoveObjectToState(DisplayObject *obj, int stateNumber)
bool AffectsRotationX() const
Definition: gls_dynamic_path.h:162
float FirstStateValue()
Definition: gls_dynamic_path.h:305
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
void Draw() DISTI_METHOD_OVERRIDE
void AffectsRotationZ(const bool &value)
bool _useShortRotationPaths
If true, this state will rotate in the direction that will reach the desired angle the fastest.
Definition: gls_dynamic_path.h:373
bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) DISTI_METHOD_OVERRIDE
Vector GetPathLocation(float value)
bool _affectsRotationZ
If true, this path will affect an object's Z rotation.
Definition: gls_dynamic_path.h:368
bool _affectsLocationZ
If true, this path will affect an object's Z location.
Definition: gls_dynamic_path.h:365
void AffectsRotationX(const bool &value)
bool UseShortRotationPaths() const
Definition: gls_dynamic_path.h:204
void MoveObject(DisplayObject *obj, float value)
bool AffectsLocationX() const
Definition: gls_dynamic_path.h:141
Vector GetPathScale(float value)
bool _affectsScaleY
If true, this path will affect an object's Y scale.
Definition: gls_dynamic_path.h:370
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
bool _affectsLocationX
If true, this path will affect an object's X location.
Definition: gls_dynamic_path.h:363
bool AffectsLocationZ() const
Definition: gls_dynamic_path.h:155
void AffectsRotationY(const bool &value)
void AffectsScaleZ(const bool &value)
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
void AffectsScaleX(const bool &value)
bool _affectsScaleX
If true, this path will affect an object's X scale.
Definition: gls_dynamic_path.h:369
StateArrayType & StateArray()
Definition: gls_dynamic_path.h:289
void AffectsLocationZ(const bool &value)
float LastStateValue()
Definition: gls_dynamic_path.h:318
bool AffectsScaleX() const
Definition: gls_dynamic_path.h:183
void AffectsLocationY(const bool &value)
Definition: gls_glo_file.h:1241
Definition: gls_resources.h:49
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_GLSDYNAMICPATH_EXPORT
Provides support for creating DLLs.
Definition: gls_dynamic_path.h:54
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:50
The disti::Group class. Implements groups of objects.
Definition: bmpimage.h:46