VTK  9.1.0
vtkOSPRayUnstructuredVolumeMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayUnstructuredVolumeMapperNode.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
24 #ifndef vtkOSPRayUnstructuredVolumeMapperNode_h
25 #define vtkOSPRayUnstructuredVolumeMapperNode_h
26 
27 #include "vtkOSPRayCache.h" // For common cache infrastructure
28 #include "vtkRenderingRayTracingModule.h" // For export macro
29 #include "vtkVolumeMapperNode.h"
30 
31 #include "RTWrapper/RTWrapper.h" // for handle types
32 
33 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayUnstructuredVolumeMapperNode
34  : public vtkVolumeMapperNode
35 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  void Render(bool prepass) override;
46 
47 protected:
50 
51  int NumColors;
52  double SamplingRate;
53 
56 
59 
60  std::string LastArrayName = "";
61  int LastArrayComponent = -2;
62 
63  OSPInstance OSPRayInstance{ nullptr };
64 
65 private:
67  void operator=(const vtkOSPRayUnstructuredVolumeMapperNode&) = delete;
68 };
69 
70 #endif
#define OSPVolumetricModel
Definition: RTWrapper.h:30
#define OSPInstance
Definition: RTWrapper.h:18
#define OSPVolume
Definition: RTWrapper.h:29
a simple class to control print indentation
Definition: vtkIndent.h:34
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:33
vtkViewNode specialized for vtkVolumeMappers
@ string
Definition: vtkX3D.h:496