HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ts_TypedData< T > Class Template Reference

#include <data.h>

+ Inheritance diagram for Ts_TypedData< T >:

Public Types

typedef T ValueType
 
typedef Ts_TypedData< TThis
 

Public Member Functions

 Ts_TypedData (const T &)
 
 Ts_TypedData (const TsTime &t, bool isDual, const T &leftValue, const T &rightValue, const T &leftTangentSlope, const T &rightTangentSlope)
 
 ~Ts_TypedData () override=default
 
void CloneInto (Ts_PolymorphicDataHolder *holder) const override
 
std::shared_ptr
< Ts_UntypedEvalCache
CreateEvalCache (Ts_Data const *kf2) const override
 
VtValue EvalUncached (Ts_Data const *kf2, TsTime time) const override
 
VtValue EvalDerivativeUncached (Ts_Data const *kf2, TsTime time) const override
 
std::shared_ptr< Ts_EvalCache
< T, TsTraits< T >
::interpolatable > > 
CreateTypedEvalCache (Ts_Data const *kf2) const
 
bool operator== (const Ts_Data &) const override
 
TsKnotType GetKnotType () const override
 
void SetKnotType (TsKnotType knotType) override
 
bool CanSetKnotType (TsKnotType knotType, std::string *reason) const override
 
VtValue GetValue () const override
 
void SetValue (VtValue) override
 
VtValue GetValueDerivative () const override
 
bool GetIsDualValued () const override
 
void SetIsDualValued (bool isDual) override
 
VtValue GetLeftValue () const override
 
VtValue GetLeftValueDerivative () const override
 
void SetLeftValue (VtValue) override
 
VtValue GetZero () const override
 
bool ValueCanBeInterpolated () const override
 
bool ValueCanBeExtrapolated () const override
 
bool HasTangents () const override
 
bool ValueTypeSupportsTangents () const override
 
VtValue GetLeftTangentSlope () const override
 
VtValue GetRightTangentSlope () const override
 
TsTime GetLeftTangentLength () const override
 
TsTime GetRightTangentLength () const override
 
void SetLeftTangentSlope (VtValue) override
 
void SetRightTangentSlope (VtValue) override
 
void SetLeftTangentLength (TsTime) override
 
void SetRightTangentLength (TsTime) override
 
bool GetTangentSymmetryBroken () const override
 
void SetTangentSymmetryBroken (bool broken) override
 
void ResetTangentSymmetryBroken () override
 
VtValue GetSlope (const Ts_Data &right) const override
 
VtValue Extrapolate (const VtValue &value, TsTime dt, const VtValue &slope) const override
 
template<>
TS_API void ResetTangentSymmetryBroken ()
 
template<>
TS_API void ResetTangentSymmetryBroken ()
 
template<>
TS_API bool ValueCanBeInterpolated () const
 
template<>
TS_API bool ValueCanBeInterpolated () const
 
- Public Member Functions inherited from Ts_Data
virtual ~Ts_Data ()=default
 
TsTime GetTime () const
 
void SetTime (TsTime newTime)
 

Friends

class TsKeyFrame
 
class Ts_UntypedEvalCache
 
class Ts_EvalQuaternionCache< T >
 
class Ts_EvalCache< T, TsTraits< T >::interpolatable >
 

Detailed Description

template<typename T>
class Ts_TypedData< T >

Definition at line 141 of file data.h.

Member Typedef Documentation

template<typename T>
typedef Ts_TypedData<T> Ts_TypedData< T >::This

Definition at line 144 of file data.h.

template<typename T>
typedef T Ts_TypedData< T >::ValueType

Definition at line 143 of file data.h.

Constructor & Destructor Documentation

template<typename T >
Ts_TypedData< T >::Ts_TypedData ( const T value)

Definition at line 472 of file data.h.

template<typename T >
Ts_TypedData< T >::Ts_TypedData ( const TsTime t,
bool  isDual,
const T leftValue,
const T rightValue,
const T leftTangentSlope,
const T rightTangentSlope 
)

Definition at line 483 of file data.h.

template<typename T>
Ts_TypedData< T >::~Ts_TypedData ( )
overridedefault

Member Function Documentation

template<typename T >
bool Ts_TypedData< T >::CanSetKnotType ( TsKnotType  knotType,
std::string reason 
) const
overridevirtual

Implements Ts_Data.

Definition at line 610 of file data.h.

template<typename T >
void Ts_TypedData< T >::CloneInto ( Ts_PolymorphicDataHolder holder) const
overridevirtual

Implements Ts_Data.

Definition at line 503 of file data.h.

template<typename T >
std::shared_ptr< Ts_UntypedEvalCache > Ts_TypedData< T >::CreateEvalCache ( Ts_Data const *  kf2) const
overridevirtual

Implements Ts_Data.

Definition at line 510 of file data.h.

template<typename T >
std::shared_ptr< Ts_EvalCache< T, TsTraits< T >::interpolatable > > Ts_TypedData< T >::CreateTypedEvalCache ( Ts_Data const *  kf2) const

