VTK  9.2.6
vtkOSPRayPointGaussianMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayPointGaussianMapperNode.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 =========================================================================*/
22 #ifndef vtkOSPRayPointGaussianMapperNode_h
23 #define vtkOSPRayPointGaussianMapperNode_h
24 
26 #include "vtkRenderingRayTracingModule.h" // For export macro
27 
28 class vtkOSPRayActorNode;
29 class vtkPolyData;
30 
31 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPointGaussianMapperNode
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  void Render(bool prepass) override;
43 
44 protected:
47 
48  void InternalRender(void* renderer, vtkOSPRayActorNode* aNode, vtkPolyData* poly, double opacity,
49  std::string material);
50 
51  std::vector<OSPVolume> OSPRayVolumes;
52  std::vector<OSPVolumetricModel> VolumetricModels;
53  std::vector<OSPInstance> Instances;
54  void ClearVolumetricModels();
55 
59  void RenderVolumetricModels();
60 
64  bool GetNeedToRebuild(vtkOSPRayActorNode*);
65 
69  int NumColors = 128;
70  int ScaleTableSize = 1024;
71  float* ScaleTable = nullptr;
72  double ScaleScale = 1.0;
73  double ScaleOffset = 0.0;
74  int OpacityTableSize = 1024;
75  float* OpacityTable = nullptr;
76  double OpacityScale = 1.0;
77  double OpacityOffset = 0.0;
80 
81 private:
83  void operator=(const vtkOSPRayPointGaussianMapperNode&) = delete;
84 };
85 
86 #endif
void Render(bool prepass) override
Make ospray calls to render me.
std::vector< OSPVolumetricModel > VolumetricModels
links vtkActor and vtkMapper to OSPRay
record modification and/or execution time
Definition: vtkTimeStamp.h:35
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
static vtkOSPRayPolyDataMapperNode * New()
links vtkActor and vtkMapper to OSPRay
a simple class to control print indentation
Definition: vtkIndent.h:39
links vtkActor and vtkMapper to OSPRay
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.