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 
31 
32 namespace osp
33 {
34  struct TransferFunction;
35  struct Volume;
36  struct vec3f;
37 }
38 
39 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayTetrahedraMapperNode : public vtkVolumeMapperNode
40 
41 {
42 public:
43  vtkTypeMacro(vtkOSPRayTetrahedraMapperNode,
46  void PrintSelf(ostream &os, vtkIndent indent) override;
47 
51  virtual void Render(bool prepass) override;
52 
53 protected:
56 
57  int NumColors;
58  double SamplingRate;
59 
62 
63  osp::Volume* OSPRayVolume;
64  osp::TransferFunction* TransferFunction;
65  std::vector<float> TFVals;
66  std::vector<float> TFOVals;
67 
68  std::vector<int> Cells;
69  std::vector<osp::vec3f> Vertices;
70  std::vector<float> Field;
71 
73 private:
75  void operator=(const vtkOSPRayTetrahedraMapperNode &) = delete;
76 };
77 
78 #endif
temporal cache ospray structures to speed flipbooks
vtkViewNode specialized for vtkVolumeMappers
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.
virtual void Render(bool)
Makes calls to make self visible.
Definition: vtkViewNode.h:64
Unstructured grid volume renderer.