Loading...
Searching...
No Matches
Ts_Data Class Referenceabstract

Holds the data for an TsKeyFrame. More...

#include <data.h>

Inherited by Ts_TypedData< T >.

Public Member Functions

virtual void CloneInto (Ts_PolymorphicDataHolder *holder) const =0
 
virtual std::shared_ptr< Ts_UntypedEvalCache > CreateEvalCache (Ts_Data const *kf2) const =0
 
virtual VtValue EvalUncached (Ts_Data const *kf2, TsTime time) const =0
 
virtual VtValue EvalDerivativeUncached (Ts_Data const *kf2, TsTime time) const =0
 
virtual bool operator== (const Ts_Data &) const =0
 
TsTime GetTime () const
 
void SetTime (TsTime newTime)
 
virtual TsKnotType GetKnotType () const =0
 
virtual void SetKnotType (TsKnotType knotType)=0
 
virtual bool CanSetKnotType (TsKnotType knotType, std::string *reason) const =0
 
virtual VtValue GetValue () const =0
 
virtual void SetValue (VtValue val)=0
 
virtual VtValue GetValueDerivative () const =0
 
virtual bool GetIsDualValued () const =0
 
virtual void SetIsDualValued (bool isDual)=0
 
virtual VtValue GetLeftValue () const =0
 
virtual VtValue GetLeftValueDerivative () const =0
 
virtual void SetLeftValue (VtValue)=0
 
virtual VtValue GetZero () const =0
 
virtual bool ValueCanBeInterpolated () const =0
 
virtual bool ValueCanBeExtrapolated () const =0
 
virtual VtValue GetSlope (const Ts_Data &) const =0
 
virtual VtValue Extrapolate (const VtValue &value, TsTime dt, const VtValue &slope) const =0
 
virtual bool HasTangents () const =0
 True if the data type supports tangents, and the knot type is one that shows tangents in the UI.
 
virtual bool ValueTypeSupportsTangents () const =0
 If true, implies the tangents can be written.
 
virtual VtValue GetLeftTangentSlope () const =0
 
virtual VtValue GetRightTangentSlope () const =0
 
virtual TsTime GetLeftTangentLength () const =0
 
virtual TsTime GetRightTangentLength () const =0
 
virtual void SetLeftTangentSlope (VtValue)=0
 
virtual void SetRightTangentSlope (VtValue)=0
 
virtual void SetLeftTangentLength (TsTime)=0
 
virtual void SetRightTangentLength (TsTime)=0
 
virtual bool GetTangentSymmetryBroken () const =0
 
virtual void SetTangentSymmetryBroken (bool broken)=0
 
virtual void ResetTangentSymmetryBroken ()=0
 

Detailed Description

Holds the data for an TsKeyFrame.

Ts_Data is an interface for holding TsKeyFrame data.

Definition at line 50 of file data.h.

Member Function Documentation

◆ GetTime()

TsTime GetTime ( ) const
inline

Definition at line 75 of file data.h.

◆ HasTangents()

virtual bool HasTangents ( ) const
pure virtual

True if the data type supports tangents, and the knot type is one that shows tangents in the UI.

True only for Bezier. Linear and held knots return false, even though their tangents can be set.

◆ SetTime()

void SetTime ( TsTime  newTime)
inline

Definition at line 78 of file data.h.

◆ ValueTypeSupportsTangents()

virtual bool ValueTypeSupportsTangents ( ) const
pure virtual

If true, implies the tangents can be written.

For historical reasons, linear and held knots support tangents. This means that these types return true for ValueTypeSupportsTangents() but false for HasTangents().


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