7#ifndef PXR_IMAGING_HD_RPRIM_COLLECTION_H
8#define PXR_IMAGING_HD_RPRIM_COLLECTION_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/repr.h"
14#include "pxr/usd/sdf/path.h"
19PXR_NAMESPACE_OPEN_SCOPE
52 bool forcedRepr=
false,
67 bool forcedRepr=
false,
103 return _reprSelector;
107 _reprSelector = reprSelector;
110 bool IsForcedRepr()
const {
114 void SetForcedRepr(
bool flag) {
164 TfToken const& GetMaterialTag()
const;
167 size_t ComputeHash()
const;
171 return value.ComputeHash();
176 template <
class HashState>
193 friend std::ostream & operator <<(std::ostream &out,
200 SdfPathVector _rootPaths;
201 SdfPathVector _excludePaths;
213PXR_NAMESPACE_CLOSE_SCOPE
Describes one or more authored display representations for an rprim.
A named, semantic collection of objects.
HD_API SdfPathVector const & GetRootPaths() const
Returns the paths at which all Rprims must be rooted to be included in this collection.
HD_API HdRprimCollection(TfToken const &name, HdReprSelector const &reprSelector, SdfPath const &rootPath, bool forcedRepr=false, TfToken const &materialTag=TfToken())
Constructs an rprim collection, excluding all Rprims not prefixed by rootPath.
HD_API void SetExcludePaths(SdfPathVector const &excludePaths)
Sets all exclude paths for this collection.
HD_API HdRprimCollection(TfToken const &name, HdReprSelector const &reprSelector, bool forcedRepr=false, TfToken const &materialTag=TfToken())
Constructs an rprim collection with reprSelector.
HD_API SdfPathVector const & GetExcludePaths() const
Returns the excluded paths.
HdReprSelector const & GetReprSelector() const
Returns the representation name.
HD_API void SetRootPaths(SdfPathVector const &rootPaths)
Sets all root paths for this collection, replacing any existing paths that were present previously.
TfToken const & GetName() const
Returns the semantic name of this collection.
HD_API HdRprimCollection(HdRprimCollection const &col)
Copy constructor.
void SetName(TfToken const &name)
Sets the semantic name of this collection.
HD_API HdRprimCollection CreateInverseCollection() const
Constructs and returns a collection with the root and exclude paths swapped.
HD_API void SetMaterialTag(TfToken const &tag)
A MaterialTag can be used to ensure only prims whos material have a matching tag will end up in the c...
HD_API void SetRootPath(SdfPath const &rootPath)
Sets the path at which all Rprims must be rooted to be included in this collection,...
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
size_t hash_value(const half h)
Overload hash_value for half.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...