HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_AgentLayer::ShapeBinding Class Reference

#include <GU_AgentLayer.h>

Public Member Functions

 ShapeBinding ()
 
 ShapeBinding (const GU_AgentShapeLib &lib, const NameType &name, const ShapePtr &shape, GA_Offset offset, int transform_id, bool deforming, const UT_BoundingBoxF &bounds, fpreal bounds_scale=1.0)
 
 ShapeBinding (const GU_AgentShapeLib &lib, const NameType &name, const ShapePtr &shape, GA_Offset offset, int transform_id, const GU_AgentShapeDeformerConstPtr &deformer, const UT_BoundingBoxF &bounds, fpreal bounds_scale=1.0)
 
bool operator== (const ShapeBinding &) const
 
int64 getMemoryUsage (bool inclusive) const
 
GA_Offset offset () const
 
int transformId () const
 
bool isAttachedToTransform () const
 
const UT_BoundingBoxFbounds () const
 
fpreal boundsScale () const
 
bool isDeforming () const
 
const GU_AgentShapeDeformerConstPtr deformer () const
 
bool save (UT_JSONWriter &w, const GU_AgentRig &rig) const
 
const NameTypeshapeName () const
 
int shapeId () const
 
ShapePtr shape () const
 
bool isDirty (const GU_AgentShapeLib &lib) const
 

Static Public Member Functions

static bool load (UT_JSONParser &p, ShapeBindingData &data)
 

Static Public Attributes

static constexpr int INVALID_TRANSFORM_ID = -1
 

Detailed Description

Definition at line 66 of file GU_AgentLayer.h.

Constructor & Destructor Documentation

GU_AgentLayer::ShapeBinding::ShapeBinding ( )
inline

Definition at line 69 of file GU_AgentLayer.h.

GU_AgentLayer::ShapeBinding::ShapeBinding ( const GU_AgentShapeLib lib,
const NameType name,
const ShapePtr shape,
GA_Offset  offset,
int  transform_id,
bool  deforming,
const UT_BoundingBoxF bounds,
fpreal  bounds_scale = 1.0 
)
inline

Definition at line 81 of file GU_AgentLayer.h.

GU_AgentLayer::ShapeBinding::ShapeBinding ( const GU_AgentShapeLib lib,
const NameType name,
const ShapePtr shape,
GA_Offset  offset,
int  transform_id,
const GU_AgentShapeDeformerConstPtr deformer,
const UT_BoundingBoxF bounds,
fpreal  bounds_scale = 1.0 
)
inline

Definition at line 95 of file GU_AgentLayer.h.

Member Function Documentation

const UT_BoundingBoxF& GU_AgentLayer::ShapeBinding::bounds ( ) const
inline

Definition at line 126 of file GU_AgentLayer.h.

fpreal GU_AgentLayer::ShapeBinding::boundsScale ( ) const
inline

Definition at line 127 of file GU_AgentLayer.h.

const GU_AgentShapeDeformerConstPtr GU_AgentLayer::ShapeBinding::deformer ( ) const
inline

Definition at line 130 of file GU_AgentLayer.h.

int64 GU_AgentLayer::ShapeBinding::getMemoryUsage ( bool  inclusive) const
bool GU_AgentLayer::ShapeBinding::isAttachedToTransform ( ) const
inline

The transform is optional, which is typically used for deforming shapes. For static shapes, this means that they'll only be transformed by the agent's overall transform.

Definition at line 124 of file GU_AgentLayer.h.

bool GU_AgentLayer::ShapeBinding::isDeforming ( ) const
inline

Definition at line 129 of file GU_AgentLayer.h.

bool GU_AgentLayer::ShapeBinding::isDirty ( const GU_AgentShapeLib lib) const
static bool GU_AgentLayer::ShapeBinding::load ( UT_JSONParser p,
ShapeBindingData data 
)
static
GA_Offset GU_AgentLayer::ShapeBinding::offset ( ) const
inline

Definition at line 118 of file GU_AgentLayer.h.

bool GU_AgentLayer::ShapeBinding::operator== ( const ShapeBinding ) const
bool GU_AgentLayer::ShapeBinding::save ( UT_JSONWriter w,
const GU_AgentRig rig 
) const
ShapePtr GU_AgentLayer::ShapeBinding::shape ( ) const
inline

Definition at line 138 of file GU_AgentLayer.h.

int GU_AgentLayer::ShapeBinding::shapeId ( ) const
inline

Definition at line 137 of file GU_AgentLayer.h.

const NameType& GU_AgentLayer::ShapeBinding::shapeName ( ) const
inline

Definition at line 136 of file GU_AgentLayer.h.

int GU_AgentLayer::ShapeBinding::transformId ( ) const
inline

Definition at line 120 of file GU_AgentLayer.h.

Member Data Documentation

constexpr int GU_AgentLayer::ShapeBinding::INVALID_TRANSFORM_ID = -1
static

Definition at line 143 of file GU_AgentLayer.h.


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