7#ifndef PXR_USD_SDF_VARIANT_SPEC_H
8#define PXR_USD_SDF_VARIANT_SPEC_H
13#include "pxr/usd/sdf/api.h"
14#include "pxr/usd/sdf/declareSpec.h"
15#include "pxr/usd/sdf/proxyTypes.h"
19PXR_NAMESPACE_OPEN_SCOPE
49 static SdfVariantSpecHandle
New(
const SdfVariantSetSpecHandle& owner,
50 const std::string& name);
102 const SdfLayerHandle &layer,
104 const std::string &variantSetName,
105 const std::string &variantName );
107PXR_NAMESPACE_CLOSE_SCOPE
A scene description container that can combine with other such containers to form simple component as...
A path value used to locate objects in layers or scenegraphs.
Represents a prim description in an SdfLayer object.
Base class for all Sdf spec classes.
Represents a coherent set of alternate representations for part of a scene.
Represents a single variant in a variant set.
SDF_API std::string GetName() const
Returns the name of this variant.
SDF_API SdfPrimSpecHandle GetPrimSpec() const
Get the prim spec owned by this variant.
SDF_API TfToken GetNameToken() 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.
SDF_API SdfVariantSetsProxy GetVariantSets() const
Returns the nested variant sets.
static SDF_API SdfVariantSpecHandle New(const SdfVariantSetSpecHandle &owner, const std::string &name)
Constructs a new instance.
Token for efficient comparison, assignment, and hashing of known strings.
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...