All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
targetIndex.h
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PCP_TARGET_INDEX_H
25 #define PCP_TARGET_INDEX_H
26 
27 #include "pxr/pxr.h"
28 #include "pxr/usd/pcp/api.h"
29 #include "pxr/usd/pcp/errors.h"
30 #include "pxr/usd/sdf/declareHandles.h"
31 #include "pxr/usd/sdf/path.h"
32 
33 PXR_NAMESPACE_OPEN_SCOPE
34 
35 SDF_DECLARE_HANDLES(SdfSpec);
36 class PcpCache;
37 class PcpPropertyIndex;
38 
47  SdfPathVector paths;
48  PcpErrorVector localErrors;
49 };
50 
62 PCP_API
63 void
64 PcpBuildTargetIndex(
65  const PcpSite& propSite,
66  const PcpPropertyIndex& propIndex,
67  const SdfSpecType relOrAttrType,
68  PcpTargetIndex *targetIndex,
69  PcpErrorVector *allErrors);
70 
87 PCP_API
88 void
89 PcpBuildFilteredTargetIndex(
90  const PcpSite& propSite,
91  const PcpPropertyIndex& propIndex,
92  const SdfSpecType relOrAttrType,
93  const bool localOnly,
94  const SdfSpecHandle &stopProperty,
95  const bool includeStopProperty,
96  PcpCache *cacheForValidation,
97  PcpTargetIndex *targetIndex,
98  PcpErrorVector *allErrors);
99 
100 PXR_NAMESPACE_CLOSE_SCOPE
101 
102 #endif // PCP_TARGET_INDEX_H
PcpCache is the context required to make requests of the Pcp composition algorithm and cache the resu...
Definition: cache.h:91
Base class for all Sdf spec classes.
Definition: spec.h:51
A site specifies a path in a layer stack of scene description.
Definition: site.h:46
SdfSpecType
An enum that specifies the type of an object.
Definition: types.h:91
PcpPropertyIndex is an index of all sites in scene description that contribute opinions to a specific...
Definition: propertyIndex.h:65
A PcpTargetIndex represents the results of indexing the target paths of a relationship or attribute...
Definition: targetIndex.h:46