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

#include <GA_PolyCounts.h>

+ Inheritance diagram for GA_PolyCounts:

Classes

class  iteratorT
 
class  Range
 Range class for multi-threading with TBB. More...
 
class  SizeCount
 

Public Types

typedef iteratorT
< GA_PolyCounts, UT_Array
< SizeCount > > 
iterator
 
typedef iteratorT< const
GA_PolyCounts, const UT_Array
< SizeCount > > 
const_iterator
 

Public Member Functions

 GA_PolyCounts ()
 
 GA_PolyCounts (const GA_PolyCounts &that)
 
GA_PolyCountsoperator= (const GA_PolyCounts &that)
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator findVertex (GA_Size relativevertex) const
 
Range range () const
 
UT_Array< SizeCount > & getArray ()
 
const UT_Array< SizeCount > & getArray () const
 
void clear ()
 
void append (GA_Size size, GA_Size count=1)
 
void append (const GA_PolyCounts &that)
 
GA_Size getNumPolygons () const
 
GA_Size getNumVertices () const
 
GA_Size getSize (GA_Size polygon) const
 Simpler than getVertexRange if you just want the polygon size. More...
 
void getVertexRange (GA_Size polygon, GA_Size &start, GA_Size &size) const
 
int64 getMemoryUsage (bool inclusive) const
 

Detailed Description

Definition at line 26 of file GA_PolyCounts.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GA_PolyCounts::GA_PolyCounts ( )
inline

Definition at line 264 of file GA_PolyCounts.h.

GA_PolyCounts::GA_PolyCounts ( const GA_PolyCounts that)
inline

Definition at line 267 of file GA_PolyCounts.h.

Member Function Documentation

void GA_PolyCounts::append ( GA_Size  size,
GA_Size  count = 1 
)
inline

Adds "count" polygons with "size" vertices each to the end of the list. For example, to add 5000000 triangles, call append(3,5000000). Since this is run-length encoded, if the last entry was already for polygons with "size" vertices, "count" will just be added to the last entry.

Examples:
SOP/SOP_BrushHairLen.C.

Definition at line 323 of file GA_PolyCounts.h.

void GA_PolyCounts::append ( const GA_PolyCounts that)
inline

Definition at line 333 of file GA_PolyCounts.h.

iterator GA_PolyCounts::begin ( void  )
inline

Definition at line 280 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::begin ( void  ) const
inline

Definition at line 281 of file GA_PolyCounts.h.

void GA_PolyCounts::clear ( )
inline

Definition at line 316 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::end ( void  ) const
inline

Definition at line 287 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::findVertex ( GA_Size  relativevertex) const
inline

Definition at line 289 of file GA_PolyCounts.h.

UT_Array<SizeCount>& GA_PolyCounts::getArray ( )
inline

Definition at line 313 of file GA_PolyCounts.h.

const UT_Array<SizeCount>& GA_PolyCounts::getArray ( ) const
inline

Definition at line 314 of file GA_PolyCounts.h.

int64 GA_PolyCounts::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 386 of file GA_PolyCounts.h.

GA_Size GA_PolyCounts::getNumPolygons ( ) const
inline

Definition at line 347 of file GA_PolyCounts.h.

GA_Size GA_PolyCounts::getNumVertices ( ) const
inline

Definition at line 354 of file GA_PolyCounts.h.

GA_Size GA_PolyCounts::getSize ( GA_Size  polygon) const
inline

Simpler than getVertexRange if you just want the polygon size.

Definition at line 362 of file GA_PolyCounts.h.

void GA_PolyCounts::getVertexRange ( GA_Size  polygon,
GA_Size start,
GA_Size size 
) const
inline

Definition at line 371 of file GA_PolyCounts.h.

GA_PolyCounts& GA_PolyCounts::operator= ( const GA_PolyCounts that)
inline

Definition at line 271 of file GA_PolyCounts.h.

Range GA_PolyCounts::range ( ) const
inline

Definition at line 311 of file GA_PolyCounts.h.


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