24 #ifndef PXR_USD_SDF_VARIANT_SPEC_H 25 #define PXR_USD_SDF_VARIANT_SPEC_H 30 #include "pxr/usd/sdf/api.h" 31 #include "pxr/usd/sdf/declareSpec.h" 32 #include "pxr/usd/sdf/proxyTypes.h" 36 PXR_NAMESPACE_OPEN_SCOPE
66 static SdfVariantSpecHandle
New(
const SdfVariantSetSpecHandle& owner,
67 const std::string& name);
88 SdfVariantSetSpecHandle
GetOwner()
const;
103 std::vector<std::string>
GetVariantNames(
const std::string& name)
const;
119 const SdfLayerHandle &layer,
121 const std::string &variantSetName,
122 const std::string &variantName );
124 PXR_NAMESPACE_CLOSE_SCOPE
SDF_API SdfPrimSpecHandle GetPrimSpec() const
Get the prim spec owned by this variant.
A scene description container that can combine with other such containers to form simple component as...
Base class for all Sdf spec classes.
SDF_API SdfVariantSpecHandle SdfCreateVariantInLayer(const SdfLayerHandle &layer, const SdfPath &primPath, const std::string &variantSetName, const std::string &variantName)
Convenience function to create a variant spec for a given variant set and a prim at the given path wi...
Token for efficient comparison, assignment, and hashing of known strings.
Represents a coherent set of alternate representations for part of a scene.
SDF_API SdfVariantSetsProxy GetVariantSets() const
Returns the nested variant sets.
A path value used to locate objects in layers or scenegraphs.
Represents a prim description in an SdfLayer object.
SDF_API std::string GetName() const
Returns the name of this variant.
SDF_API std::vector< std::string > GetVariantNames(const std::string &name) const
Returns list of variant names for the given variant set.
SDF_API SdfVariantSetSpecHandle GetOwner() const
Return the SdfVariantSetSpec that owns this variant.
Represents a single variant in a variant set.
SDF_API TfToken GetNameToken() const
Returns the name of this variant.
static SDF_API SdfVariantSpecHandle New(const SdfVariantSetSpecHandle &owner, const std::string &name)
Constructs a new instance.