All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
registeredVariantSet.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USD_UTILS_REGISTERED_VARIANT_SET_H
8#define PXR_USD_USD_UTILS_REGISTERED_VARIANT_SET_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/usdUtils/api.h"
14#include <string>
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18
29{
30public:
32 const std::string name;
33
44 Never,
45
53
57 Always,
58 };
59
62 const std::string& selectionExportPolicyStr,
64
67
69 const std::string& name,
71 name(name),
73 {
74 }
75
76 // provided so this can be stored in a std::set.
77 bool operator<(const UsdUtilsRegisteredVariantSet&
78 other) const {
79 return this->name < other.name;
80 }
81};
82
83
84PXR_NAMESPACE_CLOSE_SCOPE
85
86#endif /* PXR_USD_USD_UTILS_REGISTERED_VARIANT_SET_H */
Class that holds information about variantSets that are registered with the pipeline.
SelectionExportPolicy
This specifies how the variantSet should be treated during export.
const std::string name
The name of the variantSet.
static bool GetSelectionExportPolicyFromString(const std::string &selectionExportPolicyStr, SelectionExportPolicy *selectionExportPolicy)
Returns the export policy from the string.
const SelectionExportPolicy selectionExportPolicy
Specifies how to export a variant selection.