HDK
|
#include <GU_HoleInfo.h>
Public Member Functions | |
GU_HoleInfo (const GEO_Primitive *prim) | |
~GU_HoleInfo () override | |
unsigned | isHole () const |
unsigned | isReversed () const |
int | entries () const |
GEO_Face * | getHole (int i) |
void | setHole (GA_Offset o, GA_Attribute *a) |
Store this hole info in the given attribute for the given object. More... | |
int | setPromotedFace (GEO_Face *face) |
GEO_Face * | getPromotedFace () |
const UT_BoundingBox & | getBox () const |
UT_ValArray< GEO_Face * > & | getHoles () |
void | setHole (int on) |
void | setReversed () |
int64 | getMemoryUsage (bool inclusive) const override |
Report approximate memory usage. More... | |
void | countMemory (UT_MemoryCounter &counter, bool inclusive) const override |
uint | hash () const override |
bool | isEqual (const GA_BlobData &blob) const override |
Public Member Functions inherited from GA_BlobData | |
GA_BlobData () | |
virtual | ~GA_BlobData () |
virtual bool | jsonSave (UT_JSONWriter &w, const GA_SaveMap *s) const |
Save blob data to a JSON stream. By default, this saves a Null. More... | |
virtual bool | jsonLoad (UT_JSONParser &p, const GA_LoadMap *m) |
void | repr (UT_WorkBuffer &wbuf) const |
Public Member Functions inherited from UT_IntrusiveRefCounter< GA_BlobData > | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter () noexcept |
Default constructor: Sets counter to 0. More... | |
SYS_FORCE_INLINE | UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept |
Copy constructor: Sets counter to 0. More... | |
UT_IntrusiveRefCounter & | operator= (const UT_IntrusiveRefCounter &) noexcept |
Assignment operator: Does not modify counter. More... | |
SYS_FORCE_INLINE uint32 | use_count () const noexcept |
Return current counter. More... | |
SYS_FORCE_INLINE bool | conditionalAddRef () noexcept |
Static Public Member Functions | |
static GU_HoleInfo * | getHole (GA_Offset o, GA_Attribute *a) |
Get the hole info out of the object. More... | |
static const GU_HoleInfo * | getHole (GA_Offset o, const GA_Attribute *a) |
Get the hole info out of the object. More... | |
Static Public Member Functions inherited from GA_BlobData | |
static void * | operator new (size_t size) |
static void * | operator new (size_t size, void *p) |
static void | operator delete (void *p, size_t size) |
static void | getAllocationStats (int64 &used, int64 &peak) |
Friends | |
class | GU_HoleDetail |
Additional Inherited Members | |
Protected Member Functions inherited from GA_BlobData | |
exint | getRefCount () const |
This is needed by subclasses int order to implement countMemory. More... | |
Protected Member Functions inherited from UT_IntrusiveRefCounter< GA_BlobData > | |
SYS_FORCE_INLINE | ~UT_IntrusiveRefCounter () |
Destructor: Only derived classes can destruct this. More... | |
Definition at line 32 of file GU_HoleInfo.h.
GU_HoleInfo::GU_HoleInfo | ( | const GEO_Primitive * | prim | ) |
|
override |
|
overridevirtual |
Count memory usage using a UT_MemoryCounter in order to count shared memory correctly. If inclusive is true, the size of this object is counted, else only memory owned by this object is counted. If this is pointed to by the calling object, inclusive should be true. If this is contained in the calling object, inclusive should be false. (Its memory was already counted in the size of the calling object.)
Implements GA_BlobData.
|
inline |
Definition at line 52 of file GU_HoleInfo.h.
|
inline |
Definition at line 71 of file GU_HoleInfo.h.
Definition at line 53 of file GU_HoleInfo.h.
|
static |
Get the hole info out of the object.
|
static |
Get the hole info out of the object.
|
inline |
Definition at line 74 of file GU_HoleInfo.h.
|
overridevirtual |
Report approximate memory usage.
Implements GA_BlobData.
|
inline |
Definition at line 68 of file GU_HoleInfo.h.
|
overridevirtual |
Methods defined on GA_BlobData
Implements GA_BlobData.
|
overridevirtual |
Methods defined on GA_BlobData
Implements GA_BlobData.
|
inline |
Definition at line 45 of file GU_HoleInfo.h.
|
inline |
Definition at line 49 of file GU_HoleInfo.h.
void GU_HoleInfo::setHole | ( | GA_Offset | o, |
GA_Attribute * | a | ||
) |
Store this hole info in the given attribute for the given object.
Definition at line 75 of file GU_HoleInfo.h.
Definition at line 63 of file GU_HoleInfo.h.
|
inline |
Definition at line 80 of file GU_HoleInfo.h.
|
friend |
Definition at line 103 of file GU_HoleInfo.h.