HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GusdUSD_TraverseSimpleT< Visitor > Class Template Reference

#include <USD_TraverseSimple.h>

+ Inheritance diagram for GusdUSD_TraverseSimpleT< Visitor >:

Public Member Functions

 GusdUSD_TraverseSimpleT (const Visitor &visitor)
 
 ~GusdUSD_TraverseSimpleT () override
 
bool FindPrims (const UsdPrim &root, UsdTimeCode time, GusdPurposeSet purposes, UT_Array< UsdPrim > &prims, bool skipRoot=true, const Opts *opts=NULL) const override
 
bool FindPrims (const UT_Array< UsdPrim > &roots, const GusdDefaultArray< UsdTimeCode > &times, const GusdDefaultArray< GusdPurposeSet > &purposes, UT_Array< PrimIndexPair > &prims, bool skipRoot=true, const Opts *opts=NULL) const override
 
- Public Member Functions inherited from GusdUSD_Traverse
virtual ~GusdUSD_Traverse ()
 
virtual OptsCreateOpts () const
 
bool 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
 

Additional Inherited Members

- Public Types inherited from GusdUSD_Traverse
typedef std::pair< UsdPrim, exintPrimIndexPair
 

Detailed Description

template<class Visitor>
class GusdUSD_TraverseSimpleT< Visitor >

Templated class for declaring simple, threaded traversals. See GusdUSD_ThreadedTraverse::VisiblePrimVisitorT for an example of the structure expected for visitors.

Definition at line 40 of file USD_TraverseSimple.h.

Constructor & Destructor Documentation

template<class Visitor >
GusdUSD_TraverseSimpleT< Visitor >::GusdUSD_TraverseSimpleT ( const Visitor &  visitor)
inline

Definition at line 43 of file USD_TraverseSimple.h.

template<class Visitor >
GusdUSD_TraverseSimpleT< Visitor >::~GusdUSD_TraverseSimpleT ( )
inlineoverride

Definition at line 46 of file USD_TraverseSimple.h.

Member Function Documentation

template<class Visitor >
bool GusdUSD_TraverseSimpleT< Visitor >::FindPrims ( const UsdPrim root,
UsdTimeCode  time,
GusdPurposeSet  purposes,
UT_Array< UsdPrim > &  prims,
bool  skipRoot = true,
const Opts opts = NULL 
) const
overridevirtual

Find prims beneath the given root.

Implements GusdUSD_Traverse.

Definition at line 69 of file USD_TraverseSimple.h.

template<class Visitor >
bool GusdUSD_TraverseSimpleT< Visitor >::FindPrims ( const UT_Array< UsdPrim > &  roots,
const GusdDefaultArray< UsdTimeCode > &  times,
const GusdDefaultArray< GusdPurposeSet > &  purposes,
UT_Array< PrimIndexPair > &  prims,
bool  skipRoot = true,
const Opts opts = NULL 
) const
overridevirtual

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.

Implements GusdUSD_Traverse.

Definition at line 83 of file USD_TraverseSimple.h.


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