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 
33 #include "pxr/base/gf/matrix4d.h"
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/assetPath.h"
41 
42 PXR_NAMESPACE_OPEN_SCOPE
43 
44 // Numeric
46 using HdIntDataSourceHandle = HdIntDataSource::Handle;
48 using HdIntArrayDataSourceHandle = HdIntArrayDataSource::Handle;
49 
51 using HdSizetDataSourceHandle = HdSizetDataSource::Handle;
52 
54 using HdFloatDataSourceHandle = HdFloatDataSource::Handle;
56 using HdDoubleDataSourceHandle = HdDoubleDataSource::Handle;
58 using HdFloatArrayDataSourceHandle = HdFloatArrayDataSource::Handle;
59 
60 // Bool
62 using HdBoolDataSourceHandle = HdBoolDataSource::Handle;
64 using HdBoolArrayDataSourceHandle = HdBoolArrayDataSource::Handle;
65 
66 // String
68 using HdTokenDataSourceHandle = HdTokenDataSource::Handle;
70 using HdTokenArrayDataSourceHandle = HdTokenArrayDataSource::Handle;
71 
73 using HdPathDataSourceHandle = HdPathDataSource::Handle;
75 using HdPathArrayDataSourceHandle = HdPathArrayDataSource::Handle;
76 
78 using HdStringDataSourceHandle = HdStringDataSource::Handle;
79 
81 using HdAssetPathDataSourceHandle = HdAssetPathDataSource::Handle;
82 
83 // Linear algebra
85 using HdVec2iDataSourceHandle = HdVec2iDataSource::Handle;
87 using HdVec2fDataSourceHandle = HdVec2fDataSource::Handle;
89 using HdVec2fArrayDataSourceHandle = HdVec2fArrayDataSource::Handle;
90 
92 using HdVec3iDataSourceHandle = HdVec3iDataSource::Handle;
94 using HdVec3fDataSourceHandle = HdVec3fDataSource::Handle;
96 using HdVec3fArrayDataSourceHandle = HdVec3fArrayDataSource::Handle;
98 using HdVec3dDataSourceHandle = HdVec3dDataSource::Handle;
100 using HdVec3dArrayDataSourceHandle = HdVec3dArrayDataSource::Handle;
101 
103 using HdVec4iDataSourceHandle = HdVec4iDataSource::Handle;
105 using HdVec4fDataSourceHandle = HdVec4fDataSource::Handle;
107 using HdVec4dArrayDataSourceHandle = HdVec4dArrayDataSource::Handle;
108 
110 using HdMatrixDataSourceHandle = HdMatrixDataSource::Handle;
112 using HdMatrixArrayDataSourceHandle = HdMatrixArrayDataSource::Handle;
113 
114 // Locator
116 using HdLocatorDataSourceHandle = HdLocatorDataSource::Handle;
117 
118 // Enum
120 using HdFormatDataSourceHandle = HdFormatDataSource::Handle;
121 
123 using HdTupleTypeDataSourceHandle = HdTupleTypeDataSource::Handle;
124 
125 // ArResolverContext
127 using HdResolverContextDataSourceHandle = HdResolverContextDataSource::Handle;
128 
129 PXR_NAMESPACE_CLOSE_SCOPE
130 
131 #endif // PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:204
This file defines some macros that are useful for declaring and using static TfTokens.