This class describes an easing curve. More...
Easing curve types | |
enum | Type { Linear , InSine , OutSine , InOutSine , InQuad , OutQuad , InOutQuad , InCubic , OutCubic , InOutCubic , InQuart , OutQuart , InOutQuart , InQuint , OutQuint , InOutQuint , InExpo , OutExpo , InOutExpo , InCirc , OutCirc , InOutCirc , InBack , OutBack , InOutBack , InElastic , OutElastic , InOutElastic , InBounce , OutBounce , InOutBounce } |
The type of the easing curve. More... | |
Debugging | |
Returns the value for a given | |
SBDTypeEasingCurveData * | dataPointer |
virtual void | print (unsigned int offset=0) const |
Prints the EasingCurve. | |
SB_DECLARE_DATA (SBDTypeEasingCurve) | |
Constructors and destructors | |
SBDTypeEasingCurve (Type type=Linear) | |
Constructs an easing curve. | |
SBDTypeEasingCurve (const SBDTypeEasingCurve &EasingCurve) | |
Constructs an easing curve. | |
virtual | ~SBDTypeEasingCurve () |
Destructs the easing curve. | |
Serialization | |
bool | isSerializable () const |
Returns true. | |
void | serialize (SBCSerializer *serializer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER) const |
Serializes the easing curve. | |
void | unserialize (SBCSerializer *serializer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER) |
Unserializes the easing curve. | |
Identity | |
Type | getType () const |
Returns the type of the easing curve. | |
void | setType (Type type) |
Sets the type of the easing curve. | |
std::string | getTypeString (bool humanReadable=false) const |
Returns a string describing the type of the easing curve. | |
static std::string | getTypeString (Type type, bool humanReadable=false) |
Returns a string describing the type of the easing curve. | |
Operators | |
SBDTypeEasingCurve & | operator= (const SBDTypeEasingCurve &EasingCurve) |
Evaluation | |
double | getValue (double progress) const |
static double | getValue (Type type, double progress) |
Returns the value for a given progress . | |
This class describes an easing curve in SAMSON.
std::string SBDTypeEasingCurve::getTypeString | ( | bool | humanReadable = false | ) | const |
This function is a convenience function used to produce a string corresponding to the easing curve's type.
|
static |
This function is a convenience function used to produce a string corresponding to a given easing curve type
.