HDK
|
Walk an Alembic tree to create Houdini geometry. More...
#include <GABC_GEOWalker.h>
Static Public Member Functions | |
static void | test () |
Protected Member Functions | |
bool | filterObject (const GABC_IObject &obj) const |
Verify the object matches filters before generating geometry. More... | |
bool | filterAnyChild (const GABC_IObject &obj) const |
Walk an Alembic tree to create Houdini geometry.
To convert an Alembic file to Houdini geometry, the code would look something like this:
Definition at line 58 of file GABC_GEOWalker.h.
Definition at line 62 of file GABC_GEOWalker.h.
using GABC_NAMESPACE::GABC_GEOWalker::M44d = Alembic::Abc::M44d |
Definition at line 61 of file GABC_GEOWalker.h.
Whether to build polysoup primitives when it's possible.
Enumerator | |
---|---|
ABC_POLYSOUP_NONE | |
ABC_POLYSOUP_POLYMESH | |
ABC_POLYSOUP_SUBD |
Definition at line 144 of file GABC_GEOWalker.h.
How Alembic delayed load primitives are attached to GA points.
Enumerator | |
---|---|
ABCPRIM_SHARED_POINT | |
ABCPRIM_UNIQUE_POINT | |
ABCPRIM_CENTROID_POINT | |
ABCPRIM_SHAPE_POINT |
Definition at line 135 of file GABC_GEOWalker.h.
Animating object filter.
Enumerator | |
---|---|
ABC_AFILTER_STATIC | |
ABC_AFILTER_DEFORMING | |
ABC_AFILTER_TRANSFORMING | |
ABC_AFILTER_ANIMATING | |
ABC_AFILTER_ALL |
Definition at line 110 of file GABC_GEOWalker.h.
Enumerator | |
---|---|
BOX_CULL_IGNORE | |
BOX_CULL_ANY_INSIDE | |
BOX_CULL_INSIDE | |
BOX_CULL_ANY_OUTSIDE | |
BOX_CULL_OUTSIDE |
Definition at line 77 of file GABC_GEOWalker.h.
Geometry type filter.
Enumerator | |
---|---|
ABC_GFILTER_POLYMESH | |
ABC_GFILTER_CURVES | |
ABC_GFILTER_NUPATCH | |
ABC_GFILTER_POINTS | |
ABC_GFILTER_SUBD | |
ABC_GFILTER_ALL |
Definition at line 120 of file GABC_GEOWalker.h.
Enumerator | |
---|---|
ABC_GROUP_NONE | |
ABC_GROUP_SHAPE_NODE | |
ABC_GROUP_XFORM_NODE | |
ABC_GROUP_SHAPE_BASENAME | |
ABC_GROUP_XFORM_BASENAME |
Definition at line 68 of file GABC_GEOWalker.h.
Enumerator | |
---|---|
LOAD_ABC_PRIMITIVES | |
LOAD_ABC_UNPACKED | |
LOAD_HOUDINI_PRIMITIVES | |
LOAD_HOUDINI_POINTS | |
LOAD_HOUDINI_BOXES |
Definition at line 100 of file GABC_GEOWalker.h.
How to load user properties.
Enumerator | |
---|---|
UP_LOAD_NONE | |
UP_LOAD_DATA | |
UP_LOAD_ALL |
Definition at line 152 of file GABC_GEOWalker.h.
Enumerator | |
---|---|
SIZE_COMPARE_LESSTHAN | |
SIZE_COMPARE_GREATERTHAN |
Definition at line 94 of file GABC_GEOWalker.h.
Enumerator | |
---|---|
SIZE_CULL_IGNORE | |
SIZE_CULL_AREA | |
SIZE_CULL_RADIUS | |
SIZE_CULL_VOLUME |
Definition at line 86 of file GABC_GEOWalker.h.
GABC_NAMESPACE::GABC_GEOWalker::GABC_GEOWalker | ( | GU_Detail & | gdp, |
GABC_IError & | err, | ||
bool | record_time_range = false |
||
) |
|
override |
|
inline |
True if all transforms are constant.
Definition at line 222 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 196 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 199 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 200 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 193 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 173 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 175 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 181 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 185 of file GABC_GEOWalker.h.
|
protected |
|
protected |
Verify the object matches filters before generating geometry.
bool GABC_NAMESPACE::GABC_GEOWalker::getGroupName | ( | UT_String & | str, |
const GABC_IObject & | obj | ||
) | const |
Get the group name associated with an GABC_IObject.
GA_Offset GABC_NAMESPACE::GABC_GEOWalker::getPointForAbcPrim | ( | ) |
Get a GA_Offset to which the Alembic delayed load primitive should be attached. This may return an invalid offset
|
inline |
Get the current transform.
Definition at line 289 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 189 of file GABC_GEOWalker.h.
|
overridevirtual |
Allow for interruption of walk.
Reimplemented from GABC_NAMESPACE::GABC_Util::Walker.
|
inline |
True if all shapes and transforms are constant.
Definition at line 216 of file GABC_GEOWalker.h.
|
inline |
Access information about last poly/subd/curve mesh loaded
Definition at line 300 of file GABC_GEOWalker.h.
|
inline |
Access information about last poly/subd/curve mesh loaded
Definition at line 301 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 195 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 194 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 183 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 179 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 201 of file GABC_GEOWalker.h.
|
inline |
Keeps track of the number of geometry points added in traversal.
Definition at line 210 of file GABC_GEOWalker.h.
|
inline |
State accessors
Definition at line 266 of file GABC_GEOWalker.h.
|
overridevirtual |
preProcess()
is called on the "root" of the walk. The root may not be the root of the Alembic file (i.e. when walking lists of objects). The preProcess()
method will be called one time only.
Reimplemented from GABC_NAMESPACE::GABC_Util::Walker.
|
inline |
Keeps track of the number of geometry primitives added in traversal.
Definition at line 214 of file GABC_GEOWalker.h.
|
overridevirtual |
Return true to continue traveral and process the children of the given node. Returning false will process the next sibling. Use interrupted() to perform an early termination.
Implements GABC_NAMESPACE::GABC_Util::Walker.
|
inline |
Definition at line 223 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 192 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 177 of file GABC_GEOWalker.h.
Set state
Definition at line 253 of file GABC_GEOWalker.h.
void GABC_NAMESPACE::GABC_GEOWalker::setBounds | ( | BoxCullMode | mode, |
const UT_BoundingBox & | box | ||
) |
Set state
|
inline |
Set state
Definition at line 248 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 249 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 246 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 232 of file GABC_GEOWalker.h.
Set state
Definition at line 238 of file GABC_GEOWalker.h.
Set state
Definition at line 254 of file GABC_GEOWalker.h.
Set state
Definition at line 252 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 239 of file GABC_GEOWalker.h.
Set state
Definition at line 247 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 234 of file GABC_GEOWalker.h.
|
inline |
State modified during traversal
Definition at line 278 of file GABC_GEOWalker.h.
|
inline |
State modified during traversal
Definition at line 279 of file GABC_GEOWalker.h.
Set state
Definition at line 230 of file GABC_GEOWalker.h.
void GABC_NAMESPACE::GABC_GEOWalker::setPathAttribute | ( | const GA_RWAttributeRef & | a | ) |
Set state
|
inline |
Set state
Definition at line 250 of file GABC_GEOWalker.h.
void GABC_NAMESPACE::GABC_GEOWalker::setPointMode | ( | AbcPrimPointMode | mode, |
GA_Offset | shared_point = GA_INVALID_OFFSET |
||
) |
Set state
void GABC_NAMESPACE::GABC_GEOWalker::setPointTransform | ( | GU_PrimPacked * | prim, |
GA_Offset | offset | ||
) | const |
|
inline |
Set state
Definition at line 258 of file GABC_GEOWalker.h.
void GABC_NAMESPACE::GABC_GEOWalker::setReusePrimitives | ( | bool | v, |
GA_Offset | pts = GA_Offset(0) , |
||
GA_Offset | verts = GA_Offset(0) , |
||
GA_Offset | prims = GA_Offset(0) |
||
) |
Set state
bool GABC_NAMESPACE::GABC_GEOWalker::setRootObject | ( | const std::vector< std::string > & | filenames, |
const UT_String & | rootPath | ||
) |
Set state
|
inline |
Set state
Definition at line 260 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 241 of file GABC_GEOWalker.h.
|
inline |
Primitive group to store subdivision primitives
Definition at line 273 of file GABC_GEOWalker.h.
Set state
Definition at line 237 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 251 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 240 of file GABC_GEOWalker.h.
|
inline |
Set state
Definition at line 259 of file GABC_GEOWalker.h.
|
inline |
Get state
Definition at line 191 of file GABC_GEOWalker.h.
|
inline |
Primitive group to store subdivision primitives
Definition at line 272 of file GABC_GEOWalker.h.
|
static |
Test by loading "test.abc" in the current directory and saving "test.geo" as output.
|
inline |
Get state
Definition at line 188 of file GABC_GEOWalker.h.
|
inline |
Get a sample selector for the given time.
Definition at line 205 of file GABC_GEOWalker.h.
|
inline |
True if all shapes have constant topology.
Definition at line 218 of file GABC_GEOWalker.h.
Access information about last poly/subd/curve mesh loaded
void GABC_NAMESPACE::GABC_GEOWalker::trackPtVtxPrim | ( | const GABC_IObject & | obj, |
exint | npoints, | ||
exint | nvertex, | ||
exint | nprim, | ||
bool | do_transform | ||
) |
Keep track of added points/vertices/primitives. This should be called after the primitives have been added to the detail.
Access information about last poly/subd/curve mesh loaded
|
inline |
True if the transform from the root to the current node is constant.
Definition at line 220 of file GABC_GEOWalker.h.
bool GABC_NAMESPACE::GABC_GEOWalker::translateAttributeName | ( | GA_AttributeOwner | own, |
UT_String & | name | ||
) |
Translate attribute names. This will return false if the attribute is not allowed.
void GABC_NAMESPACE::GABC_GEOWalker::updateAbcPrims | ( | ) |
Quickly update ABC primitives with the new time.
|
inline |
Get state
Definition at line 190 of file GABC_GEOWalker.h.
|
inline |
Keeps track of the number of geometry vertices added in traversal.
Definition at line 212 of file GABC_GEOWalker.h.
|
inline |
State accessors
Definition at line 267 of file GABC_GEOWalker.h.