#include <sequencetracksegmentcurve.h>
Public Member Functions | |
bool | init (utility::ErrorState &errorState) override |
T | getStartValue () const |
T | getEndValue () const |
T | getValue (float pos) const |
void | setStartValue (T value) |
void | setEndValue (T value) |
int | getCurveCount () |
NAPAPI int | getCurveCount () |
NAPAPI int | getCurveCount () |
NAPAPI int | getCurveCount () |
NAPAPI int | getCurveCount () |
![]() | |
SequenceTrackSegmentDuration ()=default | |
virtual | ~SequenceTrackSegmentDuration ()=default |
![]() | |
virtual | ~SequenceTrackSegment () |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
std::vector< ResourcePtr< math::FCurve< float, float > > > | mCurves |
Property: 'Curves' vector holding curves. More... | |
std::vector< math::ECurveInterp > | mCurveTypes |
Property: 'Curve Types' curve types of this segment ( linear, bezier ) More... | |
![]() | |
RGBAColorFloat | mColor = { 0.0f, 0.0f, 0.0f, 0.0f } |
Property: 'Color' color of this segment. More... | |
bool | mLocked = false |
Property: 'Locked' if true, the segment is locked and its start time and duration cannot be changed. More... | |
![]() | |
double | mDuration = 1.0 |
Property: 'Duration' duration of the segment in the track. More... | |
![]() | |
double | mStartTime = 0.0 |
Property: 'Start time' start time of segment in track. More... | |
std::string | mLabel = "default" |
Property: 'Label' label of this segment. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
A SequenceTrackSegment that holds an arbitrary amount of curves There are four supported types ( float, vec2, vec3, vec4 ) that can contain 1, 2 , 3 or 4 curves
int getCurveCount | ( | ) |
Returns the total number of curves associated with this track. Needs to be specialized for every type.
NAPAPI int getCurveCount | ( | ) |
NAPAPI int getCurveCount | ( | ) |
NAPAPI int getCurveCount | ( | ) |
NAPAPI int getCurveCount | ( | ) |
NAPAPI glm::vec4 getEndValue | ( | ) | const |
Gets the value of the last point of the curve, translated into the type
NAPAPI glm::vec4 getStartValue | ( | ) | const |
Gets the value of the first point of the curve, translated into the type
NAPAPI glm::vec4 getValue | ( | float | pos | ) | const |
Gets the value of the evaluated point of the curve, translated in to the type
pos | must be a value between 0-1 ( 0 meaning start of curve, 1 meaning end ) pos is not clamped |
|
overridevirtual |
init evaluates the data hold in curves and checks if its valid for this type
errorState | contains information about eventual failure of evaluation |
Reimplemented from SequenceTrackSegment.
void setEndValue | ( | T | value | ) |
Sets the value of the last point in the curve(s) Needs to be specialized for every type.
void setStartValue | ( | T | value | ) |
Sets the value of the first point in the curve(s). Needs to be specialized for every type.
std::vector<ResourcePtr<math::FCurve<float, float> > > mCurves |
Property: 'Curves' vector holding curves.
std::vector<math::ECurveInterp> mCurveTypes |
Property: 'Curve Types' curve types of this segment ( linear, bezier )