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

#include <GT_OSD3.h>

Public Member Functions

 VertexStorage ()
 
 ~VertexStorage ()
 
exint getMemoryUsage () const
 
int findAttrib (const char *name) const
 
void init (const GT_AttributeListHandle &list, GT_Size size)
 
bool update (const GT_AttributeListHandle &list, bool skip_equality_check=false)
 
void clear ()
 
GT_AttributeListHandle extractLevel (const GT_OSDTopology &topology, int level, bool harden, bool fvar) const
 
const GT_AttributeListHandleattribList () const
 Raw access to the attributes. More...
 
const GT_DataArrayHandleattribArray (int attrib) const
 Access a specific data array in the attributes. More...
 
exint size () const
 
bool readOnly () const
 
GT_Size attribSize (int attrib) const
 
bool attribValid (int attrib) const
 
GT_Storage attribStorage (int attrib) const
 
GT_Type attribType (int attrib) const
 
int motionSegments () const
 
template<typename T >
TattribData (int attrib, GT_Size index, int seg)
 
template<typename T >
const TattribData (int attrib, GT_Size index, int seg) const
 
void dump () const
 
void dump (UT_JSONWriter &w) const
 

Detailed Description

Definition at line 408 of file GT_OSD3.h.

Constructor & Destructor Documentation

GT_OSDAttributes::VertexStorage::VertexStorage ( )
inline

Definition at line 411 of file GT_OSD3.h.

GT_OSDAttributes::VertexStorage::~VertexStorage ( )
inline

Definition at line 421 of file GT_OSD3.h.

Member Function Documentation

const GT_DataArrayHandle& GT_OSDAttributes::VertexStorage::attribArray ( int  attrib) const
inline

Access a specific data array in the attributes.

Definition at line 463 of file GT_OSD3.h.

template<typename T >
T* GT_OSDAttributes::VertexStorage::attribData ( int  attrib,
GT_Size  index,
int  seg 
)
inline

Definition at line 478 of file GT_OSD3.h.

template<typename T >
const T* GT_OSDAttributes::VertexStorage::attribData ( int  attrib,
GT_Size  index,
int  seg 
) const
inline

Definition at line 488 of file GT_OSD3.h.

const GT_AttributeListHandle& GT_OSDAttributes::VertexStorage::attribList ( ) const
inline

Raw access to the attributes.

Definition at line 460 of file GT_OSD3.h.

GT_Size GT_OSDAttributes::VertexStorage::attribSize ( int  attrib) const
inline

Definition at line 468 of file GT_OSD3.h.

GT_Storage GT_OSDAttributes::VertexStorage::attribStorage ( int  attrib) const
inline

Definition at line 471 of file GT_OSD3.h.

GT_Type GT_OSDAttributes::VertexStorage::attribType ( int  attrib) const
inline

Definition at line 473 of file GT_OSD3.h.

bool GT_OSDAttributes::VertexStorage::attribValid ( int  attrib) const
inline

Definition at line 469 of file GT_OSD3.h.

void GT_OSDAttributes::VertexStorage::clear ( )
inline

Definition at line 437 of file GT_OSD3.h.

void GT_OSDAttributes::VertexStorage::dump ( ) const
void GT_OSDAttributes::VertexStorage::dump ( UT_JSONWriter w) const
GT_AttributeListHandle GT_OSDAttributes::VertexStorage::extractLevel ( const GT_OSDTopology topology,
int  level,
bool  harden,
bool  fvar 
) const

Extract the attributes for a given level. Note that the array returned makes reference to the arrays including the temporary vertices. Passing harden==true will cause the arrays to be duplicated (more memory, but more compact)

int GT_OSDAttributes::VertexStorage::findAttrib ( const char *  name) const
inline

Definition at line 428 of file GT_OSD3.h.

exint GT_OSDAttributes::VertexStorage::getMemoryUsage ( ) const
void GT_OSDAttributes::VertexStorage::init ( const GT_AttributeListHandle list,
GT_Size  size 
)
int GT_OSDAttributes::VertexStorage::motionSegments ( ) const
inline

Definition at line 475 of file GT_OSD3.h.

bool GT_OSDAttributes::VertexStorage::readOnly ( ) const
inline

Definition at line 467 of file GT_OSD3.h.

exint GT_OSDAttributes::VertexStorage::size ( void  ) const
inline

Definition at line 466 of file GT_OSD3.h.

bool GT_OSDAttributes::VertexStorage::update ( const GT_AttributeListHandle list,
bool  skip_equality_check = false 
)

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