11 #ifndef __GT_GEOPackedAgent__
12 #define __GT_GEOPackedAgent__
50 : bone_length(0.0), trans_idx(idx), parent_idx(pidx) {}
53 for(
int i=0; i<children.entries(); i++)
93 GT_Size *tuple_size = NULL)
const override;
103 {
return myAgentTransforms; }
107 {
return myAgentRigTransforms; }
111 {
return myAgentIndexMap; }
132 const char *
className()
const override {
return "GT_GEOPackedAgent"; }
142 int nsegments)
const override {}
157 void computeTransforms(
bool initial_pass)
const;
174 mutable int myTransformSerial;
virtual bool hasDataArray(const UT_StringRef &name, GT_Owner owner_scope[], int num_owners, GT_Storage *storage=NULL, GT_Size *tuple_size=NULL) const
virtual bool updateGeoPrim(const GU_ConstDetailHandle &dtl, const GT_RefineParms &parms)
update any cached data for geometry and its attributes
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
getFileOption("OpenEXR:storage") storage
int getPrimitiveType() const override
void bumpTransformSerial() const
GT_AgentIndexMapHandle indexMap() const
map GA index locations of agent prims to a flat list used by this rig
Contains a list of agents which share the same rig.
const GT_GEOOffsetList & pointOffsets() const
GT_AgentColorsHandle colors() const
List of agent colors;.
UT_Array< RigElement * > children
int64 getMemoryUsage() const override
GT_PrimitiveHandle doSoftCopy() const override
GLuint const GLchar * name
The base class for all GT primitive types.
Processes primitives generated by refinement process.
const GT_GEOOffsetList & vtxOffsets() const
GT_AgentRigTransformsHandle rigTransforms() const
computed rig transforms for all visible agents
const char * className() const override
int getTransformSerial() const
void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const override
int getMotionSegments() const override
GT_AgentVisibilityHandle visibility() const
Visibility information for agents.
const GU_ConstDetailHandle & getDetail() const
GT_AgentSelectionHandle selection() const
list of selected agent primitives
RigElement(int idx, int pidx)
UT_IntrusivePtr< GT_Primitive > GT_PrimitiveHandle
int getNumAgents() const
Main interface.
GT_AgentIDHandle primIDs() const
list of agent primitive ids.
GT_AgentTransformsHandle agentTransforms() const
computed main transforms for all visible agents
const GT_GEOOffsetList & primOffsets() const