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
28namespace osp
29{
30 struct TransferFunction;
31 struct Volume;
32}
33
34class VTKRENDERINGOSPRAY_EXPORT vtkOSPRayVolumeMapperNode :
36{
37public:
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
55protected:
58
59 //TODO: SetAndGetters?
62
65
66 osp::Volume* OSPRayVolume;
67 osp::TransferFunction* TransferFunction;
68 std::vector<float> TFVals;
69 std::vector<float> TFOVals;
70
71private:
72 vtkOSPRayVolumeMapperNode(const vtkOSPRayVolumeMapperNode&) VTK_DELETE_FUNCTION;
73 void operator=(const vtkOSPRayVolumeMapperNode&) VTK_DELETE_FUNCTION;
74};
75#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
links vtkVolumeMapper to OSPRay
static vtkOSPRayVolumeMapperNode * New()
void SetSamplingRate(double rate)
TODO: fix me should be controlled by VTK SampleDistance, otherwise should use macros and modify self.
virtual void Render(bool prepass)
Make ospray calls to render me.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
osp::TransferFunction * TransferFunction
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkViewNode specialized for vtkVolumeMappers