All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
common.h
Go to the documentation of this file.
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 PXR_USD_USD_COMMON_H
25 #define PXR_USD_USD_COMMON_H
26 
28 
29 #include "pxr/pxr.h"
30 #include "pxr/usd/usd/api.h"
34 
35 #include "pxr/usd/usd/primDataHandle.h"
36 #include "pxr/usd/usd/timeCode.h"
37 
38 #include <string>
39 #include <map>
40 
41 PXR_NAMESPACE_OPEN_SCOPE
42 
43 // Forward declare Usd classes.
44 class UsdStage;
45 class UsdObject;
46 class UsdPrim;
47 class UsdProperty;
48 class UsdAttribute;
49 class UsdRelationship;
50 class UsdStageCache;
51 
52 class VtValue;
53 
55 typedef UsdStagePtr UsdStageWeakPtr;
56 
58 USD_API
59 std::string UsdDescribe(const UsdObject &);
61 USD_API
62 std::string UsdDescribe(const UsdStageRefPtr &);
64 USD_API
65 std::string UsdDescribe(const UsdStageWeakPtr &);
67 USD_API
68 std::string UsdDescribe(const UsdStage *);
70 USD_API
71 std::string UsdDescribe(const UsdStage &);
73 USD_API
74 std::string UsdDescribe(const UsdStageCache &);
75 
76 // XXX:
77 // Currently used for querying composed values from ascii layers, so VtValue is
78 // the optimal value-store, but this may not always be the case.
79 typedef std::map<class TfToken, VtValue,
81  > UsdMetadataValueMap;
82 
109 };
110 
121 };
122 
127 enum class UsdSchemaKind {
129  Invalid,
134  AbstractBase,
145 };
146 
147 PXR_NAMESPACE_CLOSE_SCOPE
148 
149 #endif
The position at the front of the prepend list.
Definition: common.h:93
UsdListPosition
Specifies a position to add items to lists.
Definition: common.h:88
Provides dictionary ordering binary predicate function on strings.
Definition: stringUtils.h:504
Standard pointer typedefs.
Definitions of basic string utilities in tf.
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:145
Load a prim plus all its descendants.
Definition: common.h:118
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:89
Scenegraph object for authoring and retrieving numeric, string, and array valued data, sampled over time.
Definition: attribute.h:176
Invalid or unknown schema kind.
USD_API std::string UsdDescribe(const UsdObject &)
Return a human-readable description.
The position at the front of the append list.
Definition: common.h:103
Non-applied API schema.
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Definition: common.h:127
A strongly concurrency safe collection of UsdStageRefPtr s, enabling sharing across multiple clients ...
Definition: stageCache.h:86
Single Apply API schema.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:87
Base class for Usd scenegraph objects, providing common API.
Definition: object.h:130
Load a prim by itself with no descendants.
Definition: common.h:120
Represents a concrete typed schema.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a &quot;Prim&quot; as ...
Definition: prim.h:132
A UsdRelationship creates dependencies between scenegraph objects by allowing a prim to target other ...
Definition: relationship.h:128
The position at the back of the append list.
Definition: common.h:108
UsdLoadPolicy
Controls UsdStage::Load() and UsdPrim::Load() behavior regarding whether or not descendant prims are ...
Definition: common.h:116
Multiple Apply API Schema.
Base class for UsdAttribute and UsdRelationship scenegraph objects.
Definition: property.h:55
Represents abstract or base schema types that are interface-only and cannot be instantiated.
Represents a non-concrete typed schema.
The position at the back of the prepend list.
Definition: common.h:98
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:168