24 #ifndef PXR_USD_USD_VARIANT_SETS_H
25 #define PXR_USD_USD_VARIANT_SETS_H
165 std::pair<UsdStagePtr, UsdEditTarget>
180 return static_cast<bool>(_prim);
184 explicit operator bool()
const {
192 , _variantSetName(variantSetName)
196 SdfPrimSpecHandle _CreatePrimSpecForEditing();
246 bool GetNames(std::vector<std::string>* names)
const;
250 std::vector<std::string>
GetNames()
const;
299 #endif //PXR_USD_USD_VARIANT_SETS_H
USD_API UsdVariantSet GetVariantSet(const std::string &variantSetName) const
USD_API bool SetSelection(const std::string &variantSetName, const std::string &variantName)
USD_API bool ClearVariantSelection()
std::string const & GetName() const
Return this VariantSet's name.
USD_API bool BlockVariantSelection()
GLsizei const GLchar *const * string
UsdVariantSet operator[](const std::string &variantSetName) const
std::map< std::string, std::string > SdfVariantSelectionMap
A map of reference variant set names to variants in those sets.
UsdPrim const & GetPrim() const
Return this VariantSet's held prim.
USD_API bool HasAuthoredVariant(const std::string &variantName) const
Returns true if this VariantSet already possesses a variant.
GLenum GLuint GLint GLint layer
USD_API std::string GetVariantSelection(const std::string &variantSetName) const
USD_API std::string GetVariantSelection() const
USD_API std::vector< std::string > GetNames() const
Return a list of all VariantSets authored on the originating UsdPrim.
USD_API bool HasAuthoredVariantSelection(std::string *value=nullptr) const
PXR_NAMESPACE_OPEN_SCOPE SDF_DECLARE_HANDLES(SdfLayer)
USD_API bool HasVariantSet(const std::string &variantSetName) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USD_API bool SetVariantSelection(const std::string &variantName)
USD_API UsdVariantSet AddVariantSet(const std::string &variantSetName, UsdListPosition position=UsdListPositionBackOfPrependList)
SIM_API const UT_StringHolder position
#define PXR_NAMESPACE_CLOSE_SCOPE
USD_API std::vector< std::string > GetVariantNames() const
USD_API SdfVariantSelectionMap GetAllVariantSelections() const
USD_API bool AddVariant(const std::string &variantName, UsdListPosition position=UsdListPositionBackOfPrependList)
USD_API UsdEditTarget GetVariantEditTarget(const SdfLayerHandle &layer=SdfLayerHandle()) const
USD_API std::pair< UsdStagePtr, UsdEditTarget > GetVariantEditContext(const SdfLayerHandle &layer=SdfLayerHandle()) const