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 265 of file GA_PolyCounts.h.

GA_PolyCounts::GA_PolyCounts ( const GA_PolyCounts that)
inline

Definition at line 268 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 324 of file GA_PolyCounts.h.

void GA_PolyCounts::append ( const GA_PolyCounts that)
inline

Definition at line 334 of file GA_PolyCounts.h.

iterator GA_PolyCounts::begin ( void  )
inline

Definition at line 281 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::begin ( void  ) const
inline

Definition at line 282 of file GA_PolyCounts.h.

void GA_PolyCounts::clear ( )
inline

Definition at line 317 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::end ( void  ) const
inline

Definition at line 288 of file GA_PolyCounts.h.

const_iterator GA_PolyCounts::findVertex ( GA_Size  relativevertex) const
inline

Definition at line 290 of file GA_PolyCounts.h.

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

Definition at line 314 of file GA_PolyCounts.h.

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

Definition at line 315 of file GA_PolyCounts.h.

int64 GA_PolyCounts::getMemoryUsage ( bool  inclusive) const
inline

Definition at line 387 of file GA_PolyCounts.h.

GA_Size GA_PolyCounts::getNumPolygons ( ) const
inline

Definition at line 348 of file GA_PolyCounts.h.

GA_Size GA_PolyCounts::getNumVertices ( ) const
inline

Definition at line 355 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 363 of file GA_PolyCounts.h.

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

Definition at line 372 of file GA_PolyCounts.h.

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

Definition at line 272 of file GA_PolyCounts.h.

Range GA_PolyCounts::range ( ) const
inline

Definition at line 312 of file GA_PolyCounts.h.


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