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

#include <GU_HoleInfo.h>

+ Inheritance diagram for GU_HoleInfo:

Public Member Functions

 GU_HoleInfo (const GEO_Primitive *prim)
 
virtual ~GU_HoleInfo ()
 
unsigned isHole () const
 
unsigned isReversed () const
 
int entries () const
 
GEO_FacegetHole (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_FacegetPromotedFace ()
 
const UT_BoundingBoxgetBox () const
 
UT_ValArray< GEO_Face * > & getHoles ()
 
void setHole (int on)
 
void setReversed ()
 
virtual int64 getMemoryUsage (bool inclusive) const
 Report approximate memory usage. More...
 
virtual void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
virtual uint hash () const
 
virtual bool isEqual (const GA_BlobData &blob) const
 
- 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 ()
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &)
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &)
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const
 Return current counter. More...
 

Static Public Member Functions

static GU_HoleInfogetHole (GA_Offset o, GA_Attribute *a)
 Get the hole info out of the object. More...
 
static const GU_HoleInfogetHole (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 voidoperator new (size_t size)
 
static voidoperator 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...
 

Detailed Description

Definition at line 32 of file GU_HoleInfo.h.

Constructor & Destructor Documentation

GU_HoleInfo::GU_HoleInfo ( const GEO_Primitive prim)
virtual GU_HoleInfo::~GU_HoleInfo ( )
virtual

Member Function Documentation

virtual void GU_HoleInfo::countMemory ( UT_MemoryCounter counter,
bool  inclusive 
) const
virtual

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.

int GU_HoleInfo::entries ( void  ) const
inline

Definition at line 52 of file GU_HoleInfo.h.

const UT_BoundingBox& GU_HoleInfo::getBox ( ) const
inline

Definition at line 71 of file GU_HoleInfo.h.

GEO_Face* GU_HoleInfo::getHole ( int  i)
inline

Definition at line 53 of file GU_HoleInfo.h.

static GU_HoleInfo* GU_HoleInfo::getHole ( GA_Offset  o,
GA_Attribute a 
)
static

Get the hole info out of the object.

static const GU_HoleInfo* GU_HoleInfo::getHole ( GA_Offset  o,
const GA_Attribute a 
)
static

Get the hole info out of the object.

UT_ValArray<GEO_Face *>& GU_HoleInfo::getHoles ( )
inline

Definition at line 74 of file GU_HoleInfo.h.

virtual int64 GU_HoleInfo::getMemoryUsage ( bool  inclusive) const
virtual

Report approximate memory usage.

Implements GA_BlobData.

GEO_Face* GU_HoleInfo::getPromotedFace ( )
inline

Definition at line 68 of file GU_HoleInfo.h.

virtual uint GU_HoleInfo::hash ( ) const
virtual

Methods defined on GA_BlobData

Implements GA_BlobData.

virtual bool GU_HoleInfo::isEqual ( const GA_BlobData blob) const
virtual

Methods defined on GA_BlobData

Implements GA_BlobData.

unsigned GU_HoleInfo::isHole ( ) const
inline

Definition at line 45 of file GU_HoleInfo.h.

unsigned GU_HoleInfo::isReversed ( ) const
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.

void GU_HoleInfo::setHole ( int  on)
inline

Definition at line 75 of file GU_HoleInfo.h.

int GU_HoleInfo::setPromotedFace ( GEO_Face face)
inline

Definition at line 63 of file GU_HoleInfo.h.

void GU_HoleInfo::setReversed ( )
inline

Definition at line 80 of file GU_HoleInfo.h.

Friends And Related Function Documentation

friend class GU_HoleDetail
friend

Definition at line 102 of file GU_HoleInfo.h.


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