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

Object for making optionally filtered composition queries about a prim. More...

Classes

struct  Filter
 Aggregate filter for filtering composition arcs by the previously defined criteria. More...
 

Public Types

enum  ArcTypeFilter {
  All = 0, Reference, Payload, Inherit,
  Specialize, Variant, ReferenceOrPayload, InheritOrSpecialize,
  NotReferenceOrPayload, NotInheritOrSpecialize, NotVariant
}
 Choices for filtering composition arcs based on arc type. More...
 
enum  DependencyTypeFilter { All = 0, Direct, Ancestral }
 Choices for filtering composition arcs on dependency type. More...
 
enum  ArcIntroducedFilter { All = 0, IntroducedInRootLayerStack, IntroducedInRootLayerPrimSpec }
 Choices for filtering composition arcs based on where the arc is introduced. More...
 
enum  HasSpecsFilter { All = 0, HasSpecs, HasNoSpecs }
 Choices for filtering composition arcs on whether the node contributes specs to the prim. More...
 

Public Member Functions

USD_API UsdPrimCompositionQuery (const UsdPrim &prim, const Filter &filter=Filter())
 Create a prim composition query for the with the given option filter. More...
 
USD_API void SetFilter (const Filter &filter)
 Change the filter for this query. More...
 
USD_API Filter GetFilter () const
 Return a copy of the current filter parameters. More...
 
USD_API std::vector
< UsdPrimCompositionQueryArc
GetCompositionArcs ()
 Return a list of composition arcs for this query's prim using the current query filter. More...
 

Static Public Member Functions

static USD_API
UsdPrimCompositionQuery 
GetDirectReferences (const UsdPrim &prim)
 Returns a prim composition query for the given prim with a preset filter that only returns reference arcs that are not ancestral. More...
 
static USD_API
UsdPrimCompositionQuery 
GetDirectInherits (const UsdPrim &prim)
 Returns a prim composition query for the given prim with a preset filter that only returns inherit arcs that are not ancestral. More...
 
static USD_API
UsdPrimCompositionQuery 
GetDirectRootLayerArcs (const UsdPrim &prim)
 Returns a prim composition query for the given prim with a preset filter that only returns direct arcs that were introduced by opinions defined in a layer in the root layer stack. More...
 

Detailed Description

Object for making optionally filtered composition queries about a prim.

It creates a list of strength ordering UsdPrimCompositionQueryArc that can be filtered by a combination of criteria and returned.

Invalidation

This object does not listen for change notification. If a consumer is holding on to a UsdPrimCompositionQuery, it is their responsibility to dispose of it in response to a resync change to the associated prim. Failing to do so may result in incorrect values or crashes due to dereferencing invalid objects.

Definition at line 224 of file primCompositionQuery.h.

Member Enumeration Documentation

enum ArcIntroducedFilter
strong

Choices for filtering composition arcs based on where the arc is introduced.

Definition at line 262 of file primCompositionQuery.h.

enum ArcTypeFilter
strong

Choices for filtering composition arcs based on arc type.

Definition at line 228 of file primCompositionQuery.h.

enum DependencyTypeFilter
strong

Choices for filtering composition arcs on dependency type.

This can be direct (arc introduced at the prim's level in namespace) or ancestral (arc introduced by a namespace parent of the prim).

Definition at line 252 of file primCompositionQuery.h.

enum HasSpecsFilter
strong

Choices for filtering composition arcs on whether the node contributes specs to the prim.

Definition at line 277 of file primCompositionQuery.h.

Constructor & Destructor Documentation

USD_API UsdPrimCompositionQuery ( const UsdPrim prim,
const Filter filter = Filter() 
)

Create a prim composition query for the with the given option filter.

Member Function Documentation

USD_API std::vector<UsdPrimCompositionQueryArc> GetCompositionArcs ( )

Return a list of composition arcs for this query's prim using the current query filter.

The composition arcs are always returned in order from strongest to weakest regardless of the filter.

static USD_API UsdPrimCompositionQuery GetDirectInherits ( const UsdPrim prim)
static

Returns a prim composition query for the given prim with a preset filter that only returns inherit arcs that are not ancestral.

static USD_API UsdPrimCompositionQuery GetDirectReferences ( const UsdPrim prim)
static

Returns a prim composition query for the given prim with a preset filter that only returns reference arcs that are not ancestral.

static USD_API UsdPrimCompositionQuery GetDirectRootLayerArcs ( const UsdPrim prim)
static

Returns a prim composition query for the given prim with a preset filter that only returns direct arcs that were introduced by opinions defined in a layer in the root layer stack.

USD_API Filter GetFilter ( ) const

Return a copy of the current filter parameters.

USD_API void SetFilter ( const Filter filter)

Change the filter for this query.


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