VTK  9.3.20231206
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;
44 
49 
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
a simple class to control print indentation
Definition: vtkIndent.h:108
links vtkActor and vtkMapper to OSPRay
links vtkActor and vtkMapper to OSPRay
static vtkOSPRayPointGaussianMapperNode * New()
std::vector< OSPVolumetricModel > VolumetricModels
void Render(bool prepass) override
Make ospray calls to render me.
bool GetNeedToRebuild(vtkOSPRayActorNode *)
Do frame need to be rebuilt.
void InternalRender(void *renderer, vtkOSPRayActorNode *aNode, vtkPolyData *poly, double opacity, std::string material)
void RenderVolumetricModels()
add precomputed ospray geometries to renderer model.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
links vtkActor and vtkMapper to OSPRay
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:180
record modification and/or execution time
Definition: vtkTimeStamp.h:44
@ string
Definition: vtkX3D.h:490