HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dataSourceVolume.h
Go to the documentation of this file.
1 //
2 // Copyright 2020 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_VOLUME_H
9 #define PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_VOLUME_H
10 
13 
14 #include "pxr/usd/usdVol/volume.h"
15 
16 
18 
19 /// \class UsdImagingDataSourceVolumeFieldBindings
20 ///
21 /// A container data source representing volume field binding information.
22 ///
24 {
25 public:
27 
28  TfTokenVector GetNames() override;
29  HdDataSourceBaseHandle Get(const TfToken & name) override;
30 
31 private:
32 
33  // Private constructor, use static New() instead.
35  UsdVolVolume usdVolume,
36  const UsdImagingDataSourceStageGlobals &stageGlobals);
37 
38 
39 private:
40  UsdVolVolume _usdVolume;
41  const UsdImagingDataSourceStageGlobals &_stageGlobals;
42 };
43 
45 
46 // ----------------------------------------------------------------------------
47 
48 /// \class UsdImagingDataSourceVolumePrim
49 ///
50 /// A prim data source representing a UsdVolVolume prim.
51 ///
53 {
54 public:
56 
57  TfTokenVector GetNames() override;
58  HdDataSourceBaseHandle Get(const TfToken &name) override;
59 
60  static
62  Invalidate(
63  UsdPrim const& prim,
64  const TfToken &subprim,
65  const TfTokenVector &properties,
66  UsdImagingPropertyInvalidationType invalidationType);
67 
68 private:
69  // Private constructor, use static New() instead.
71  const SdfPath &sceneIndexPath,
72  UsdPrim usdPrim,
73  const UsdImagingDataSourceStageGlobals &stageGlobals);
74 };
75 
77 
79 
80 #endif // PXR_USD_IMAGING_USD_IMAGING_DATA_SOURCE_VOLUME_H
static HdDataSourceLocatorSet Invalidate(UsdPrim const &prim, const TfToken &subprim, const TfTokenVector &properties, UsdImagingPropertyInvalidationType invalidationType)
TfTokenVector GetNames() override
Definition: token.h:70
HD_DECLARE_DATASOURCE(UsdImagingDataSourceVolumePrim)
Definition: prim.h:116
std::vector< TfToken > TfTokenVector
Convenience types.
Definition: token.h:440
TfTokenVector GetNames() override
GLuint const GLchar * name
Definition: glcorearb.h:786
Definition: path.h:273
HdDataSourceBaseHandle Get(const TfToken &name) override
HD_DECLARE_DATASOURCE_HANDLES(UsdImagingDataSourceVolumeFieldBindings)
HD_DECLARE_DATASOURCE(UsdImagingDataSourceVolumeFieldBindings)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
HdDataSourceBaseHandle Get(const TfToken &name) override
UsdImagingPropertyInvalidationType
Definition: types.h:17