Loading...
Searching...
No Matches
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
41PXR_NAMESPACE_OPEN_SCOPE
42
43// Forward declare Usd classes.
44class UsdStage;
45class UsdObject;
46class UsdPrim;
47class UsdProperty;
48class UsdAttribute;
49class UsdRelationship;
50class UsdStageCache;
51
52class VtValue;
53
55typedef UsdStagePtr UsdStageWeakPtr;
56
58USD_API
59std::string UsdDescribe(const UsdObject &);
61USD_API
62std::string UsdDescribe(const UsdStageRefPtr &);
64USD_API
65std::string UsdDescribe(const UsdStageWeakPtr &);
67USD_API
68std::string UsdDescribe(const UsdStage *);
70USD_API
71std::string UsdDescribe(const UsdStage &);
73USD_API
74std::string UsdDescribe(const UsdStageCache &);
75
76// XXX:
77// Currently used for querying composed values from text layers, so VtValue is
78// the optimal value-store, but this may not always be the case.
79typedef std::map<class TfToken, VtValue,
81 > UsdMetadataValueMap;
82
109};
110
122
129enum class UsdSchemaKind {
131 Invalid,
147};
148
149PXR_NAMESPACE_CLOSE_SCOPE
150
151#endif
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
Scenegraph object for authoring and retrieving numeric, string, and array valued data,...
Definition: attribute.h:176
Base class for Usd scenegraph objects, providing common API.
Definition: object.h:132
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
Definition: prim.h:134
Base class for UsdAttribute and UsdRelationship scenegraph objects.
Definition: property.h:55
A UsdRelationship creates dependencies between scenegraph objects by allowing a prim to target other ...
Definition: relationship.h:128
A strongly concurrency safe collection of UsdStageRefPtr s, enabling sharing across multiple clients ...
Definition: stageCache.h:85
The outermost container for scene description, which owns and presents composed prims as a scenegraph...
Definition: stage.h:151
Provides a container which may hold any type, and provides introspection and iteration over array typ...
Definition: value.h:164
USD_API std::string UsdDescribe(const UsdObject &)
Return a human-readable description.
UsdListPosition
Specifies a position to add items to lists.
Definition: common.h:88
@ UsdListPositionFrontOfPrependList
The position at the front of the prepend list.
Definition: common.h:93
@ UsdListPositionBackOfPrependList
The position at the back of the prepend list.
Definition: common.h:98
@ UsdListPositionFrontOfAppendList
The position at the front of the append list.
Definition: common.h:103
@ UsdListPositionBackOfAppendList
The position at the back of the append list.
Definition: common.h:108
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
Definition: common.h:129
@ AbstractTyped
Represents a non-concrete typed schema.
@ AbstractBase
Represents abstract or base schema types that are interface-only and cannot be instantiated.
@ Invalid
Invalid or unknown schema kind.
@ MultipleApplyAPI
Multiple Apply API Schema.
@ SingleApplyAPI
Single Apply API schema.
@ ConcreteTyped
Represents a concrete typed schema.
@ NonAppliedAPI
Non-applied API schema.
UsdLoadPolicy
Controls UsdStage::Load() and UsdPrim::Load() behavior regarding whether or not descendant prims are ...
Definition: common.h:116
@ UsdLoadWithoutDescendants
Load a prim by itself with no descendants.
Definition: common.h:120
@ UsdLoadWithDescendants
Load a prim plus all its descendants.
Definition: common.h:118
Standard pointer typedefs.
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
Definition: declarePtrs.h:89
Definitions of basic string utilities in tf.
Provides dictionary ordering binary predicate function on strings.
Definition: stringUtils.h:528