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_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 22 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 26 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 31 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 37 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 43 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 51 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 60 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 76 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 81 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 86 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 108 of file GA_PrimitiveTracker.h.
|
inline |
Definition at line 70 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 139 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 114 of file GA_PrimitiveTracker.h.