1 #ifndef __GLTF_Channel_h__
2 #define __GLTF_Channel_h__
46 virtual bool getTranslation(
49 virtual bool getRotation(
55 virtual bool getWeight(
90 float& weight)
override;
111 void fillChannelComponents();
UT_Array< float > myKeyframes
virtual bool getTranslation(fpreal time, UT_Vector3F &trans)=0
virtual bool getRotation(fpreal time, UT_Quaternion &rot)=0
GT_API const UT_StringHolder time
GA_API const UT_StringHolder rot
virtual GLTF_AnimChannelSource * clone()=0
void setInterpolation(GLTF_Interpolation interp)
virtual bool getWeight(fpreal time, float &weight)=0
GA_API const UT_StringHolder scale
GLTF_AnimChannelSource & operator=(const GLTF_AnimChannelSource &other)=default
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
GA_API const UT_StringHolder trans
UT_SharedPtr< GLTF_AnimChannelSource > mySource
virtual UT_XformOrder getXformOrder(fpreal time) const =0
virtual bool getScale(fpreal time, UT_Vector3F &scale)=0
LeafData & operator=(const LeafData &)=delete
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
GLTF_ChannelTarget myChannelTarget
UT_Set< GLTF_ChannelTarget > myTargets
UT_Array< CL_SimpleChannel > myChannelComponents
GLTF_Interpolation myInterpolation
UT_Array< float > myValues