Loading...
Searching...
No Matches
targetIndex.h
1//
2// Copyright 2016 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_USD_PCP_TARGET_INDEX_H
8#define PXR_USD_PCP_TARGET_INDEX_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/pcp/api.h"
12#include "pxr/usd/pcp/errors.h"
14#include "pxr/usd/sdf/path.h"
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18SDF_DECLARE_HANDLES(SdfSpec);
19class PcpCache;
21class PcpPrimIndex;
23
32 SdfPathVector paths;
33 PcpErrorVector localErrors;
34 bool hasTargetOpinions = false;
35};
36
48PCP_API
49void
50PcpBuildTargetIndex(
51 const PcpSite& propSite,
52 const PcpPropertyIndex& propIndex,
53 const SdfSpecType relOrAttrType,
54 PcpTargetIndex *targetIndex,
55 PcpErrorVector *allErrors);
56
77PCP_API
78void
79PcpBuildFilteredTargetIndex(
80 const PcpSite& propSite,
81 const PcpPropertyIndex& propIndex,
82 const SdfSpecType relOrAttrType,
83 const bool localOnly,
84 const SdfSpecHandle &stopProperty,
85 const bool includeStopProperty,
86 PcpCache *cacheForValidation,
87 PcpTargetIndex *targetIndex,
88 SdfPathVector *deletedPaths,
89 PcpErrorVector *allErrors);
90
118PCP_API
119void
120PcpComposeTargetPaths(
121 const PcpLayerStackIdentifier &layerStackId,
122 const SdfPath &propPath,
123 const PcpPrimIndex &primIndex,
124 SdfSpecType relOrAttrType,
125 SdfPathVector *paths,
126 bool *hasTargetOpinions,
127 PcpErrorVector *allErrors);
128
129PXR_NAMESPACE_CLOSE_SCOPE
130
131#endif // PXR_USD_PCP_TARGET_INDEX_H
PcpCache is the context required to make requests of the Pcp composition algorithm and cache the resu...
Definition cache.h:77
Arguments used to identify a layer stack.
PcpPrimIndex is an index of the all sites of scene description that contribute opinions to a specific...
Definition primIndex.h:62
PcpPropertyIndex is an index of all sites in scene description that contribute opinions to a specific...
A site specifies a path in a layer stack of scene description.
Definition site.h:29
A path value used to locate objects in layers or scenegraphs.
Definition path.h:281
Base class for all Sdf spec classes.
Definition spec.h:33
A PcpTargetIndex represents the results of indexing the target paths of a relationship or attribute.
Definition targetIndex.h:31
SdfSpecType
An enum that specifies the type of an object.
Definition types.h:73