VTK
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 "vtkRenderingOSPRayModule.h" // For export macro
28 #include "vtkVolumeMapperNode.h"
29 
30 class vtkFloatArray;
31 class vtkPoints;
33 class vtkVisibilitySort;
34 class vtkVolumeProperty;
35 class vtkRenderWindow;
36 class vtkAbstractArray;
37 class vtkDataSet;
38 
39 namespace osp
40 {
41  struct TransferFunction;
42  struct Volume;
43  struct vec3f;
44 }
45 
46 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayTetrahedraMapperNode : public vtkVolumeMapperNode
47 
48 {
49 public:
50  vtkTypeMacro(vtkOSPRayTetrahedraMapperNode,
53  void PrintSelf(ostream &os, vtkIndent indent) override;
54 
58  virtual void Render(bool prepass) override;
59 
60 protected:
63 
64  int NumColors;
65  double SamplingRate;
66 
69 
70  osp::Volume* OSPRayVolume;
71  osp::TransferFunction* TransferFunction;
72  std::vector<float> TFVals;
73  std::vector<float> TFOVals;
74 
75  std::vector<int> Cells;
76  std::vector<osp::vec3f> Vertices;
77  std::vector<float> Field;
78 
79 private:
81  void operator=(const vtkOSPRayTetrahedraMapperNode &) = delete;
82 };
83 
84 #endif
vtkViewNode specialized for vtkVolumeMappers
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
Abstract superclass for all arrays.
Abstract class that can sort cell data along a viewpoint.
record modification and/or execution time
Definition: vtkTimeStamp.h:35
dynamic, self-adjusting array of float
Definition: vtkFloatArray.h:41
a simple class to control print indentation
Definition: vtkIndent.h:39
static vtkVolumeMapperNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represents the common properties for rendering a volume.
dynamic, self-adjusting array of unsigned char
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:67
create a window for renderers to draw into
Unstructured grid volume renderer.
represent and manipulate 3D points
Definition: vtkPoints.h:39