VTK  9.0.1
vtkOSPRayTetrahedraMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayTetrahedraMapperNode.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 vtkOSPRayTetrahedraMapperNode_h
25 #define vtkOSPRayTetrahedraMapperNode_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 vtkOSPRayTetrahedraMapperNode : public vtkVolumeMapperNode
34 
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  virtual void Render(bool prepass) override;
45 
46 protected:
49 
50  int NumColors;
51  double SamplingRate;
52 
55 
58  std::vector<float> TFVals;
59  std::vector<float> TFOVals;
60 
61  std::vector<int> Cells;
62  std::vector<osp::vec3f> Vertices;
63  std::vector<float> Field;
64 
66 
67 private:
69  void operator=(const vtkOSPRayTetrahedraMapperNode&) = delete;
70 };
71 
72 #endif
vtkViewNode specialized for vtkVolumeMappers
vtkOSPRayCache< vtkOSPRayCacheItemObject > * Cache
record modification and/or execution time
Definition: vtkTimeStamp.h:32
a simple class to control print indentation
Definition: vtkIndent.h:33
static vtkVolumeMapperNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define OSPTransferFunction
Definition: RTWrapper.h:27
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:63
Unstructured grid volume renderer.
#define OSPVolume
Definition: RTWrapper.h:26