#include <GU_MotionClip.h>
|
| 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_PointGroup * | getJointGroup (GOP_Manager &gop, const UT_StringHolder &pattern) const |
|
bool | isInitialised () const |
|
exint | numJoints () const |
|
const GU_Detail * | getSample (fpreal time) const |
| returns the sample at time, or nullptr if not found More...
|
|
const GU_Detail * | restFrame () const |
|
const UT_Array< fpreal > & | getSampleTimes () |
|
Definition at line 34 of file GU_MotionClip.h.
clipinfo will override the gdp's clipinfo detail attribute
GU_MotionClipRO::~GU_MotionClipRO |
( |
| ) |
|
|
default |
This computes the local transforms of each joint at the given time. The ith element defines represents the ith joint in the topology detail. getJointIndex can be used to check this
Definition at line 80 of file GU_MotionClip.h.
This will compute the frame at the given time, and then copy the P+transform attributes of the ith point in topologyPts into the ith point in resultPts.
It will also include whatever extra attribs you request as long as there is no current active GU_MotionClipBuilder
- Precondition
- resultPts and topologyPts must correspond to the same points in their respective geometries, in the same order.
Definition at line 63 of file GU_MotionClip.h.
Returns a point group of the topology detail based on the given pattern
Returns the index of the given joint name within the topology detail
Definition at line 89 of file GU_MotionClip.h.
returns the sample at time, or nullptr if not found
Appends the unpacked toplogy geometry to dest
bool GU_MotionClipRO::hasTopology |
( |
| ) |
const |
|
inline |
bool GU_MotionClipRO::isInitialised |
( |
| ) |
const |
|
inline |
returns false if there was an error during initialization
Definition at line 103 of file GU_MotionClip.h.
exint GU_MotionClipRO::numJoints |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: