VTK
vtkUnstructuredGridVolumeMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridVolumeMapper.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 =========================================================================*/
27 #ifndef __vtkUnstructuredGridVolumeMapper_h
28 #define __vtkUnstructuredGridVolumeMapper_h
29 
31 
32 class vtkRenderer;
33 class vtkVolume;
35 class vtkWindow;
36 
37 
39 {
40 public:
42  void PrintSelf( ostream& os, vtkIndent indent );
43 
45 
46  virtual void SetInput( vtkUnstructuredGrid * );
47  virtual void SetInput( vtkDataSet * );
48  vtkUnstructuredGrid *GetInput();
50 
51  vtkSetMacro( BlendMode, int );
52  void SetBlendModeToComposite()
53  { this->SetBlendMode( vtkUnstructuredGridVolumeMapper::COMPOSITE_BLEND ); }
54  void SetBlendModeToMaximumIntensity()
56  vtkGetMacro( BlendMode, int );
57 
58 
59 //BTX
60 
63  virtual void Render(vtkRenderer *ren, vtkVolume *vol)=0;
64 
69  virtual void ReleaseGraphicsResources(vtkWindow *) {};
70 
71  enum
72  {
74  MAXIMUM_INTENSITY_BLEND
75  };
76 
77 //ETX
78 
79 protected:
82 
83  int BlendMode;
84 
85  virtual int FillInputPortInformation(int, vtkInformation*);
86 
87 private:
89  void operator=(const vtkUnstructuredGridVolumeMapper&); // Not implemented.
90 };
91 
92 
93 #endif
94 
95