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
28
32HDSI_API
33void
34HdsiUtilsCompileCollection(
35 HdCollectionsSchema &collections,
36 TfToken const& collectionName,
37 HdSceneIndexBaseRefPtr const& sceneIndex,
39 std::optional<HdCollectionExpressionEvaluator> *eval);
40
45
49HDSI_API
50bool
51HdsiUtilsIsPruned(
52 const SdfPath &primPath,
54
56HDSI_API
57void
58HdsiUtilsRemovePrunedChildren(
59 const SdfPath &parentPath,
61 SdfPathVector *children);
62
64
65PXR_NAMESPACE_CLOSE_SCOPE
66
67#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:54
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:274
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
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...