Loading...
Searching...
No Matches
utils.h
1//
2// Copyright 2024 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_IMAGING_HDSI_UTILS_H
8#define PXR_IMAGING_HDSI_UTILS_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hdsi/api.h"
12#include "pxr/usd/sdf/path.h"
14#include "pxr/base/tf/token.h"
15#include <optional>
16
17PXR_NAMESPACE_OPEN_SCOPE
18
20
24
25struct HdSceneIndexPrim;
26
30
34HDSI_API
35void
36HdsiUtilsCompileCollection(
37 HdCollectionsSchema &collections,
38 TfToken const& collectionName,
39 HdSceneIndexBaseRefPtr const& sceneIndex,
41 std::optional<HdCollectionExpressionEvaluator> *eval);
42
47
51HDSI_API
52bool
53HdsiUtilsIsPruned(
54 const SdfPath &primPath,
56
58HDSI_API
59void
60HdsiUtilsRemovePrunedChildren(
61 const SdfPath &parentPath,
63 SdfPathVector *children);
64
68
74HDSI_API
76HdsiUtilsGetBoundMaterial(
77 const HdSceneIndexPrim& prim);
78
80
81PXR_NAMESPACE_CLOSE_SCOPE
82
83#endif //PXR_IMAGING_HDSI_UTILS_H
Evaluates SdfPathExpressions with prims from a given HdSceneIndex.
The HdCollectionsSchema specifies a wrapper container for collection entries with the key being the c...
Abstract interface to scene data.
Definition: sceneIndex.h:55
Objects of this class represent a logical expression syntax tree consisting of SdfPathPattern s,...
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:281
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Standard pointer typedefs.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:72
Small struct representing a 'prim' in the Hydra scene index.
Definition: sceneIndex.h:36
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...