VTK  9.3.0
vtkOSPRayUnstructuredVolumeMapperNode.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkOSPRayUnstructuredVolumeMapperNode_h
13 #define vtkOSPRayUnstructuredVolumeMapperNode_h
14 
15 #include "vtkOSPRayCache.h" // For common cache infrastructure
16 #include "vtkRenderingRayTracingModule.h" // For export macro
17 #include "vtkVolumeMapperNode.h"
18 
19 #include "RTWrapper/RTWrapper.h" // for handle types
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayUnstructuredVolumeMapperNode
23  : public vtkVolumeMapperNode
24 
25 {
26 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
34  void Render(bool prepass) override;
35 
36 protected:
39 
40  int NumColors;
41  double SamplingRate;
42 
45 
48 
49  std::string LastArrayName = "";
50  int LastArrayComponent = -2;
51 
52  OSPInstance OSPRayInstance{ nullptr };
53 
54 private:
56  void operator=(const vtkOSPRayUnstructuredVolumeMapperNode&) = delete;
57 };
58 
59 VTK_ABI_NAMESPACE_END
60 #endif
#define OSPVolumetricModel
Definition: RTWrapper.h:33
#define OSPInstance
Definition: RTWrapper.h:21
#define OSPVolume
Definition: RTWrapper.h:32
a simple class to control print indentation
Definition: vtkIndent.h:29
static vtkOSPRayUnstructuredVolumeMapperNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Render(bool prepass) override
Make ospray calls to render me.
record modification and/or execution time
Definition: vtkTimeStamp.h:25
vtkViewNode specialized for vtkVolumeMappers
@ string
Definition: vtkX3D.h:490