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

#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_PrimitiveGroupparsePrimitiveGroups (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_PrimitiveGroupparsePrimitiveGroups (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_PointGroupparsePointGroups (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_PointGroupparsePointGroups (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_EdgeGroupparseEdgeGroups (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_BreakpointGroupparseBreakpointGroups (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0))
 
const GA_VertexGroupparseVertexGroups (const char *pat, const GEO_Detail *pgdp, bool strict=true, GA_Index prim_offset=GA_Index(0))
 
const GA_VertexGroupparseVertexGroups (const char *pat, const GEO_Detail *pgdp, bool strict, int prim_offset)
 
const GA_GroupparseAllGroups (const char *pattern, const GroupCreator &creator, bool allow_numeric, bool ordered, GA_GroupMaskType mask, GA_GroupType bestguess)
 
GA_PrimitiveGroupparsePrimitiveGroupsCopy (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false)
 
GA_PrimitiveGroupparsePrimitiveGroupsCopy (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, bool detached=false)
 
GA_PointGroupparsePointGroupsCopy (const char *pat, const GroupCreator &creator, bool numok=true, bool ordered=false, bool strict=false)
 
GA_PointGroupparsePointGroupsCopy (const char *pat, GEO_Detail *pgdp, int numok=1, int ordered=1, bool strict=false, bool detached=false)
 
GA_EdgeGroupparseEdgeGroupsCopy (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_BreakpointGroupparseBreakpointGroupsCopy (const char *pat, const GEO_Detail *pgdp)
 
GA_VertexGroupparseVertexGroupsCopy (const char *pat, const GEO_Detail *pgdp)
 
GA_GroupparseAllGroupsCopy (const char *pattern, const GroupCreator &creator, bool allow_numeric, bool ordered, GA_GroupMaskType mask, GA_GroupType bestguess)
 
GA_GroupparseGroupCopy (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_PrimitiveGroupcreatePrimitiveGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false)
 
GA_PointGroupcreatePointGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false)
 
GA_EdgeGroupcreateEdgeGroup (GEO_Detail &gdp, const char *name="adhoc")
 
GA_BreakpointGroupcreateBreakpointGroup (const GEO_Detail &gdp, const char *name=NULL)
 
GA_VertexGroupcreateVertexGroup (GEO_Detail &gdp, const char *name="adhoc", bool detached=false)
 
GA_PrimitiveGroupcreateDetachedPrimitiveGroup (const GEO_Detail &gdp)
 
GA_PointGroupcreateDetachedPointGroup (const GEO_Detail &gdp)
 
GA_EdgeGroupcreateDetachedEdgeGroup (const GEO_Detail &gdp)
 
GA_BreakpointGroupcreateDetachedBreakpointGroup (const GEO_Detail &gdp)
 
GA_VertexGroupcreateDetachedVertexGroup (const GEO_Detail &gdp)
 
const GA_ElementGroupconvertGroupToType (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_GrouplastAdhocGroup ()
 
void appendAdhocGroup (GA_Group *group, bool willbeownedbyme)
 
template<typename GroupT >
GroupT * appendAdhocGroup (UT_UniquePtr< GroupT > group_ptr)
 
int64 getMemoryUsage (bool inclusive) const
 
const GA_PrimitiveGroupparsePrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_PrimitiveGroupparsePrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool ordered, bool &success)
 
const GA_PointGroupparsePointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_PointGroupparsePointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool ordered, bool &success)
 
const GA_EdgeGroupparseEdgeDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_VertexGroupparseVertexDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_GroupparseGroupDetached (const char *pat, GA_GroupType grouptype, const GEO_Detail *pgdp, bool forceexistence, bool defaultprim, bool &success)
 
const GA_PrimitiveGroupparseOrderedPrimitiveDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_PointGroupparseOrderedPointDetached (const char *pat, const GEO_Detail *pgdp, bool forceexistence, bool &success)
 
const GA_VertexGroupparseOrderedVertexDetached (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)
 

Detailed Description

Definition at line 24 of file GOP_Manager.h.

Member Typedef Documentation

Constructor & Destructor Documentation

GOP_Manager::GOP_Manager ( )
inline

Definition at line 28 of file GOP_Manager.h.

GOP_Manager::~GOP_Manager ( )
inline

Definition at line 29 of file GOP_Manager.h.

Member Function Documentation

void GOP_Manager::appendAdhocGroup ( GA_Group group,
bool  willbeownedbyme 
)
template<typename GroupT >
GroupT* GOP_Manager::appendAdhocGroup ( UT_UniquePtr< GroupT >  group_ptr)
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 
)
int GOP_Manager::destroyAdhocGroup ( const GA_Group group)
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
static void GOP_Manager::getUniqueGroupName ( const char *  base,
UT_String name 
)
static
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 
)
int GOP_Manager::removeAdhocGroup ( const GA_Group group)
void GOP_Manager::removeAdhocGroups ( )

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