GlsAnimation Library  1.0.5
Provides classes and functions to support animating GL Studio objects programmatically or with script files
Public Types | Public Member Functions | List of all members
disti::GlsKeyframeCurveBase Class Referenceabstract

Base class for the keyframe curve class template. More...

#include <gls_keyframe.h>

Inheritance diagram for disti::GlsKeyframeCurveBase:
disti::GlsKeyframeCurve< T > disti::GlsKeyframeCurve< double > disti::GlsKeyframeCurve< glsColor > disti::GlsKeyframeCurve< GlsQuaternionD > disti::GlsKeyframeCurve< std::string > disti::GlsKeyframeCurve< Vector >

Public Types

typedef double Key
 The key type (usually time, but not always)
 
typedef std::size_t Size
 The size type for sizes and indices.
 
typedef std::pair< Key, KeyKeyPair
 Alias for easier reading.
 

Public Member Functions

virtual ~GlsKeyframeCurveBase ()
 Destructor.
 
virtual Size GetKeyframeCount () const =0
 Returns the number of keyframes.
 
virtual KeyPair GetMinMaxKeys () const =0
 

Detailed Description

Base class for the keyframe curve class template.

Member Function Documentation

virtual KeyPair disti::GlsKeyframeCurveBase::GetMinMaxKeys ( ) const
pure virtual

Get the minimum and maximum keys

Returns
A pair with the minimum in first and maximum in second.
Note
If there are no keyframes, both min and max are set to NaN. If there is only one keyframe, min and max are equal.

Implemented in disti::GlsKeyframeCurve< T >, disti::GlsKeyframeCurve< double >, disti::GlsKeyframeCurve< std::string >, disti::GlsKeyframeCurve< Vector >, disti::GlsKeyframeCurve< GlsQuaternionD >, and disti::GlsKeyframeCurve< glsColor >.


The documentation for this class was generated from the following file: