HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
utils.h
Go to the documentation of this file.
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
"
13
14
PXR_NAMESPACE_OPEN_SCOPE
15
16
class
HdCollectionExpressionEvaluator
;
17
18
/// --------------------------------------------------------------------------
19
/// Utilities to evaluate membership expressions for collections with pruning
20
/// semantics.
21
/// --------------------------------------------------------------------------
22
23
/// Returns whether the prim at \p primPath is pruned by the suppied
24
/// evaluator.
25
///
26
HDSI_API
27
bool
28
HdsiUtilsIsPruned
(
29
const
SdfPath
&primPath,
30
const
HdCollectionExpressionEvaluator
&
eval
);
31
32
/// Prunes the given list of children using the supplied evaluator.
33
HDSI_API
34
void
35
HdsiUtilsRemovePrunedChildren
(
36
const
SdfPath
&parentPath,
37
const
HdCollectionExpressionEvaluator
&
eval
,
38
SdfPathVector
*children);
39
40
/// ------------------------------------------------------------------------
41
42
PXR_NAMESPACE_CLOSE_SCOPE
43
44
#endif //PXR_IMAGING_HDSI_UTILS_H
HdsiUtilsIsPruned
HDSI_API bool HdsiUtilsIsPruned(const SdfPath &primPath, const HdCollectionExpressionEvaluator &eval)
SdfPathVector
std::vector< class SdfPath > SdfPathVector
Definition:
collectionExpressionEvaluator.h:28
pxr.h
HdsiUtilsRemovePrunedChildren
HDSI_API void HdsiUtilsRemovePrunedChildren(const SdfPath &parentPath, const HdCollectionExpressionEvaluator &eval, SdfPathVector *children)
Prunes the given list of children using the supplied evaluator.
XUSD_HydraUtils::eval
HUSD_API bool eval(VtValue &val, T &ret_val)
api.h
SdfPath
Definition:
path.h:273
HDSI_API
#define HDSI_API
Definition:
api.h:23
path.h
PXR_NAMESPACE_OPEN_SCOPE
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition:
path.h:1425
HdCollectionExpressionEvaluator
Definition:
collectionExpressionEvaluator.h:40
PXR_NAMESPACE_CLOSE_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition:
pxr.h:74
pxr
imaging
hdsi
utils.h
Generated on Thu Sep 4 2025 02:38:24 for HDK by
1.8.6