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

#include <GT_OSD3.h>

Public Member Functions

 VertexStorage ()
 
 ~VertexStorage ()
 
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
 
template<typename T >
TattribData (int attrib, GT_Size index)
 
template<typename T >
const TattribData (int attrib, GT_Size index) const
 
void dump () const
 
void dump (UT_JSONWriter &w) const
 

Detailed Description

Definition at line 403 of file GT_OSD3.h.

Constructor & Destructor Documentation

GT_OSDAttributes::VertexStorage::VertexStorage ( )
inline

Definition at line 406 of file GT_OSD3.h.

GT_OSDAttributes::VertexStorage::~VertexStorage ( )
inline

Definition at line 416 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 456 of file GT_OSD3.h.

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

Definition at line 468 of file GT_OSD3.h.

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

Definition at line 478 of file GT_OSD3.h.

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

Raw access to the attributes.

Definition at line 453 of file GT_OSD3.h.

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

Definition at line 461 of file GT_OSD3.h.

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

Definition at line 464 of file GT_OSD3.h.

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

Definition at line 462 of file GT_OSD3.h.

void GT_OSDAttributes::VertexStorage::clear ( void  )
inline

Definition at line 430 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 421 of file GT_OSD3.h.

void GT_OSDAttributes::VertexStorage::init ( const GT_AttributeListHandle list,
GT_Size  size 
)
bool GT_OSDAttributes::VertexStorage::readOnly ( ) const
inline

Definition at line 460 of file GT_OSD3.h.

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

Definition at line 459 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: