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 
38 #include "pxr/usd/sdf/path.h"
39 #include "pxr/usd/sdf/assetPath.h"
40 
41 PXR_NAMESPACE_OPEN_SCOPE
42 
43 // Numeric
45 using HdIntDataSourceHandle = HdIntDataSource::Handle;
47 using HdIntArrayDataSourceHandle = HdIntArrayDataSource::Handle;
48 
50 using HdSizetDataSourceHandle = HdSizetDataSource::Handle;
51 
53 using HdFloatDataSourceHandle = HdFloatDataSource::Handle;
55 using HdDoubleDataSourceHandle = HdDoubleDataSource::Handle;
57 using HdFloatArrayDataSourceHandle = HdFloatArrayDataSource::Handle;
58 
59 // Bool
61 using HdBoolDataSourceHandle = HdBoolDataSource::Handle;
63 using HdBoolArrayDataSourceHandle = HdBoolArrayDataSource::Handle;
64 
65 // String
67 using HdTokenDataSourceHandle = HdTokenDataSource::Handle;
69 using HdTokenArrayDataSourceHandle = HdTokenArrayDataSource::Handle;
70 
72 using HdPathDataSourceHandle = HdPathDataSource::Handle;
74 using HdPathArrayDataSourceHandle = HdPathArrayDataSource::Handle;
75 
77 using HdStringDataSourceHandle = HdStringDataSource::Handle;
78 
80 using HdAssetPathDataSourceHandle = HdAssetPathDataSource::Handle;
81 
82 // Linear algebra
84 using HdVec2iDataSourceHandle = HdVec2iDataSource::Handle;
86 using HdVec2fDataSourceHandle = HdVec2fDataSource::Handle;
88 using HdVec2fArrayDataSourceHandle = HdVec2fArrayDataSource::Handle;
89 
91 using HdVec3iDataSourceHandle = HdVec3iDataSource::Handle;
93 using HdVec3fDataSourceHandle = HdVec3fDataSource::Handle;
95 using HdVec3fArrayDataSourceHandle = HdVec3fArrayDataSource::Handle;
96 
98 using HdVec4iDataSourceHandle = HdVec4iDataSource::Handle;
100 using HdVec3dDataSourceHandle = HdVec3dDataSource::Handle;
102 using HdVec3dArrayDataSourceHandle = HdVec3dArrayDataSource::Handle;
103 
105 using HdVec4iDataSourceHandle = HdVec4iDataSource::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 PXR_NAMESPACE_CLOSE_SCOPE
126 
127 #endif // PXR_IMAGING_HD_DATASOURCETYPEDEFS_H
A datasource representing a concretely-typed sampled value.
Definition: dataSource.h:201
This file defines some macros that are useful for declaring and using static TfTokens.