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

Class to store sets of faces / points / etc on GT mesh primitives. More...

#include <GT_ElementSetMap.h>

+ Inheritance diagram for GT_ElementSetMap:

Classes

class  iterator
 

Public Types

using MapType = UT_StringMap< GT_ElementSetPtr >
 

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from UT_IntrusiveRefCounter< GT_ElementSetMap >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 

Detailed Description

Class to store sets of faces / points / etc on GT mesh primitives.

Definition at line 27 of file GT_ElementSetMap.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GT_ElementSetMap::GT_ElementSetMap ( )
GT_ElementSetMap::~GT_ElementSetMap ( )

Member Function Documentation

GT_ElementSetPtr GT_ElementSetMap::add ( const UT_StringHolder name,
const GT_ElementSetPtr set,
bool  replace_existing = true 
)

Map access. These methods are not thread-safe

iterator GT_ElementSetMap::begin ( void  ) const
inline

Definition at line 84 of file GT_ElementSetMap.h.

GT_ElementSetMapPtr GT_ElementSetMap::deleteElements ( const UT_Set< int > &  elements,
const GT_Int32Array mapping 
) const

Delete elements from the sets. The second argument is an array mapping the old element numbers to the new element 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)

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

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)

Definition at line 99 of file GT_ElementSetMap.h.

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

Definition at line 85 of file GT_ElementSetMap.h.

GT_Size GT_ElementSetMap::entries ( ) const
inline

Map access. These methods are not thread-safe

Definition at line 43 of file GT_ElementSetMap.h.

GT_ElementSetPtr GT_ElementSetMap::find ( const UT_StringRef name) const

Map access. These methods are not thread-safe

exint GT_ElementSetMap::getMemoryUsage ( ) const
bool GT_ElementSetMap::save ( UT_JSONWriter w) const

Save sets to a JSON stream.

GT_ElementSetMap::UT_NON_COPYABLE ( GT_ElementSetMap  )

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