All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_MotionClipRW Class Reference

#include <GU_MotionClip.h>

+ Inheritance diagram for GU_MotionClipRW:

Public Member Functions

 GU_MotionClipRW (GU_Detail *gdp, UT_WorkBuffer &err_msg, bool can_evaluate=true, GU_MotionClipInfo *clipinfo=nullptr)
 ~GU_MotionClipRW ()=default
bool setTopology (fpreal time, const GU_Detail *sample, UT_WorkBuffer &error_msg)
- Public Member Functions inherited from GU_MotionClipRO
 GU_MotionClipRO (const GU_Detail *gdp, UT_WorkBuffer &err_msg, bool can_evaluate=true, GU_MotionClipInfo *clipinfo=nullptr)
 clipinfo will override the gdp's clipinfo detail attribute More...
 ~GU_MotionClipRO ()=default
void getTopology (fpreal &time, GU_Detail *dest, const GA_AttributeFilter *skip=nullptr)
bool hasTopology () const
void evaluate (fpreal time, GU_Detail *result, const GA_PointGroup *result_pts=nullptr, const GA_PointGroup *topology_pts=nullptr, const GA_AttributeFilter *extra_attribs_to_unpack=nullptr, GU_MotionClipEndBehavior left_end_behavior=GU_MotionClipEndBehavior::Clamp, GU_MotionClipEndBehavior right_end_behavior=GU_MotionClipEndBehavior::Clamp)
void computeLocalTransforms (fpreal time, UT_Array< GU_AgentXformD > &result)
exint getJointIndex (const UT_StringHolder &joint_name) const
const GA_PointGroupgetJointGroup (GOP_Manager &gop, const UT_StringHolder &pattern) const
bool isInitialised () const
exint numJoints () const
const GU_DetailgetSample (fpreal time) const
 returns the sample at time, or nullptr if not found More...
const GU_DetailrestFrame () const
const UT_Array< fpreal > & getSampleTimes ()


class GU_MotionClipBuilder

Additional Inherited Members

- Protected Attributes inherited from GU_MotionClipRO
const GU_Detail *const ourGdp

Detailed Description

MotionClip object which allows for modifications

You can add/remove frames by passing an instance of this into GU_MotionBuilder

Definition at line 235 of file GU_MotionClip.h.

Constructor & Destructor Documentation

GU_MotionClipRW::GU_MotionClipRW ( GU_Detail gdp,
UT_WorkBuffer err_msg,
bool  can_evaluate = true,
GU_MotionClipInfo clipinfo = nullptr 
GU_MotionClipRW::~GU_MotionClipRW ( )

Member Function Documentation

bool GU_MotionClipRW::setTopology ( fpreal  time,
const GU_Detail sample,
UT_WorkBuffer error_msg 

Sets the topology to the sample geometry, marking the packed primitive with the given time attribute

If there is already an existing topology sample must contain only the same joints.

The topology must be set before attempting to add frames

returns false on error

Friends And Related Function Documentation

friend class GU_MotionClipBuilder

Definition at line 238 of file GU_MotionClip.h.

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