HDK
|
Class which keeps counts of each type of primitive. More...
#include <GA_PrimitiveTracker.h>
Public Member Functions | |
SYS_FORCE_INLINE | GA_PrimitiveTracker () |
SYS_FORCE_INLINE | ~GA_PrimitiveTracker () |
SYS_FORCE_INLINE void | add (int id) |
void | add (const GA_PrimitiveTracker &that) |
SYS_FORCE_INLINE void | addMultiple (int id, GA_Size n) |
void | applyDiff (const GA_PrimitiveTracker &orig, const GA_PrimitiveTracker &changed) |
SYS_FORCE_INLINE void | del (int id) |
void | clear () |
bool | contains (const GA_PrimitiveTypeId &type) const |
bool | containsOnly (const UT_Array< GA_PrimitiveTypeId > &allowed) const |
GA_Size | count (const GA_PrimitiveTypeId &type) const |
GA_Size | countFamily (GA_PrimitiveFamilyMask family) const |
GA_PrimitiveTracker & | operator= (const GA_PrimitiveTracker &that) |
bool | hasLocalTransform (const GA_PrimitiveFactory &f) const |
Check to see if there are any primitives which have hasLocalTransform() More... | |
bool | hasCECaches (const GA_PrimitiveFactory &f) const |
GA_Size | fillCounts (GA_Size *counts, GA_Size array_size) const |
int64 | getMemoryUsage (bool inclusive) const |
Class which keeps counts of each type of primitive.
Definition at line 24 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 28 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 33 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 39 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 45 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 53 of file GA_PrimitiveTracker.h.
|
inline |
this += (changed - orig) This is so that items can be added or removed in separate trackers in parallel, and then the changes can be merged back into the original.
Definition at line 62 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 78 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 83 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 88 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 110 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 116 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 72 of file GA_PrimitiveTracker.h.
Extract the counts for each primitive type into an array. The array should be large enough to hold gdp.getPrimitiveFactory().getTypeCount(). The method returns the sum of all the primitive in the list
|
inline |
Definition at line 193 of file GA_PrimitiveTracker.h.
bool GA_PrimitiveTracker::hasCECaches | ( | const GA_PrimitiveFactory & | f | ) | const |
Check to see if there are any primitives that may need to flush CE buffesr.
bool GA_PrimitiveTracker::hasLocalTransform | ( | const GA_PrimitiveFactory & | f | ) | const |
Check to see if there are any primitives which have hasLocalTransform()
|
inline |
Definition at line 168 of file GA_PrimitiveTracker.h.