HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceTetMesh.h
Go to the documentation of this file.
1 //
2 // Copyright 2024 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_TET_MESH_H
8 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_TET_MESH_H
9 
12 
14 
16 
18 
19 // ----------------------------------------------------------------------------
20 
21 /// \class UsdImagingDataSourceTetMeshTopology
22 ///
23 /// A container data source representing tet mesh topology.
24 ///
26 {
27 public:
29 
30  TfTokenVector GetNames() override;
31  HdDataSourceBaseHandle Get(const TfToken &name) override;
32 
33 private:
35  const SdfPath &sceneIndexPath,
36  UsdGeomTetMesh usdTetMesh,
37  const UsdImagingDataSourceStageGlobals &stageGlobals);
38 
39 private:
40  const SdfPath _sceneIndexPath;
41  UsdGeomTetMesh _usdTetMesh;
42  const UsdImagingDataSourceStageGlobals & _stageGlobals;
43 };
44 
46 
47 // ----------------------------------------------------------------------------
48 
49 /// \class UsdImagingDataSourceTetMesh
50 ///
51 /// A container data source representing data unique to tet meshes
52 ///
54 {
55 public:
57 
58  TfTokenVector GetNames() override;
59  HdDataSourceBaseHandle Get(const TfToken &name) override;
60 
61 private:
63  const SdfPath &sceneIndexPath,
64  UsdGeomTetMesh usdTetMesh,
65  const UsdImagingDataSourceStageGlobals &stageGlobals);
66 
67 private:
68  const SdfPath _sceneIndexPath;
69  UsdGeomTetMesh _usdTetMesh;
70  const UsdImagingDataSourceStageGlobals & _stageGlobals;
71 };
72 
74 
75 // ----------------------------------------------------------------------------
76 
77 /// \class UsdImagingDataSourceTetMeshPrim
78 ///
79 /// A prim data source representing UsdGeomTetMesh.
80 ///
82 {
83 public:
85 
86  TfTokenVector GetNames() override;
87  HdDataSourceBaseHandle Get(const TfToken &name) override;
88 
91  UsdPrim const& prim,
92  const TfToken &subprim,
93  const TfTokenVector &properties,
94  UsdImagingPropertyInvalidationType invalidationType);
95 
96 private:
98  const SdfPath &sceneIndexPath,
99  UsdPrim usdPrim,
100  const UsdImagingDataSourceStageGlobals &stageGlobals);
101 };
102 
104 
106 
107 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_TET_MESH_H
#define USDIMAGING_API
Definition: api.h:23
static USDIMAGING_API HdDataSourceLocatorSet Invalidate(UsdPrim const &prim, const TfToken &subprim, const TfTokenVector &properties, UsdImagingPropertyInvalidationType invalidationType)
HD_DECLARE_DATASOURCE(UsdImagingDataSourceTetMeshTopology)
HD_DECLARE_DATASOURCE(UsdImagingDataSourceTetMeshPrim)
Definition: token.h:70
TfTokenVector GetNames() override
HD_DECLARE_DATASOURCE(UsdImagingDataSourceTetMesh)
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
TfTokenVector GetNames() override
HdDataSourceBaseHandle Get(const TfToken &name) override
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: path.h:273
HdDataSourceBaseHandle Get(const TfToken &name) override
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
HdDataSourceBaseHandle Get(const TfToken &name) override
HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceTetMeshTopology)
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
TfTokenVector GetNames() override
UsdImagingPropertyInvalidationType
Definition: types.h:17