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, const GU_AgentShapeDeformerConstPtr &deformer, const UT_BoundingBoxF &bounds, const UT_Vector3F &bounds_scale)
 
bool operator== (const ShapeBinding &) const
 
int64 getMemoryUsage (bool inclusive) const
 
GA_Offset offset () const
 
int transformId () const
 
bool isAttachedToTransform () const
 
const UT_BoundingBoxFbounds () const
 
const UT_Vector3FboundsScale () 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, int version)
 

Static Public Attributes

static constexpr int INVALID_TRANSFORM_ID = -1
 

Detailed Description

Definition at line 68 of file GU_AgentLayer.h.

Constructor & Destructor Documentation

GU_AgentLayer::ShapeBinding::ShapeBinding ( )
inline

Definition at line 71 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,
const UT_Vector3F bounds_scale 
)
inline

Definition at line 83 of file GU_AgentLayer.h.

Member Function Documentation

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

Definition at line 114 of file GU_AgentLayer.h.

const UT_Vector3F& GU_AgentLayer::ShapeBinding::boundsScale ( ) const
inline

Definition at line 115 of file GU_AgentLayer.h.

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

Definition at line 118 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 112 of file GU_AgentLayer.h.

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

Definition at line 117 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,
int  version 
)
static
GA_Offset GU_AgentLayer::ShapeBinding::offset ( ) const
inline

Definition at line 106 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 126 of file GU_AgentLayer.h.

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

Definition at line 125 of file GU_AgentLayer.h.

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

Definition at line 124 of file GU_AgentLayer.h.

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

Definition at line 108 of file GU_AgentLayer.h.

Member Data Documentation

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

Definition at line 131 of file GU_AgentLayer.h.


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