39#ifndef INCLUDED_GLS_SERIAL_MORPH_MESH_H
40#define INCLUDED_GLS_SERIAL_MORPH_MESH_H
54#if( defined( GLSGEN_EXPORT_GLSADVANCEDMESH ) || defined( GLSGEN_IMPORT_GLSADVANCEDMESH ) || defined( GLS_EXPORT_GENERATED ) || defined( GLS_IMPORT_GENERATED ) ) \
55 && defined( _MSC_VER )
56# if defined( GLSGEN_EXPORT_GLSADVANCEDMESH ) || defined( GLS_EXPORT_GENERATED )
57# define GLSGEN_GlsSerialMorphMesh_EXPORT __declspec( dllexport )
59# define GLSGEN_GlsSerialMorphMesh_EXPORT __declspec( dllimport )
62# define GLSGEN_GlsSerialMorphMesh_EXPORT
67#define LIB_BASE_NAME "gls_advanced_mesh"
75class GlsGloFileAttribute;
84 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
87 friend class GlsSerialMorphMeshEditor;
259 void Count(
unsigned count ) { _keyframes.Count( count ); }
262 unsigned Count()
const {
return _keyframes.Count(); }
265 void Clear() { _keyframes.Clear(); }
302 int _gloKeyframeIndex;
305 void CalculateBSplineInterpolation()
const;
Definition: disti_metadata.h:750
Definition: dynamic_array.h:79
Definition: gls_geometry_resource_mesh.h:78
Definition: gls_geometry_resource.h:86
Definition: gls_geometry_resource.h:513
Definition: gls_glo_file.h:1241
Definition: gls_serial_morph_mesh.h:237
void Count(unsigned count)
Definition: gls_serial_morph_mesh.h:259
static void element_read_func(int index, KeyframeDataArray &array, std::istream &instr)
unsigned Count() const
Definition: gls_serial_morph_mesh.h:262
const Keyframe_Data & operator[](const std::size_t index) const
Definition: gls_serial_morph_mesh.h:275
GlsSerialMorphMesh * _parentMesh
Observing pointer to the GlsSerialMorphMesh object.
Definition: gls_serial_morph_mesh.h:239
void Clear()
Clear all elements in the array.
Definition: gls_serial_morph_mesh.h:265
Keyframe_Data & operator[](const std::size_t index)
Definition: gls_serial_morph_mesh.h:270
static void element_write_func(int index, KeyframeDataArray &array, std::ostream &outstr)
Definition: gls_serial_morph_mesh.h:202
Keyframe_Data(const Keyframe_Data &)
Copy constructor.
GlsGeometry_Generic * GetGeometry()
float _value
The key value for this keyframe.
Definition: gls_serial_morph_mesh.h:211
void SetupAttribDict()
Populates the attribute dictionary.
const Keyframe_Data & operator=(const Keyframe_Data &)
DistiAttribDict & Attributes()
GlsGeometry_Generic * _geometry
An observing pointer to the mesh data values for this keyframe.
Definition: gls_serial_morph_mesh.h:210
DistiAttribDict * _attribDict
The attribute dictionary for this object's members.
Definition: gls_serial_morph_mesh.h:204
void SetGeometry(GlsGeometry_Generic *geom)
Definition: gls_serial_morph_mesh.h:82
void CopyGeometry(DisplayObject *src) DISTI_METHOD_OVERRIDE
void SetMorphPercent(const float &value)
float _last_keyframe_weight
The blend weight for the first keyframe [0,1].
Definition: gls_serial_morph_mesh.h:288
void CopyProperties(DisplayObject *src) DISTI_METHOD_OVERRIDE
void RecalculateKeyframeIndicesAndWeights()
Update the _last_keyframe_index, _next_keyframe_index, _last_keyframe_weight and _next_keyframe_weigh...
void SetAvailableAttributes(unsigned int value) DISTI_METHOD_OVERRIDE
float GetKeyframePercent(unsigned int index)
void GetCppInterfaceDescriptionFree(InterfaceListType *array) DISTI_METHOD_OVERRIDE
void KeyframeGeometryChanged(Keyframe_Data *)
Called by the KeyframeData class when the geometry changes.
void SetKeyframePercent(unsigned int index, const float &value)
void InvalidateRenderMesh()
Definition: gls_serial_morph_mesh.h:183
void PreDraw(const OpenGLMatrices &parentMatrices, Culler &culler) DISTI_METHOD_OVERRIDE
static DisplayObject * CreateInstance()
float _tension
The interpolation tension value.
Definition: gls_serial_morph_mesh.h:284
float _next_keyframe_weight
The blend weight for the next keyframe [0,1].
Definition: gls_serial_morph_mesh.h:289
void SetNumKeyframes(unsigned int count)
GlsGeometry_Generic * _renderMesh
The mesh being morphed.
Definition: gls_serial_morph_mesh.h:292
void SetTension(const float &value)
GlsGeometry_Generic * GetKeyframeGeometry(unsigned int index)
GlsGeometryResource * GetRenderMesh() DISTI_METHOD_OVERRIDE
void SetKeyframeGeometry(unsigned int keyframeIndex, GlsGeometry_Generic *newKeyframeGeometry)
unsigned int _last_keyframe_index
The first keyframe where _value <= _currentValue.
Definition: gls_serial_morph_mesh.h:286
DisplayObject * CloneObject(bool generateNames=false) DISTI_METHOD_OVERRIDE
float _currentValue
The current position in the animation.
Definition: gls_serial_morph_mesh.h:283
KeyframeDataArray _keyframes
The list of animation keyframes.
Definition: gls_serial_morph_mesh.h:281
unsigned int NumKeyframes()
InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) DISTI_METHOD_OVERRIDE
bool _renderMeshIsValid
If false, the mesh will be recalculated prior to next draw.
Definition: gls_serial_morph_mesh.h:291
unsigned int _next_keyframe_index
The next keyframe after last_keyframe_index where _value > _currentValue. If _value matches _currentV...
Definition: gls_serial_morph_mesh.h:287
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:540
The disti::GlsAdvancedMesh class.
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
The disti::GlsGeometryResource class.
Resource file manager interface.
#define GLSGEN_GlsSerialMorphMesh_EXPORT
Provides support for creating DLLs.
Definition: gls_serial_morph_mesh.h:62
The disti::Group class. Implements groups of objects.
Definition: bmpimage.h:46