VTK
vtkOSPRayVolumeMapperNode.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOSPRayVolumeMapperNode.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 =========================================================================*/
22 #ifndef vtkOSPRayVolumeMapperNode_h
23 #define vtkOSPRayVolumeMapperNode_h
24 
25 #include "vtkRenderingOSPRayModule.h" // For export macro
26 #include "vtkVolumeMapperNode.h"
27 
28 namespace osp
29 {
30  struct TransferFunction;
31  struct Volume;
32 }
33 
34 class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayVolumeMapperNode :
35  public vtkVolumeMapperNode
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
45  virtual void Render(bool prepass);
46 
52  void SetSamplingRate(double rate) { this->SamplingRate = rate; }
53  double GetSamplingRate() { return this->SamplingRate; }
54 
55 protected:
58 
59  //TODO: SetAndGetters?
60  int NumColors;
61  double SamplingRate;
62 
65 
66  osp::Volume* OSPRayVolume;
67  osp::TransferFunction* TransferFunction;
68  std::vector<float> TFVals;
69  std::vector<float> TFOVals;
70 
71 private:
72  vtkOSPRayVolumeMapperNode(const vtkOSPRayVolumeMapperNode&) VTK_DELETE_FUNCTION;
73  void operator=(const vtkOSPRayVolumeMapperNode&) VTK_DELETE_FUNCTION;
74 };
75 #endif
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
links vtkVolumeMapper to OSPRay
static vtkVolumeMapperNode * New()
void PrintSelf(ostream &os, vtkIndent indent)
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
osp::TransferFunction * TransferFunction
void SetSamplingRate(double rate)
TODO: fix me should be controlled by VTK SampleDistance, otherwise should use macros and modify self...