HDK
|
#include <USD_Traverse.h>
Classes | |
struct | Opts |
Public Types | |
typedef std::pair< UsdPrim, exint > | PrimIndexPair |
Public Member Functions | |
virtual | ~GusdUSD_Traverse () |
virtual Opts * | CreateOpts () const |
virtual bool | FindPrims (const UsdPrim &root, UsdTimeCode time, GusdPurposeSet purposes, UT_Array< UsdPrim > &prims, bool skipRoot=true, const Opts *opts=nullptr) const =0 |
virtual bool | FindPrims (const UT_Array< UsdPrim > &roots, const GusdDefaultArray< UsdTimeCode > ×, const GusdDefaultArray< GusdPurposeSet > &purposes, UT_Array< PrimIndexPair > &prims, bool skipRoot=true, const Opts *opts=nullptr) const =0 |
bool | FindPrims (const UT_Array< UsdPrim > &roots, const GusdDefaultArray< UsdTimeCode > ×, const GusdDefaultArray< GusdPurposeSet > &purposes, UT_Array< UsdPrim > &prims, bool skipRoot=true, const Opts *opts=nullptr) const |
Base class for custom stage traversal.
To register traversals, define a static GusdUSD_TraverseType singleton that takes an instance of the traverse object.
Definition at line 57 of file USD_Traverse.h.
typedef std::pair<UsdPrim,exint> GusdUSD_Traverse::PrimIndexPair |
Definition at line 60 of file USD_Traverse.h.
|
inlinevirtual |
Definition at line 63 of file USD_Traverse.h.
|
inlinevirtual |
Definition at line 65 of file USD_Traverse.h.
|
pure virtual |
Find prims beneath the given root.
Implemented in GusdUSD_TraverseSimpleT< Visitor >.
|
pure virtual |
Find prims beneath the given root prims. Note that the input array of prims may contain invalid prims. The returned prims array holds the new prims, and the index of their root prim from the roots array. The array is sorted by the index and the prim path.
Implemented in GusdUSD_TraverseSimpleT< Visitor >.
bool GusdUSD_Traverse::FindPrims | ( | const UT_Array< UsdPrim > & | roots, |
const GusdDefaultArray< UsdTimeCode > & | times, | ||
const GusdDefaultArray< GusdPurposeSet > & | purposes, | ||
UT_Array< UsdPrim > & | prims, | ||
bool | skipRoot = true , |
||
const Opts * | opts = nullptr |
||
) | const |