Loading...
Searching...
No Matches
geomXformVectorsSchema.h
Go to the documentation of this file.
1//
2// Copyright 2023 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
8
9/* ************************************************************************** */
10/* ** ** */
11/* ** This file is generated by a script. ** */
12/* ** ** */
13/* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14/* ** Edit hdSchemaDefs.py instead to make changes. ** */
15/* ** ** */
16/* ************************************************************************** */
17
18#ifndef PXR_USD_IMAGING_USD_IMAGING_GEOM_XFORM_VECTORS_SCHEMA_H
19#define PXR_USD_IMAGING_USD_IMAGING_GEOM_XFORM_VECTORS_SCHEMA_H
20
22
23#include "pxr/usdImaging/usdImaging/api.h"
24
25#include "pxr/imaging/hd/schema.h"
26
27// --(BEGIN CUSTOM CODE: Includes)--
28// --(END CUSTOM CODE: Includes)--
29
30PXR_NAMESPACE_OPEN_SCOPE
31
32// --(BEGIN CUSTOM CODE: Declares)--
33// --(END CUSTOM CODE: Declares)--
34
35#define USD_IMAGING_GEOM_XFORM_VECTORS_SCHEMA_TOKENS \
36 (geomXformVectors) \
37 (translation) \
38 (rotation) \
39 (rotationOrder) \
40 (scale) \
41 (pivot) \
42
43TF_DECLARE_PUBLIC_TOKENS(UsdImagingGeomXformVectorsSchemaTokens, USDIMAGING_API,
44 USD_IMAGING_GEOM_XFORM_VECTORS_SCHEMA_TOKENS);
45
46//-----------------------------------------------------------------------------
47
48
60{
61public:
64
65 UsdImagingGeomXformVectorsSchema(HdContainerDataSourceHandle container)
66 : HdSchema(container) {}
67
73 USDIMAGING_API
75 const HdContainerDataSourceHandle &fromParentContainer);
76
78
79// --(BEGIN CUSTOM CODE: Schema Methods)--
80// --(END CUSTOM CODE: Schema Methods)--
81
84
85 USDIMAGING_API
86 HdVec3dDataSourceHandle GetTranslation() const;
87
88 USDIMAGING_API
89 HdVec3fDataSourceHandle GetRotation() const;
90
91 USDIMAGING_API
92 HdTokenDataSourceHandle GetRotationOrder() const;
93
94 USDIMAGING_API
95 HdVec3fDataSourceHandle GetScale() const;
96
97 USDIMAGING_API
98 HdVec3fDataSourceHandle GetPivot() const;
99
101
104
107 USDIMAGING_API
108 static const TfToken &GetSchemaToken();
109
112 USDIMAGING_API
114
116
119
127 USDIMAGING_API
128 static HdContainerDataSourceHandle
130 const HdVec3dDataSourceHandle &translation,
131 const HdVec3fDataSourceHandle &rotation,
132 const HdTokenDataSourceHandle &rotationOrder,
133 const HdVec3fDataSourceHandle &scale,
134 const HdVec3fDataSourceHandle &pivot
135 );
136
144 {
145 public:
146 USDIMAGING_API
147 Builder &SetTranslation(
148 const HdVec3dDataSourceHandle &translation);
149 USDIMAGING_API
150 Builder &SetRotation(
151 const HdVec3fDataSourceHandle &rotation);
152 USDIMAGING_API
153 Builder &SetRotationOrder(
154 const HdTokenDataSourceHandle &rotationOrder);
155 USDIMAGING_API
156 Builder &SetScale(
157 const HdVec3fDataSourceHandle &scale);
158 USDIMAGING_API
159 Builder &SetPivot(
160 const HdVec3fDataSourceHandle &pivot);
161
163 USDIMAGING_API
164 HdContainerDataSourceHandle Build();
165
166 private:
167 HdVec3dDataSourceHandle _translation;
168 HdVec3fDataSourceHandle _rotation;
169 HdTokenDataSourceHandle _rotationOrder;
170 HdVec3fDataSourceHandle _scale;
171 HdVec3fDataSourceHandle _pivot;
172
173 };
174
176};
177
178PXR_NAMESPACE_CLOSE_SCOPE
179
180#endif
Represents an object that can identify the location of a data source.
Schema classes represent a structured view of the inherently unstructured container data source passe...
Definition: schema.h:26
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
Utility class for setting sparse sets of child data source fields to be filled as arguments into Buil...
USDIMAGING_API HdContainerDataSourceHandle Build()
Returns a container data source containing the members set thus far.
The UsdImagingGeomXformVectorsSchema exposes the result of UsdGeomXformCommonAPI::GetXformVectorsByAc...
static USDIMAGING_API const HdDataSourceLocator & GetDefaultLocator()
Returns an HdDataSourceLocator (relative to the prim-level data source) where the container represent...
static USDIMAGING_API HdContainerDataSourceHandle BuildRetained(const HdVec3dDataSourceHandle &translation, const HdVec3fDataSourceHandle &rotation, const HdTokenDataSourceHandle &rotationOrder, const HdVec3fDataSourceHandle &scale, const HdVec3fDataSourceHandle &pivot)
static USDIMAGING_API UsdImagingGeomXformVectorsSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
Retrieves a container data source with the schema's default name token "geomXformVectors" from the pa...
static USDIMAGING_API const TfToken & GetSchemaToken()
Returns a token where the container representing this schema is found in a container by default.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.
Definition: staticTokens.h:92