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 #include "ospray/ospray.h" // for ospray handle types
31 
33 
34 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayTetrahedraMapperNode : public vtkVolumeMapperNode
35 
36 {
37 public:
38  vtkTypeMacro(vtkOSPRayTetrahedraMapperNode,
41  void PrintSelf(ostream &os, vtkIndent indent) override;
42 
46  virtual void Render(bool prepass) override;
47 
48 protected:
51 
52  int NumColors;
53  double SamplingRate;
54 
57 
58  OSPVolume OSPRayVolume;
59  OSPTransferFunction TransferFunction;
60  std::vector<float> TFVals;
61  std::vector<float> TFOVals;
62 
63  std::vector<int> Cells;
64  std::vector<osp::vec3f> Vertices;
65  std::vector<float> Field;
66 
68 private:
70  void operator=(const vtkOSPRayTetrahedraMapperNode &) = delete;
71 };
72 
73 #endif
temporal cache ospray structures to speed flipbooks
vtkViewNode specialized for vtkVolumeMappers
record modification and/or execution time
Definition: vtkTimeStamp.h:35
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.
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:67
Unstructured grid volume renderer.