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=========================================================================*/
21
22#ifndef vtkOSPRayPointGaussianMapperNode_h
23#define vtkOSPRayPointGaussianMapperNode_h
24
26#include "vtkRenderingRayTracingModule.h" // For export macro
27
29class vtkPolyData;
30
31class VTKRENDERINGRAYTRACING_EXPORT vtkOSPRayPointGaussianMapperNode
33{
34public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
38
42 void Render(bool prepass) override;
43
44protected:
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;
55
60
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
81private:
83 void operator=(const vtkOSPRayPointGaussianMapperNode&) = delete;
84};
85
86#endif
a simple class to control print indentation
Definition vtkIndent.h:34
links vtkActor and vtkMapper to OSPRay
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.
static vtkOSPRayPointGaussianMapperNode * New()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:85
record modification and/or execution time