Loading...
Searching...
No Matches
TsTypedKnot< T, typename > Class Template Reference

A convenience for constructing knots with specified types. More...

#include <knot.h>

+ Inheritance diagram for TsTypedKnot< T, typename >:

Additional Inherited Members

- Public Member Functions inherited from TsKnot
TS_API TsKnot ()
 Default constructor creates a double-typed knot.
 
TS_API TsKnot (TfType valueType)
 Creates a knot with a specified value type.
 
TS_API TsKnot (TfType valueType, TsCurveType curveType)
 Creates a knot with a specified value type and curve type.
 
TS_API TsKnot (const TsKnot &other)
 
TS_API TsKnot (TsKnot &&other)
 
TS_API ~TsKnot ()
 
TS_API TsKnotoperator= (const TsKnot &other)
 
TS_API TsKnotoperator= (TsKnot &&other)
 
TS_API bool operator== (const TsKnot &other) const
 
TS_API bool operator!= (const TsKnot &other) const
 
TS_API bool SetTime (TsTime time)
 
TS_API TsTime GetTime () const
 
TS_API bool SetNextInterpolation (TsInterpMode mode)
 Sets the interpolation mode of the spline segment following this knot.
 
TS_API TsInterpMode GetNextInterpolation () const
 
TS_API TfType GetValueType () const
 
template<typename T >
bool IsHolding () const
 
TS_API bool SetValue (VtValue value)
 
template<typename T >
bool SetValue (const T value)
 
TS_API bool GetValue (VtValue *valueOut) const
 
template<typename T >
bool GetValue (T *valueOut) const
 
TS_API bool IsDualValued () const
 
TS_API bool SetPreValue (VtValue value)
 
template<typename T >
bool SetPreValue (const T value)
 
TS_API bool GetPreValue (VtValue *valueOut) const
 
template<typename T >
bool GetPreValue (T *valueOut) const
 
TS_API bool ClearPreValue ()
 
TS_API bool SetCurveType (TsCurveType curveType)
 
TS_API TsCurveType GetCurveType () const
 
TS_API bool SetPreTanWidth (TsTime width)
 
TS_API TsTime GetPreTanWidth () const
 
TS_API bool SetPreTanSlope (VtValue slope)
 
template<typename T >
bool SetPreTanSlope (T slope)
 
TS_API bool GetPreTanSlope (VtValue *slopeOut) const
 
template<typename T >
bool GetPreTanSlope (T *slopeOut) const
 
TS_API bool SetPreTanAlgorithm (TsTangentAlgorithm algorithm)
 Set the pre-tangent algorithm.
 
TS_API TsTangentAlgorithm GetPreTanAlgorithm () const
 Get the pre-tangent algorithm.
 
TS_API bool SetPostTanWidth (TsTime width)
 
TS_API TsTime GetPostTanWidth () const
 
TS_API bool SetPostTanSlope (VtValue slope)
 
template<typename T >
bool SetPostTanSlope (T slope)
 
TS_API bool GetPostTanSlope (VtValue *slopeOut) const
 
template<typename T >
bool GetPostTanSlope (T *slopeOut) const
 
TS_API bool SetPostTanAlgorithm (TsTangentAlgorithm algorithm)
 Set the post-tangent algorithm.
 
TS_API TsTangentAlgorithm GetPostTanAlgorithm () const
 Get the post-tangent algorithm.
 
TS_API bool UpdateTangents (const std::optional< TsKnot > prevKnot, const std::optional< TsKnot > nextKnot, TsCurveType curveType=TsCurveTypeBezier)
 Update tangent values algorithmically.
 
TS_API bool SetCustomData (VtDictionary customData)
 
TS_API VtDictionary GetCustomData () const
 
TS_API bool SetCustomDataByKey (const std::string &keyPath, VtValue value)
 
TS_API VtValue GetCustomDataByKey (const std::string &keyPath) const
 
TS_API bool IsC0Continuous () const
 Not yet implemented.
 
TS_API bool IsG1Continuous () const
 Not yet implemented.
 
TS_API bool IsC1Continuous () const
 Not yet implemented.
 
- Protected Member Functions inherited from TsKnot
 TsKnot (Ts_KnotData *data, TfType valueType, VtDictionary &&customData)
 
Ts_KnotData * _GetData ()
 
const Ts_KnotData * _GetData () const
 

Detailed Description

template<typename T, typename = std::enable_if_t<Ts_IsSupportedValueType<T>::value>>
class TsTypedKnot< T, typename >

A convenience for constructing knots with specified types.

Instead of writing:

TsKnot knot1(TfType::Find<double>());
TsKnot knot2(TfType::Find<float>());
TsKnot knot3(TfType::Find<GfHalf>());

One may write:

TsDoubleKnot knot1;
TsFloatKnot knot2;
TsHalfKnot knot3;

Definition at line 424 of file knot.h.

Constructor & Destructor Documentation

◆ TsTypedKnot()

TsTypedKnot ( )
inline

Definition at line 427 of file knot.h.


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