All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
resolveInfo.h
Go to the documentation of this file.
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_USD_RESOLVE_INFO_H
8#define PXR_USD_USD_RESOLVE_INFO_H
9
11
12#include "pxr/pxr.h"
13#include "pxr/usd/usd/api.h"
14#include "pxr/usd/usd/stage.h"
16#include "pxr/usd/sdf/path.h"
17#include "pxr/usd/pcp/node.h"
18
20
21#include <limits>
22
23PXR_NAMESPACE_OPEN_SCOPE
24
25
27
35{
37
42};
43
52{
53public:
56 , _valueIsBlocked(false)
57 {
58 }
59
62 return _source;
63 }
64
71 return
72 _source == UsdResolveInfoSourceDefault ||
75 _valueIsBlocked;
76 }
77
80 bool HasAuthoredValue() const {
81 return
82 _source == UsdResolveInfoSourceDefault ||
85 }
86
90 return _node;
91 }
92
97 bool ValueIsBlocked() const {
98 return _valueIsBlocked;
99 }
100
101private:
112 PcpLayerStackPtr _layerStack;
113
119 SdfLayerHandle _layer;
120
123 PcpNodeRef _node;
124
129 SdfLayerOffset _layerToStageOffset;
130
142 SdfPath _primPathInLayerStack;
143
145 UsdResolveInfoSource _source;
146
150 bool _valueIsBlocked;
151
152 friend class UsdAttribute;
153 friend class UsdStage;
154 friend class UsdStage_ResolveInfoAccess;
155 friend class UsdAttributeQuery;
156};
157
158
159PXR_NAMESPACE_CLOSE_SCOPE
160
161#endif // PXR_USD_USD_RESOLVE_INFO_H
Represents a stack of layers that contribute opinions to composition.
Definition: layerStack.h:50
PcpNode represents a node in an expression tree for compositing scene description.
Definition: node.h:47
Represents a time offset and scale between layers.
Definition: layerOffset.h:44
A path value used to locate objects in layers or scenegraphs.
Definition: path.h:274
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Definition: attribute.h:160
Object for efficiently making repeated queries for attribute values.
Container for information about the source of an attribute's value, i.e.
Definition: resolveInfo.h:52
bool ValueIsBlocked() const
Return true if this UsdResolveInfo represents an attribute whose value is blocked.
Definition: resolveInfo.h:97
UsdResolveInfoSource GetSource() const
Return the source of the associated attribute's value.
Definition: resolveInfo.h:61
PcpNodeRef GetNode() const
Return the node within the containing PcpPrimIndex that provided the resolved value opinion.
Definition: resolveInfo.h:89
bool HasAuthoredValue() const
Return true if this UsdResolveInfo represents an attribute that has an authored value that is not blo...
Definition: resolveInfo.h:80
bool HasAuthoredValueOpinion() const
Return true if this UsdResolveInfo represents an attribute that has an authored value opinion.
Definition: resolveInfo.h:70
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:136
Standard pointer typedefs.
#define TF_DECLARE_WEAK_PTRS(type)
Define standard weak pointer types.
Definition: declarePtrs.h:45
UsdResolveInfoSource
Describes the various sources of attribute values.
Definition: resolveInfo.h:35
@ UsdResolveInfoSourceTimeSamples
Attribute time samples.
Definition: resolveInfo.h:40
@ UsdResolveInfoSourceValueClips
Value clips.
Definition: resolveInfo.h:41
@ UsdResolveInfoSourceDefault
Attribute default value.
Definition: resolveInfo.h:39
@ UsdResolveInfoSourceNone
No value.
Definition: resolveInfo.h:36
@ UsdResolveInfoSourceFallback
Built-in fallback value.
Definition: resolveInfo.h:38