24 #ifndef PXR_USD_USD_STAGE_POPULATION_MASK_H 25 #define PXR_USD_USD_STAGE_POPULATION_MASK_H 28 #include "pxr/usd/usd/api.h" 29 #include "pxr/usd/sdf/path.h" 34 PXR_NAMESPACE_OPEN_SCOPE
83 _ValidateAndNormalize();
150 return _paths.empty();
160 std::vector<TfToken> *childNames)
const;
164 std::vector<SdfPath>
GetPaths()
const;
182 return _paths == other._paths;
187 return !(*
this == other);
192 _paths.swap(other._paths);
198 USD_API
void _ValidateAndNormalize();
200 std::vector<SdfPath> _paths;
216 PXR_NAMESPACE_CLOSE_SCOPE
218 #endif // PXR_USD_USD_STAGE_POPULATION_MASK_H void swap(ArAssetInfo &lhs, ArAssetInfo &rhs)
UsdStagePopulationMask(Iter f, Iter l)
Construct a mask from the range of paths [f, l).
static USD_API UsdStagePopulationMask Intersection(UsdStagePopulationMask const &l, UsdStagePopulationMask const &r)
Return a mask that is the intersection of l and r.
bool IsEmpty() const
Return true if this mask contains no paths.
UsdStagePopulationMask(std::vector< SdfPath > const &paths)
Construct a mask from paths.
bool operator!=(UsdStagePopulationMask const &other) const
Return true if this mask is not equivalent to other.
USD_API UsdStagePopulationMask GetUnion(UsdStagePopulationMask const &other) const
Return a mask that is the union of this and other.
void swap(UsdStagePopulationMask &other)
Swap the content of this mask with other.
static USD_API UsdStagePopulationMask Union(UsdStagePopulationMask const &l, UsdStagePopulationMask const &r)
Return a mask that is the union of l and r.
static UsdStagePopulationMask All()
Return a mask that includes all paths.
USD_API bool Includes(UsdStagePopulationMask const &other) const
Return true if this mask is a superset of other.
UsdStagePopulationMask & Add(SdfPath const &path)
Assign this mask to be its union with path and return a reference to this mask.
A path value used to locate objects in layers or scenegraphs.
UsdStagePopulationMask & Add(UsdStagePopulationMask const &other)
Assign this mask to be its union with other and return a reference to this mask.
USD_API UsdStagePopulationMask GetIntersection(UsdStagePopulationMask const &other) const
Return a mask that is the intersection of this and other.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
static SDF_API const SdfPath & AbsoluteRootPath()
The absolute path representing the top of the namespace hierarchy.
size_t hash_value(const half h)
Overload hash_value for half.
USD_API bool IncludesSubtree(SdfPath const &path) const
Return true if this mask includes path and all paths descendant to path.
UsdStagePopulationMask()=default
Construct an empty mask that includes no paths.
USD_API bool GetIncludedChildNames(SdfPath const &path, std::vector< TfToken > *childNames) const
Return true if this mask includes any child prims beneath path, false otherwise.
bool operator==(UsdStagePopulationMask const &other) const
Return true if this mask is equivalent to other.
This class represents a mask that may be applied to a UsdStage to limit the set of UsdPrim s it popul...
USD_API std::vector< SdfPath > GetPaths() const
Return the set of paths that define this mask.