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

Class to store "face sets" on GT mesh primitives. More...

#include <GT_FaceSetMap.h>

+ Inheritance diagram for GT_FaceSetMap:

Classes

class  iterator
 

Public Types

using MapType = UT_StringMap< GT_FaceSetPtr >
 

Public Member Functions

 GT_FaceSetMap ()
 
 ~GT_FaceSetMap ()
 
bool save (UT_JSONWriter &w) const
 Save sets to a JSON stream. More...
 
void dump () const
 
iterator begin () const
 
iterator end () const
 
GT_FaceSetMapPtr deleteFaces (const UT_Set< int > &faces, const GT_Int32Array &mapping) const
 
GT_FaceSetPtr find (const UT_StringRef &name) const
 
GT_FaceSetPtr add (const UT_StringHolder &name, const GT_FaceSetPtr &set, bool replace_existing=true)
 
GT_Size entries () const
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< GT_FaceSetMap >
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...
 

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_FaceSetMap >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 
- Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable
 UT_NonCopyable ()=default
 
 ~UT_NonCopyable ()=default
 
 UT_NonCopyable (const UT_NonCopyable &)=delete
 
UT_NonCopyableoperator= (const UT_NonCopyable &)=delete
 

Detailed Description

Class to store "face sets" on GT mesh primitives.

Definition at line 27 of file GT_FaceSetMap.h.

Member Typedef Documentation

Definition at line 32 of file GT_FaceSetMap.h.

Constructor & Destructor Documentation

GT_FaceSetMap::GT_FaceSetMap ( )
GT_FaceSetMap::~GT_FaceSetMap ( )

Member Function Documentation

GT_FaceSetPtr GT_FaceSetMap::add ( const UT_StringHolder name,
const GT_FaceSetPtr set,
bool  replace_existing = true 
)

Map access. These methods are not thread-safe

iterator GT_FaceSetMap::begin ( void  ) const
inline

Definition at line 87 of file GT_FaceSetMap.h.

GT_FaceSetMapPtr GT_FaceSetMap::deleteFaces ( const UT_Set< int > &  faces,
const GT_Int32Array mapping 
) const

Delete polygons from the face set. The second argument is an array mapping the old face numbers to the new face numbers. For example, deleting polygon 2 from a set of [0,1,2,3] would expect a remapping array of [0,1,x,2] (the value of 2 doesn't actually matter)

void GT_FaceSetMap::dump ( ) const
iterator GT_FaceSetMap::end ( void  ) const
inline

Definition at line 88 of file GT_FaceSetMap.h.

GT_Size GT_FaceSetMap::entries ( void  ) const
inline

Map access. These methods are not thread-safe

Definition at line 43 of file GT_FaceSetMap.h.

GT_FaceSetPtr GT_FaceSetMap::find ( const UT_StringRef name) const

Map access. These methods are not thread-safe

bool GT_FaceSetMap::save ( UT_JSONWriter w) const

Save sets to a JSON stream.


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