HDK
|
#include <GOP_Manager.h>
Public Types | |
typedef GOP_GroupParse::ParseInfo | ParseInfo |
typedef GOP_GroupParse::GroupCreator | GroupCreator |
Public Member Functions | |
GOP_Manager () | |
~GOP_Manager () | |
const GA_PrimitiveGroup * | parsePrimitiveGroups (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false, GA_Index prim_offset=GA_Index(0), ParseInfo *info=0) |
const GA_PrimitiveGroup * | parsePrimitiveGroups (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, int prim_offset=0, bool allowdetached=false, ParseInfo *info=0) |
const GA_PointGroup * | parsePointGroups (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false, GA_Index point_offset=GA_Index(0), ParseInfo *info=0) |
const GA_PointGroup * | parsePointGroups (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, int point_offset=0, bool allowdetached=false, ParseInfo *info=0) |
const GA_EdgeGroup * | parseEdgeGroups (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0), GA_Index point_offset=GA_Index(0), ParseInfo *info=0) |
const GA_BreakpointGroup * | parseBreakpointGroups (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0)) |
const GA_VertexGroup * | parseVertexGroups (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0)) |
const GA_VertexGroup * | parseVertexGroups (const char *pat, const GEO_Detail *pgdp, bool strict, int prim_offset) |
const GA_Group * | parseAllGroups (const char *pattern, const GroupCreator &creator, bool allow_numeric, bool ordered, GA_GroupMaskType mask, GA_GroupType bestguess) |
GA_PrimitiveGroup * | parsePrimitiveGroupsCopy (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false) |
GA_PrimitiveGroup * | parsePrimitiveGroupsCopy (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, bool detached=false) |
GA_PointGroup * | parsePointGroupsCopy (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false) |
GA_PointGroup * | parsePointGroupsCopy (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, bool detached=false) |
GA_EdgeGroup * | parseEdgeGroupsCopy (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0), GA_Index point_offset=GA_Index(0)) |
GA_BreakpointGroup * | parseBreakpointGroupsCopy (const char *pat, const GEO_Detail *pgdp) |
GA_VertexGroup * | parseVertexGroupsCopy (const char *pat, const GEO_Detail *pgdp) |
GA_Group * | parseAllGroupsCopy (const char *pattern, const GroupCreator &creator, bool allow_numeric, bool ordered, GA_GroupMaskType mask, GA_GroupType bestguess) |
GA_Group * | parseGroupCopy (const char *pat, GA_GroupType grouptype, GEO_Detail *pgdp, bool forceexistence, bool ordered, bool defaultprim, bool &success) |
void | expandGroupMask (const char *pattern, UT_String &outNames, GA_GroupType type, const GEO_Detail *gdp) |
GA_PrimitiveGroup * | createPrimitiveGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false) |
GA_PointGroup * | createPointGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false) |
GA_EdgeGroup * | createEdgeGroup (GEO_Detail &gdp, const char *name="adhoc") |
GA_BreakpointGroup * | createBreakpointGroup (const GEO_Detail &gdp, const char *name=NULL) |
GA_VertexGroup * | createVertexGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false) |
GA_PrimitiveGroup * | createDetachedPrimitiveGroup (const GEO_Detail &gdp) |
GA_PointGroup * | createDetachedPointGroup (const GEO_Detail &gdp) |
GA_EdgeGroup * | createDetachedEdgeGroup (const GEO_Detail &gdp) |
GA_BreakpointGroup * | createDetachedBreakpointGroup (const GEO_Detail &gdp) |
GA_VertexGroup * | createDetachedVertexGroup (const GEO_Detail &gdp) |
const GA_ElementGroup * | convertGroupToType (GEO_Detail &gdp, GA_AttributeOwner newtype, const GA_Group *oldgroup, bool detached=false) |
int | destroyAdhocGroup (const GA_Group *group) |
void | destroyAdhocGroups () |
void | destroyAdhocGroups (const GEO_Detail *gdp) |
int | removeAdhocGroup (const GA_Group *group) |
void | removeAdhocGroups () |
GA_Group * | lastAdhocGroup () |
void | appendAdhocGroup (GA_Group *group, bool willbeownedbyme) |
template<typename GroupT > | |
GroupT * | appendAdhocGroup (UT_UniquePtr< GroupT > group_ptr) |
int64 | getMemoryUsage (bool inclusive) const |
const GA_PrimitiveGroup * | parsePrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_PrimitiveGroup * | parsePrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool ordered, bool &success) |
const GA_PointGroup * | parsePointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_PointGroup * | parsePointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool ordered, bool &success) |
const GA_EdgeGroup * | parseEdgeDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_VertexGroup * | parseVertexDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_Group * | parseGroupDetached (const char *pat, GA_GroupType grouptype, const GEO_Detail *pgdp, bool forceexistence, bool defaultprim, bool &success) |
const GA_PrimitiveGroup * | parseOrderedPrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_PointGroup * | parseOrderedPointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
const GA_VertexGroup * | parseOrderedVertexDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success) |
NB: Vertex groups are always unordered. More... | |
Static Public Member Functions | |
static void | getUniqueGroupName (const char *base, UT_String &name) |
Definition at line 24 of file GOP_Manager.h.
Definition at line 35 of file GOP_Manager.h.
Definition at line 34 of file GOP_Manager.h.
|
inline |
Definition at line 28 of file GOP_Manager.h.
|
inline |
Definition at line 29 of file GOP_Manager.h.
|
inline |
Definition at line 280 of file GOP_Manager.h.
const GA_ElementGroup* GOP_Manager::convertGroupToType | ( | GEO_Detail & | gdp, |
GA_AttributeOwner | newtype, | ||
const GA_Group * | oldgroup, | ||
bool | detached = false |
||
) |
GA_BreakpointGroup* GOP_Manager::createBreakpointGroup | ( | const GEO_Detail & | gdp, |
const char * | name = NULL |
||
) |
GA_BreakpointGroup* GOP_Manager::createDetachedBreakpointGroup | ( | const GEO_Detail & | gdp | ) |
GA_EdgeGroup* GOP_Manager::createDetachedEdgeGroup | ( | const GEO_Detail & | gdp | ) |
GA_PointGroup* GOP_Manager::createDetachedPointGroup | ( | const GEO_Detail & | gdp | ) |
GA_PrimitiveGroup* GOP_Manager::createDetachedPrimitiveGroup | ( | const GEO_Detail & | gdp | ) |
GA_VertexGroup* GOP_Manager::createDetachedVertexGroup | ( | const GEO_Detail & | gdp | ) |
GA_EdgeGroup* GOP_Manager::createEdgeGroup | ( | GEO_Detail & | gdp, |
const char * | name = "adhoc" |
||
) |
GA_PointGroup* GOP_Manager::createPointGroup | ( | GEO_Detail & | gdp, |
const char * | name = "adhoc" , |
||
bool | detached = false |
||
) |
GA_PrimitiveGroup* GOP_Manager::createPrimitiveGroup | ( | GEO_Detail & | gdp, |
const char * | name = "adhoc" , |
||
bool | detached = false |
||
) |
GA_VertexGroup* GOP_Manager::createVertexGroup | ( | GEO_Detail & | gdp, |
const char * | name = "adhoc" , |
||
bool | detached = false |
||
) |
void GOP_Manager::destroyAdhocGroups | ( | ) |
void GOP_Manager::destroyAdhocGroups | ( | const GEO_Detail * | gdp | ) |
void GOP_Manager::expandGroupMask | ( | const char * | pattern, |
UT_String & | outNames, | ||
GA_GroupType | type, | ||
const GEO_Detail * | gdp | ||
) |
int64 GOP_Manager::getMemoryUsage | ( | bool | inclusive | ) | const |
GA_Group* GOP_Manager::lastAdhocGroup | ( | ) |
const GA_Group* GOP_Manager::parseAllGroups | ( | const char * | pattern, |
const GroupCreator & | creator, | ||
bool | allow_numeric, | ||
bool | ordered, | ||
GA_GroupMaskType | mask, | ||
GA_GroupType | bestguess | ||
) |
GA_Group* GOP_Manager::parseAllGroupsCopy | ( | const char * | pattern, |
const GroupCreator & | creator, | ||
bool | allow_numeric, | ||
bool | ordered, | ||
GA_GroupMaskType | mask, | ||
GA_GroupType | bestguess | ||
) |
const GA_BreakpointGroup* GOP_Manager::parseBreakpointGroups | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | strict = true , |
||
GA_Index | prim_offset = GA_Index(0) |
||
) |
GA_BreakpointGroup* GOP_Manager::parseBreakpointGroupsCopy | ( | const char * | pat, |
const GEO_Detail * | pgdp | ||
) |
const GA_EdgeGroup* GOP_Manager::parseEdgeDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_EdgeGroup* GOP_Manager::parseEdgeGroups | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | strict = true , |
||
GA_Index | prim_offset = GA_Index(0) , |
||
GA_Index | point_offset = GA_Index(0) , |
||
ParseInfo * | info = 0 |
||
) |
GA_EdgeGroup* GOP_Manager::parseEdgeGroupsCopy | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | strict = true , |
||
GA_Index | prim_offset = GA_Index(0) , |
||
GA_Index | point_offset = GA_Index(0) |
||
) |
GA_Group* GOP_Manager::parseGroupCopy | ( | const char * | pat, |
GA_GroupType | grouptype, | ||
GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool | ordered, | ||
bool | defaultprim, | ||
bool & | success | ||
) |
Parse a guaranteed copy group suitable for writing to. Must be done on a writable geometry. Can replace cookInputAllGroups with allow reference false on your own geometry.
const GA_Group* GOP_Manager::parseGroupDetached | ( | const char * | pat, |
GA_GroupType | grouptype, | ||
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool | defaultprim, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PointGroup* GOP_Manager::parseOrderedPointDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, ordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PrimitiveGroup* GOP_Manager::parseOrderedPrimitiveDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, ordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_VertexGroup* GOP_Manager::parseOrderedVertexDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
NB: Vertex groups are always unordered.
const GA_PointGroup* GOP_Manager::parsePointDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PointGroup* GOP_Manager::parsePointDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool | ordered, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PointGroup* GOP_Manager::parsePointGroups | ( | const char * | pat, |
const GroupCreator & | creator, | ||
bool | numok = true , |
||
bool | ordered = false , |
||
bool | strict = false , |
||
GA_Index | point_offset = GA_Index(0) , |
||
ParseInfo * | info = 0 |
||
) |
const GA_PointGroup* GOP_Manager::parsePointGroups | ( | const char * | pat, |
GEO_Detail * | pgdp, | ||
int | numok = 1 , |
||
int | ordered = 1 , |
||
bool | strict = false , |
||
int | point_offset = 0 , |
||
bool | allowdetached = false , |
||
ParseInfo * | info = 0 |
||
) |
GA_PointGroup* GOP_Manager::parsePointGroupsCopy | ( | const char * | pat, |
const GroupCreator & | creator, | ||
bool | numok = true , |
||
bool | ordered = false , |
||
bool | strict = false |
||
) |
GA_PointGroup* GOP_Manager::parsePointGroupsCopy | ( | const char * | pat, |
GEO_Detail * | pgdp, | ||
int | numok = 1 , |
||
int | ordered = 1 , |
||
bool | strict = false , |
||
bool | detached = false |
||
) |
const GA_PrimitiveGroup* GOP_Manager::parsePrimitiveDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PrimitiveGroup* GOP_Manager::parsePrimitiveDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool | ordered, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_PrimitiveGroup* GOP_Manager::parsePrimitiveGroups | ( | const char * | pat, |
const GroupCreator & | creator, | ||
bool | numok = true , |
||
bool | ordered = false , |
||
bool | strict = false , |
||
GA_Index | prim_offset = GA_Index(0) , |
||
ParseInfo * | info = 0 |
||
) |
const GA_PrimitiveGroup* GOP_Manager::parsePrimitiveGroups | ( | const char * | pat, |
GEO_Detail * | pgdp, | ||
int | numok = 1 , |
||
int | ordered = 1 , |
||
bool | strict = false , |
||
int | prim_offset = 0 , |
||
bool | allowdetached = false , |
||
ParseInfo * | info = 0 |
||
) |
GA_PrimitiveGroup* GOP_Manager::parsePrimitiveGroupsCopy | ( | const char * | pat, |
const GroupCreator & | creator, | ||
bool | numok = true , |
||
bool | ordered = false , |
||
bool | strict = false |
||
) |
GA_PrimitiveGroup* GOP_Manager::parsePrimitiveGroupsCopy | ( | const char * | pat, |
GEO_Detail * | pgdp, | ||
int | numok = 1 , |
||
int | ordered = 1 , |
||
bool | strict = false , |
||
bool | detached = false |
||
) |
const GA_VertexGroup* GOP_Manager::parseVertexDetached | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | forceexistence, | ||
bool & | success | ||
) |
Parse detached, unordered, groups. If forceexistence is true, will always return a valid group pointer by creating an empty group if necessary. Success will be set to false if the group failed to be created. The returned group may be an alias of an existing group if the group naming is trivial
const GA_VertexGroup* GOP_Manager::parseVertexGroups | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | strict = true , |
||
GA_Index | prim_offset = GA_Index(0) |
||
) |
const GA_VertexGroup* GOP_Manager::parseVertexGroups | ( | const char * | pat, |
const GEO_Detail * | pgdp, | ||
bool | strict, | ||
int | prim_offset | ||
) |
GA_VertexGroup* GOP_Manager::parseVertexGroupsCopy | ( | const char * | pat, |
const GEO_Detail * | pgdp | ||
) |
void GOP_Manager::removeAdhocGroups | ( | ) |