HDK
|
Create macros which emulate the macros in the obsolete GB library. More...
#include "GA_AttributeDict.h"
#include "GA_BreakpointGroup.h"
#include "GA_Detail.h"
#include "GA_GroupTable.h"
#include "GA_ElementGroupTable.h"
#include "GA_Iterator.h"
#include "GA_GBIterators.h"
#include "GA_EdgeGroup.h"
#include "GA_Types.h"
Go to the source code of this file.
Create macros which emulate the macros in the obsolete GB library.
Definition in file GA_GBMacros.h.
#define __GA_GBMacros__ |
Definition at line 14 of file GA_GBMacros.h.
#define GA_FOR_ALL_ATTRIBUTES | ( | dict, | |
A | |||
) |
Iterate over all attributes in a GA_AttributeDict
Definition at line 266 of file GA_GBMacros.h.
#define GA_FOR_ALL_DETAIL_ATTRIBUTES | ( | gdp, | |
A | |||
) | GA_FOR_ALL_ATTRIBUTES((gdp)->getAttributeDict(GA_ATTRIB_GLOBAL), A) |
Iterate over all global/detail attributes in the geometry
Definition at line 272 of file GA_GBMacros.h.
#define GA_FOR_ALL_EDGEGROUPS | ( | gdp, | |
grp | |||
) |
Iterate over all GA_EdgeGroups in an arbitrary order
Definition at line 247 of file GA_GBMacros.h.
#define GA_FOR_ALL_EDGEGROUPS_SORTED | ( | gdp, | |
grp | |||
) |
Iterate over all GA_EdgeGroups in alphabetical order
Definition at line 257 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_BREAKPOINTS | ( | group, | |
bkp | |||
) |
Iterate over breakpoints in the specified group.
Definition at line 179 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_EDGES | ( | group, | |
edge | |||
) |
Iterate over edges in the specified group.
Definition at line 152 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_EDGES_INCL_PRIMS | ( | group, | |
edge, | |||
primoff | |||
) |
Iterate over edges in the specified group.
Definition at line 159 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_PRIMITIVES | ( | gdp, | |
grp, | |||
prim | |||
) |
Iterate over all primitives in group.
Definition at line 63 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_PRIMOFF | ( | gdp, | |
grp, | |||
ptoff | |||
) |
Iterate over all points in a group via point offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 128 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_PTOFF | ( | gdp, | |
grp, | |||
ptoff | |||
) |
Iterate over all points in a group via point offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 96 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUP_VTXOFF | ( | gdp, | |
grp, | |||
ptoff | |||
) |
Iterate over all points in a group via point offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 112 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUPS | ( | grptable, | |
grp | |||
) | for (GA_GroupTable::iterator<GA_ElementGroup> lcl_it = (grptable).beginTraverse(); !lcl_it.atEnd() && ((grp) = lcl_it.group()); ++lcl_it) |
Definition at line 290 of file GA_GBMacros.h.
#define GA_FOR_ALL_GROUPS_SORTED | ( | grptable, | |
grp | |||
) | for (GA_ElementGroupTable::ordered_iterator lcl_it = (grptable).obegin(); !lcl_it.atEnd() && ((grp) = *lcl_it); ++lcl_it) |
Definition at line 293 of file GA_GBMacros.h.
#define GA_FOR_ALL_OPT_GROUP_PRIMITIVES | ( | gdp, | |
grp, | |||
prim | |||
) | GA_FOR_ALL_GROUP_PRIMITIVES(gdp,grp,prim) |
Iterate over all primitives in group, but the group can be NULL.
Definition at line 81 of file GA_GBMacros.h.
#define GA_FOR_ALL_POINT_ATTRIBUTES | ( | gdp, | |
A | |||
) | GA_FOR_ALL_ATTRIBUTES((gdp)->getAttributeDict(GA_ATTRIB_POINT), A) |
Iterate over all point attributes in the geometry
Definition at line 282 of file GA_GBMacros.h.
#define GA_FOR_ALL_POINTGROUPS | ( | gdp, | |
grp | |||
) |
Iterate over all point GA_ElementGroups in an arbitrary order
Definition at line 187 of file GA_GBMacros.h.
#define GA_FOR_ALL_POINTGROUPS_SORTED | ( | gdp, | |
grp | |||
) |
Iterate over all point GA_ElementGroups in alphabetical order
Definition at line 197 of file GA_GBMacros.h.
#define GA_FOR_ALL_PRIMGROUPS | ( | gdp, | |
grp | |||
) |
Iterate over all primitive GA_ElementGroups in an arbitrary order
Definition at line 207 of file GA_GBMacros.h.
#define GA_FOR_ALL_PRIMGROUPS_SORTED | ( | gdp, | |
grp | |||
) |
Iterate over all primitive GA_ElementGroups in alphabetical order
Definition at line 217 of file GA_GBMacros.h.
#define GA_FOR_ALL_PRIMITIVE_ATTRIBUTES | ( | gdp, | |
A | |||
) | GA_FOR_ALL_ATTRIBUTES((gdp)->getAttributeDict(GA_ATTRIB_PRIMITIVE), A) |
Iterate over all primitive attributes in the geometry
Definition at line 277 of file GA_GBMacros.h.
#define GA_FOR_ALL_PRIMITIVES | ( | gdp, | |
prim | |||
) |
TODO: The GA_ prefix is necessary while GA needs to coexist with GB. Once GB has been entirely replaced, we'll remove the GA_ prefix for source compatibility. Iterates over primitives, assigning prim to the current primitive
Definition at line 36 of file GA_GBMacros.h.
#define GA_FOR_ALL_PRIMOFF | ( | gdp, | |
ptoff | |||
) |
Iterate over all points via offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 120 of file GA_GBMacros.h.
#define GA_FOR_ALL_PTOFF | ( | gdp, | |
ptoff | |||
) |
Iterate over all points via offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 88 of file GA_GBMacros.h.
#define GA_FOR_ALL_VERTEX_ATTRIBUTES | ( | gdp, | |
A | |||
) | GA_FOR_ALL_ATTRIBUTES((gdp)->getAttributeDict(GA_ATTRIB_VERTEX), A) |
Iterate over all vertex attributes in the geometry
Definition at line 287 of file GA_GBMacros.h.
#define GA_FOR_ALL_VERTEXGROUPS | ( | gdp, | |
grp | |||
) |
Iterate over all vertex GA_ElementGroups in an arbitrary order
Definition at line 227 of file GA_GBMacros.h.
#define GA_FOR_ALL_VERTEXGROUPS_SORTED | ( | gdp, | |
grp | |||
) |
Iterate over all vertex GA_ElementGroups in alphabetical order
Definition at line 237 of file GA_GBMacros.h.
#define GA_FOR_ALL_VTXOFF | ( | gdp, | |
ptoff | |||
) |
Iterate over all vertices via offsets. WARNING: Because this uses nested loops, "break;" won't work!
Definition at line 104 of file GA_GBMacros.h.
#define GA_FOR_MASK_PRIMITIVES | ( | gdp, | |
prim, | |||
mask | |||
) |
Iterates over primitives, filtering only primitives which match the type mask specified. mask can be either GA_PrimCompat::TypeMask or a family mask.
Definition at line 56 of file GA_GBMacros.h.
#define GA_FOR_PAIRS_OF_GROUP_PRIMITIVES | ( | gdp1, | |
grp1, | |||
prim1, | |||
gdp2, | |||
grp2, | |||
prim2 | |||
) |
Iterate over points in the specified groups across both GA_Details in a pairwise fashion.
Definition at line 144 of file GA_GBMacros.h.
#define GA_FOR_PAIRS_OF_PRIMITIVES | ( | gdp1, | |
prim1, | |||
gdp2, | |||
prim2 | |||
) |
Iterate over primitives in both GA_Details in a pairwise fashion.
Definition at line 135 of file GA_GBMacros.h.
#define GA_FOR_SAFE_GROUP_EDGES | ( | group, | |
edge | |||
) | GA_FOR_ALL_GROUP_EDGES(group, edge) |
Iterate over edges in the specified group. Edges may be deleted during traversal.
Definition at line 168 of file GA_GBMacros.h.
#define GA_FOR_SAFE_GROUP_EDGES_INCL_PRIMS | ( | group, | |
edge, | |||
prim | |||
) | GA_FOR_ALL_GROUP_EDGES_INCL_PRIMS(group, edge, prim) |
Iterate over edges in the specified group. Edges may be deleted during traversal.
Definition at line 174 of file GA_GBMacros.h.
#define GA_FOR_SAFE_GROUP_PRIMITIVES | ( | gdp, | |
grp, | |||
prim, | |||
next | |||
) |
Iterates over primitives in group, but primitives may be deleted during the iteration.
Definition at line 71 of file GA_GBMacros.h.
#define GA_FOR_SAFE_PRIMITIVES | ( | gdp, | |
prim, | |||
next | |||
) |
Iterates over primitives, but primitives may be deleted during the iteration.
Definition at line 43 of file GA_GBMacros.h.