Definition at line 524 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::EvalDerivativeUncached ( Ts_Data const *  kf2,
TsTime  time 
) const
overridevirtual

Implements Ts_Data.

Definition at line 550 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::EvalUncached ( Ts_Data const *  kf2,
TsTime  time 
) const
overridevirtual

Implements Ts_Data.

Definition at line 536 of file data.h.

template<typename T>
VtValue Ts_TypedData< T >::Extrapolate ( const VtValue value,
TsTime  dt,
const VtValue slope 
) const
inlineoverridevirtual

Implements Ts_Data.

Definition at line 244 of file data.h.

template<typename T >
bool Ts_TypedData< T >::GetIsDualValued ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 673 of file data.h.

template<typename T >
TsKnotType Ts_TypedData< T >::GetKnotType ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 589 of file data.h.

template<typename T >
TsTime Ts_TypedData< T >::GetLeftTangentLength ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 806 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetLeftTangentSlope ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 780 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetLeftValue ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 699 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetLeftValueDerivative ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 706 of file data.h.

template<typename T >
TsTime Ts_TypedData< T >::GetRightTangentLength ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 819 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetRightTangentSlope ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 793 of file data.h.

template<typename T>
VtValue Ts_TypedData< T >::GetSlope ( const Ts_Data right) const
inlineoverridevirtual

Implements Ts_Data.

Definition at line 222 of file data.h.

template<typename T >
bool Ts_TypedData< T >::GetTangentSymmetryBroken ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 934 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetValue ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 639 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetValueDerivative ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 646 of file data.h.

template<typename T >
VtValue Ts_TypedData< T >::GetZero ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 743 of file data.h.

template<typename T >
bool Ts_TypedData< T >::HasTangents ( ) const
overridevirtual

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.

Implements Ts_Data.

Definition at line 764 of file data.h.

template<typename T >
bool Ts_TypedData< T >::operator== ( const Ts_Data rhs) const
overridevirtual

Implements Ts_Data.

Definition at line 563 of file data.h.

template<typename T >
void Ts_TypedData< T >::ResetTangentSymmetryBroken ( )
overridevirtual

Implements Ts_Data.

Definition at line 965 of file data.h.

template<>
TS_API void Ts_TypedData< float >::ResetTangentSymmetryBroken ( )
virtual

Implements Ts_Data.

template<>
TS_API void Ts_TypedData< double >::ResetTangentSymmetryBroken ( )
virtual

Implements Ts_Data.

template<typename T >
void Ts_TypedData< T >::SetIsDualValued ( bool  isDual)
overridevirtual

Implements Ts_Data.

Definition at line 680 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetKnotType ( TsKnotType  knotType)
overridevirtual

Implements Ts_Data.

Definition at line 596 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetLeftTangentLength ( TsTime  newLen)
overridevirtual

Implements Ts_Data.

Definition at line 874 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetLeftTangentSlope ( VtValue  val)
overridevirtual

Implements Ts_Data.

Definition at line 832 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetLeftValue ( VtValue  val)
overridevirtual

Implements Ts_Data.

Definition at line 717 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetRightTangentLength ( TsTime  newLen)
overridevirtual

Implements Ts_Data.

Definition at line 904 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetRightTangentSlope ( VtValue  val)
overridevirtual

Implements Ts_Data.

Definition at line 852 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetTangentSymmetryBroken ( bool  broken)
overridevirtual

Implements Ts_Data.

Definition at line 947 of file data.h.

template<typename T >
void Ts_TypedData< T >::SetValue ( VtValue  val)
overridevirtual

Implements Ts_Data.

Definition at line 657 of file data.h.

template<typename T >
bool Ts_TypedData< T >::ValueCanBeExtrapolated ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 757 of file data.h.

template<typename T >
bool Ts_TypedData< T >::ValueCanBeInterpolated ( ) const
overridevirtual

Implements Ts_Data.

Definition at line 750 of file data.h.

template<>
TS_API bool Ts_TypedData< float >::ValueCanBeInterpolated ( ) const
virtual

Implements Ts_Data.

template<>
TS_API bool Ts_TypedData< double >::ValueCanBeInterpolated ( ) const
virtual

Implements Ts_Data.

template<typename T >
bool Ts_TypedData< T >::ValueTypeSupportsTangents ( ) const
overridevirtual

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().

Implements Ts_Data.

Definition at line 771 of file data.h.

Friends And Related Function Documentation

template<typename T>
friend class Ts_EvalCache< T, TsTraits< T >::interpolatable >
friend

Definition at line 294 of file data.h.

template<typename T>
friend class Ts_EvalQuaternionCache< T >
friend

Definition at line 293 of file data.h.

template<typename T>
friend class Ts_UntypedEvalCache
friend

Definition at line 292 of file data.h.

template<typename T>
friend class TsKeyFrame
friend

Definition at line 291 of file data.h.


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