VTK  9.3.1
vtkOSPRayPointGaussianMapperNode.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
10 #ifndef vtkOSPRayPointGaussianMapperNode_h
11 #define vtkOSPRayPointGaussianMapperNode_h
12 
14 #include "vtkRenderingRayTracingModule.h" // For export macro
15 
16 VTK_ABI_NAMESPACE_BEGIN
17 class vtkOSPRayActorNode;
18 class vtkPolyData;
19 
20 class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPointGaussianMapperNode
22 {
23 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
31  void Render(bool prepass) override;
32 
33 protected:
36 
37  void InternalRender(void* renderer, vtkOSPRayActorNode* aNode, vtkPolyData* poly, double opacity,
38  std::string material);
39 
40  std::vector<OSPVolume> OSPRayVolumes;
41  std::vector<OSPVolumetricModel> VolumetricModels;
42  std::vector<OSPInstance> Instances;
43  void ClearVolumetricModels();
44 
48  void RenderVolumetricModels();
49 
53  bool GetNeedToRebuild(vtkOSPRayActorNode*);
54 
58  int NumColors = 128;
59  int ScaleTableSize = 1024;
60  float* ScaleTable = nullptr;
61  double ScaleScale = 1.0;
62  double ScaleOffset = 0.0;
63  int OpacityTableSize = 1024;
64  float* OpacityTable = nullptr;
65  double OpacityScale = 1.0;
66  double OpacityOffset = 0.0;
69 
70 private:
72  void operator=(const vtkOSPRayPointGaussianMapperNode&) = delete;
73 };
74 
75 VTK_ABI_NAMESPACE_END
76 #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:24
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
static vtkOSPRayPolyDataMapperNode * New()
links vtkActor and vtkMapper to OSPRay
a simple class to control print indentation
Definition: vtkIndent.h:28
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.