7#ifndef PXR_USD_SDF_VARIANT_SET_SPEC_H
8#define PXR_USD_SDF_VARIANT_SET_SPEC_H
13#include "pxr/usd/sdf/api.h"
14#include "pxr/usd/sdf/declareSpec.h"
16#include "pxr/usd/sdf/proxyTypes.h"
24PXR_NAMESPACE_OPEN_SCOPE
56 static SdfVariantSetSpecHandle
57 New(
const SdfPrimSpecHandle& prim,
const std::string& name);
61 static SdfVariantSetSpecHandle
62 New(
const SdfVariantSpecHandle& prim,
const std::string& name);
107PXR_NAMESPACE_CLOSE_SCOPE
Provides a view onto an object's children.
Base class for all Sdf spec classes.
Represents a coherent set of alternate representations for part of a scene.
SDF_API std::string GetName() const
Returns the name of this variant set.
SDF_API SdfVariantView GetVariants() const
Returns the variants as a map.
SDF_API TfToken GetNameToken() const
Returns the name of this variant set.
SDF_API SdfVariantSpecHandleVector GetVariantList() const
Returns the variants as a vector.
static SDF_API SdfVariantSetSpecHandle New(const SdfPrimSpecHandle &prim, const std::string &name)
Constructs a new instance.
SDF_API SdfSpecHandle GetOwner() const
Returns the prim or variant that this variant set belongs to.
SDF_API void RemoveVariant(const SdfVariantSpecHandle &variant)
Removes variant from the list of variants.
static SDF_API SdfVariantSetSpecHandle New(const SdfVariantSpecHandle &prim, const std::string &name)
Constructs a new instance.
Token for efficient comparison, assignment, and hashing of known strings.