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 =========================================================================*/
29 #ifndef __vtkImageMapper_h
30 #define __vtkImageMapper_h
31 
32 #include "vtkMapper2D.h"
33 
34 class vtkWindow;
35 class vtkViewport;
36 class vtkActor2D;
37 class vtkImageData;
38 
40 {
41 public:
42  vtkTypeMacro(vtkImageMapper,vtkMapper2D);
43  static vtkImageMapper *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  unsigned long int GetMTime();
48 
50 
51  vtkSetMacro(ColorWindow, double);
52  vtkGetMacro(ColorWindow, double);
54 
56 
57  vtkSetMacro(ColorLevel, double);
58  vtkGetMacro(ColorLevel, double);
60 
62 
69  vtkSetMacro(ZSlice,int);
70  vtkGetMacro(ZSlice,int);
71  int GetWholeZMin();
72  int GetWholeZMax();
74 
76  void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
77 
79  virtual void RenderData(vtkViewport*, vtkImageData*, vtkActor2D* )=0;
80 
82 
83  double GetColorShift();
84  double GetColorScale();
86 
87  // Public for templated functions. * * Should remove this * *
88  int DisplayExtent[6];
89 
91 
92  virtual void SetInput(vtkImageData *input);
93  vtkImageData *GetInput();
95 
97 
100  vtkSetMacro(RenderToRectangle,int);
101  vtkGetMacro(RenderToRectangle,int);
102  vtkBooleanMacro(RenderToRectangle,int);
104 
106 
110  vtkSetMacro(UseCustomExtents,int);
111  vtkGetMacro(UseCustomExtents,int);
112  vtkBooleanMacro(UseCustomExtents,int);
114 
116 
119  vtkSetVectorMacro(CustomDisplayExtents,int,4);
120  vtkGetVectorMacro(CustomDisplayExtents,int,4);
122 
123 protected:
124  vtkImageMapper();
125  ~vtkImageMapper();
126 
127  double ColorWindow;
128  double ColorLevel;
129 
130  int PositionAdjustment[2];
131  int ZSlice;
133  int CustomDisplayExtents[4];
135 
136  virtual int FillInputPortInformation(int, vtkInformation*);
137 private:
138  vtkImageMapper(const vtkImageMapper&); // Not implemented.
139  void operator=(const vtkImageMapper&); // Not implemented.
140 };
141 
142 
143 
144 #endif
145 
146