9 #ifndef __HOM_AgentClip_h__
10 #define __HOM_AgentClip_h__
32 bool keep_external_ref =
true,
bool delay_load =
false)
35 keep_external_ref, delay_load);
46 const char *name =
nullptr)
73 virtual std::string fileName(
bool expanded =
false)
const = 0;
75 virtual bool isLoaded()
const = 0;
76 virtual void loadFromFile() = 0;
78 virtual double length()
const = 0;
79 virtual double startTime()
const = 0;
81 virtual double sampleRate()
const = 0;
84 addChannel(
const char *
name,
const std::vector<float> &
samples) = 0;
86 SWIGOUT(%newobject sampleLocal;)
88 SWIGOUT(%newobject sampleWorld;)
91 virtual std::vector<HOM_Matrix4> localTransforms(
int sample)
const = 0;
92 virtual std::vector<HOM_Matrix4> worldTransforms(
int sample)
const = 0;
95 setLocalTransforms(
int sample,
const std::vector<HOM_Matrix4> &xforms) = 0;
97 virtual double sample(
double time,
const char *channel)
const = 0;
98 virtual std::vector<std::string> channelNames()
const = 0;
102 SWIGOUT(%kwargs extractLocomotion;)
104 extractLocomotion(
int cog_transform,
int cog_lookat_transform = -1,
105 bool convert_inplace =
true,
106 bool project_on_dominant_axis =
false) = 0;
#define HOM_DESTRUCT_OBJECT(pointer)
static double currentFrame()
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
const GLuint GLenum const void * binary
GLsizei const GLchar *const * path
GLuint GLsizei GLsizei * length
string __repr__(VtArray< T > const &self)
virtual double timeToFrame(double time, bool full_precision=false)=0
virtual HOM_AgentClip * newAgentClip(const char *name, const char *path, const HOM_AgentRig &rig, bool keep_external_ref, bool delay_load)=0
void ignore(T const &) VULKAN_HPP_NOEXCEPT
int & sampleCount(char *base, int xStride, int yStride, int x, int y)
#define HOM_CONSTRUCT_OBJECT(pointer)
GLuint const GLchar * name
GA_API const UT_StringHolder transform
bool operator!=(HOM_PtrOrNull< HOM_AgentClip > clip) const
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T clip(const T &p, const Box< T > &box) IMATH_NOEXCEPT
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.