Loading...
Searching...
No Matches
dataSourceTypeDefs.h
1//
2// Copyright 2021 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_IMAGING_HD_DATASOURCETYPEDEFS_H
25#define PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
26
27#include "pxr/pxr.h"
28
29#include "pxr/imaging/hd/dataSource.h"
30#include "pxr/imaging/hd/dataSourceLocator.h"
31#include "pxr/imaging/hd/types.h"
32
34#include "pxr/base/gf/vec2f.h"
36#include "pxr/base/vt/array.h"
37
39#include "pxr/usd/sdf/path.h"
40#include "pxr/usd/sdf/pathExpression.h"
42
43PXR_NAMESPACE_OPEN_SCOPE
44
45// Numeric
47using HdIntDataSourceHandle = HdIntDataSource::Handle;
49using HdIntArrayDataSourceHandle = HdIntArrayDataSource::Handle;
50
52using HdSizetDataSourceHandle = HdSizetDataSource::Handle;
53
55using HdFloatDataSourceHandle = HdFloatDataSource::Handle;
57using HdDoubleDataSourceHandle = HdDoubleDataSource::Handle;
59using HdFloatArrayDataSourceHandle = HdFloatArrayDataSource::Handle;
61using HdDoubleArrayDataSourceHandle = HdDoubleArrayDataSource::Handle;
62
63// Bool
65using HdBoolDataSourceHandle = HdBoolDataSource::Handle;
67using HdBoolArrayDataSourceHandle = HdBoolArrayDataSource::Handle;
68
69// String
71using HdTokenDataSourceHandle = HdTokenDataSource::Handle;
73using HdTokenArrayDataSourceHandle = HdTokenArrayDataSource::Handle;
74
76using HdPathDataSourceHandle = HdPathDataSource::Handle;
78using HdPathArrayDataSourceHandle = HdPathArrayDataSource::Handle;
79
81using HdStringDataSourceHandle = HdStringDataSource::Handle;
82
84using HdAssetPathDataSourceHandle = HdAssetPathDataSource::Handle;
85
87using HdPathExpressionDataSourceHandle = HdPathExpressionDataSource::Handle;
88
89// Linear algebra
91using HdVec2iDataSourceHandle = HdVec2iDataSource::Handle;
93using HdVec2fDataSourceHandle = HdVec2fDataSource::Handle;
95using HdVec2dDataSourceHandle = HdVec2dDataSource::Handle;
97using HdVec2fArrayDataSourceHandle = HdVec2fArrayDataSource::Handle;
99using HdVec2dArrayDataSourceHandle = HdVec2dArrayDataSource::Handle;
100
102using HdVec3iDataSourceHandle = HdVec3iDataSource::Handle;
104using HdVec3iArrayDataSourceHandle = HdVec3iArrayDataSource::Handle;
106using HdVec3fDataSourceHandle = HdVec3fDataSource::Handle;
108using HdVec3fArrayDataSourceHandle = HdVec3fArrayDataSource::Handle;
110using HdVec3dDataSourceHandle = HdVec3dDataSource::Handle;
112using HdVec3dArrayDataSourceHandle = HdVec3dArrayDataSource::Handle;
113
115using HdVec4iDataSourceHandle = HdVec4iDataSource::Handle;
117using HdVec4iArrayDataSourceHandle = HdVec4iArrayDataSource::Handle;
119using HdVec4fDataSourceHandle = HdVec4fDataSource::Handle;
121using HdVec4dArrayDataSourceHandle = HdVec4dArrayDataSource::Handle;
122
124using HdMatrixDataSourceHandle = HdMatrixDataSource::Handle;
126using HdMatrixArrayDataSourceHandle = HdMatrixArrayDataSource::Handle;
127
128// Locator
130using HdLocatorDataSourceHandle = HdLocatorDataSource::Handle;
131
132// Enum
134using HdFormatDataSourceHandle = HdFormatDataSource::Handle;
135
137using HdTupleTypeDataSourceHandle = HdTupleTypeDataSource::Handle;
138
139// ArResolverContext
141using HdResolverContextDataSourceHandle = HdResolverContextDataSource::Handle;
142
143PXR_NAMESPACE_CLOSE_SCOPE
144
145#endif // PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:210
This file defines some macros that are useful for declaring and using static TfTokens.