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

#include <GOP_GroupParse.h>

Classes

class  GroupCreator
 
class  ParseInfo
 

Public Member Functions

 GOP_GroupParse (GOP_Manager *manager)
 
 ~GOP_GroupParse ()
 
const GA_PrimitiveGroupparsePrimitiveGroups (const char *pat, const GroupCreator &creator, bool numok, bool ordered, bool strict, GA_Index offset=GA_Index(0), ParseInfo *info=NULL)
 
const GA_PointGroupparsePointGroups (const char *pat, const GroupCreator &creator, bool numok, bool ordered, bool strict, GA_Index offset=GA_Index(0), ParseInfo *info=NULL)
 
const GA_EdgeGroupparseEdgeGroups (const char *pat, const GroupCreator &creator, bool strict, GA_Index prim_offset=GA_Index(0), GA_Index point_offset=GA_Index(0), ParseInfo *info=NULL)
 
GA_PrimitiveGroupparsePrimitiveGroupsCopy (const char *pat, const GroupCreator &creator, bool numok, bool ordered, bool strict, GA_Index offset=GA_Index(0))
 
GA_PointGroupparsePointGroupsCopy (const char *pat, const GroupCreator &creator, bool numok, bool ordered, bool strict, GA_Index offset=GA_Index(0))
 
GA_EdgeGroupparseEdgeGroupsCopy (const char *pat, const GroupCreator &creator, bool strict, GA_Index prim_offset=GA_Index(0), GA_Index point_offset=GA_Index(0), ParseInfo *info=0)
 
void expandGroupMask (const char *pattern, UT_String &outNames, GA_GroupType type, const GEO_Detail *gdp)
 

Static Public Member Functions

static void buildPrimGroupToken (const GEO_Detail *gdp, const GA_PrimitiveGroup *primgrp, UT_String &token, GA_Index offset=GA_Index(0), bool ordered=true)
 
static void buildPointGroupToken (const GEO_Detail *gdp, const GA_PointGroup *ptgrp, UT_String &token, GA_Index offset=GA_Index(0), bool ordered=true)
 
static void buildPrimElementToken (const GEO_Detail *gdp, GA_Offset prim, UT_String &token, GA_Index offset=GA_Index(0))
 
static void buildPointElementToken (const GEO_Detail *gdp, GA_Offset point, UT_String &token, GA_Index offset=GA_Index(0))
 
static int parseVectorAttributeComponent (const GA_AttributeDict *dict, UT_WorkBuffer &attribname, const GA_Attribute *&attrib)
 
static bool isGroupLiteral (const char *pattern, GA_GroupType type)
 
static bool isGroupNumeric (const char *pattern)
 
static void matchGroups (const char *pattern, const GA_GroupTable &group_table, UT_ValArray< const GA_Group * > &match_list)
 
static bool hasAttributePattern (const char *pattern)
 

Friends

class gopAddData
 
class gop_PendingNamePatternParse
 

Detailed Description

Definition at line 42 of file GOP_GroupParse.h.

Constructor & Destructor Documentation

GOP_GroupParse::GOP_GroupParse ( GOP_Manager manager)
inline

Definition at line 126 of file GOP_GroupParse.h.

GOP_GroupParse::~GOP_GroupParse ( )
inline

Definition at line 130 of file GOP_GroupParse.h.

Member Function Documentation

static void GOP_GroupParse::buildPointElementToken ( const GEO_Detail gdp,
GA_Offset  point,
UT_String token,
GA_Index  offset = GA_Index(0) 
)
static
static void GOP_GroupParse::buildPointGroupToken ( const GEO_Detail gdp,
const GA_PointGroup ptgrp,
UT_String token,
GA_Index  offset = GA_Index(0),
bool  ordered = true 
)
static
static void GOP_GroupParse::buildPrimElementToken ( const GEO_Detail gdp,
GA_Offset  prim,
UT_String token,
GA_Index  offset = GA_Index(0) 
)
static
static void GOP_GroupParse::buildPrimGroupToken ( const GEO_Detail gdp,
const GA_PrimitiveGroup primgrp,
UT_String token,
GA_Index  offset = GA_Index(0),
bool  ordered = true 
)
static
void GOP_GroupParse::expandGroupMask ( const char *  pattern,
UT_String outNames,
GA_GroupType  type,
const GEO_Detail gdp 
)
static bool GOP_GroupParse::hasAttributePattern ( const char *  pattern)
inlinestatic

Definition at line 254 of file GOP_GroupParse.h.

static bool GOP_GroupParse::isGroupLiteral ( const char *  pattern,
GA_GroupType  type 
)
static

Simple helpers to check if the string given is a group string literal of a certain type, as output by build*GroupToken. This is call is not a definitive arbiter of which group literal string is which type, since their definitions are ambiguous. Points and primitives: "<num> ..." Edges: "[<num>e<num>|p<num>[-<num>...]] ..." Vertices: "[<num>|<num>v<num>[-<num>]] ..." Breakpoints: "[<num>b[<num>|\[<num>,<num>\]]] ..."

static bool GOP_GroupParse::isGroupNumeric ( const char *  pattern)
static
static void GOP_GroupParse::matchGroups ( const char *  pattern,
const GA_GroupTable group_table,
UT_ValArray< const GA_Group * > &  match_list 
)
static
const GA_EdgeGroup* GOP_GroupParse::parseEdgeGroups ( const char *  pat,
const GroupCreator creator,
bool  strict,
GA_Index  prim_offset = GA_Index(0),
GA_Index  point_offset = GA_Index(0),
ParseInfo info = NULL 
)
GA_EdgeGroup* GOP_GroupParse::parseEdgeGroupsCopy ( const char *  pat,
const GroupCreator creator,
bool  strict,
GA_Index  prim_offset = GA_Index(0),
GA_Index  point_offset = GA_Index(0),
ParseInfo info = 0 
)
const GA_PointGroup* GOP_GroupParse::parsePointGroups ( const char *  pat,
const GroupCreator creator,
bool  numok,
bool  ordered,
bool  strict,
GA_Index  offset = GA_Index(0),
ParseInfo info = NULL 
)
inline

Definition at line 176 of file GOP_GroupParse.h.

GA_PointGroup* GOP_GroupParse::parsePointGroupsCopy ( const char *  pat,
const GroupCreator creator,
bool  numok,
bool  ordered,
bool  strict,
GA_Index  offset = GA_Index(0) 
)
inline

Definition at line 212 of file GOP_GroupParse.h.

const GA_PrimitiveGroup* GOP_GroupParse::parsePrimitiveGroups ( const char *  pat,
const GroupCreator creator,
bool  numok,
bool  ordered,
bool  strict,
GA_Index  offset = GA_Index(0),
ParseInfo info = NULL 
)
inline

Definition at line 164 of file GOP_GroupParse.h.

GA_PrimitiveGroup* GOP_GroupParse::parsePrimitiveGroupsCopy ( const char *  pat,
const GroupCreator creator,
bool  numok,
bool  ordered,
bool  strict,
GA_Index  offset = GA_Index(0) 
)
inline

Definition at line 200 of file GOP_GroupParse.h.

static int GOP_GroupParse::parseVectorAttributeComponent ( const GA_AttributeDict dict,
UT_WorkBuffer attribname,
const GA_Attribute *&  attrib 
)
static

Friends And Related Function Documentation

friend class gop_PendingNamePatternParse
friend

Definition at line 316 of file GOP_GroupParse.h.

friend class gopAddData
friend

Definition at line 44 of file GOP_GroupParse.h.


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