VTK
vtkImageMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkImageMapper.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 =========================================================================*/
32 #ifndef __vtkImageMapper_h
33 #define __vtkImageMapper_h
34 
35 #include "vtkMapper2D.h"
36 
37 class vtkWindow;
38 class vtkViewport;
39 class vtkActor2D;
40 class vtkImageData;
41 
43 {
44 public:
45  vtkTypeMacro(vtkImageMapper,vtkMapper2D);
46  static vtkImageMapper *New();
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50  unsigned long int GetMTime();
51 
53 
54  vtkSetMacro(ColorWindow, double);
55  vtkGetMacro(ColorWindow, double);
57 
59 
60  vtkSetMacro(ColorLevel, double);
61  vtkGetMacro(ColorLevel, double);
63 
65 
72  vtkSetMacro(ZSlice,int);
73  vtkGetMacro(ZSlice,int);
74  int GetWholeZMin();
75  int GetWholeZMax();
77 
79  void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
80 
82  virtual void RenderData(vtkViewport*, vtkImageData*, vtkActor2D* )=0;
83 
85 
86  double GetColorShift();
87  double GetColorScale();
89 
90  // Public for templated functions. * * Should remove this * *
91  int DisplayExtent[6];
92 
94 
95  virtual void SetInput(vtkImageData *input);
96  vtkImageData *GetInput();
98 
100 
103  vtkSetMacro(RenderToRectangle,int);
104  vtkGetMacro(RenderToRectangle,int);
105  vtkBooleanMacro(RenderToRectangle,int);
107 
109 
113  vtkSetMacro(UseCustomExtents,int);
114  vtkGetMacro(UseCustomExtents,int);
115  vtkBooleanMacro(UseCustomExtents,int);
117 
119 
122  vtkSetVectorMacro(CustomDisplayExtents,int,4);
123  vtkGetVectorMacro(CustomDisplayExtents,int,4);
125 
126 protected:
127  vtkImageMapper();
128  ~vtkImageMapper();
129 
130  double ColorWindow;
131  double ColorLevel;
132 
133  int PositionAdjustment[2];
134  int ZSlice;
136  int CustomDisplayExtents[4];
138 
139  virtual int FillInputPortInformation(int, vtkInformation*);
140 private:
141  vtkImageMapper(const vtkImageMapper&); // Not implemented.
142  void operator=(const vtkImageMapper&); // Not implemented.
143 };
144 
145 
146 
147 #endif
148 
149