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 "vtkRenderingCoreModule.h" // For export macro
36 #include "vtkMapper2D.h"
37 
38 class vtkWindow;
39 class vtkViewport;
40 class vtkActor2D;
41 class vtkImageData;
42 
44 {
45 public:
46  vtkTypeMacro(vtkImageMapper, vtkMapper2D);
47  static vtkImageMapper *New();
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51  unsigned long int GetMTime();
52 
54 
55  vtkSetMacro(ColorWindow, double);
56  vtkGetMacro(ColorWindow, double);
58 
60 
61  vtkSetMacro(ColorLevel, double);
62  vtkGetMacro(ColorLevel, double);
64 
66 
73  vtkSetMacro(ZSlice, int);
74  vtkGetMacro(ZSlice, int);
75  int GetWholeZMin();
76  int GetWholeZMax();
78 
80  void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
81 
83  virtual void RenderData(vtkViewport*, vtkImageData*, vtkActor2D* )=0;
84 
86 
87  double GetColorShift();
88  double GetColorScale();
90 
91  // Public for templated functions. * * Should remove this * *
92  int DisplayExtent[6];
93 
95 
96  virtual void SetInputData(vtkImageData *input);
97  vtkImageData *GetInput();
99 
101 
104  vtkSetMacro(RenderToRectangle, int);
105  vtkGetMacro(RenderToRectangle, int);
106  vtkBooleanMacro(RenderToRectangle, int);
108 
110 
114  vtkSetMacro(UseCustomExtents, int);
115  vtkGetMacro(UseCustomExtents, int);
116  vtkBooleanMacro(UseCustomExtents, int);
118 
120 
123  vtkSetVectorMacro(CustomDisplayExtents, int, 4);
124  vtkGetVectorMacro(CustomDisplayExtents, int, 4);
126 
127 protected:
128  vtkImageMapper();
129  ~vtkImageMapper();
130 
131  double ColorWindow;
132  double ColorLevel;
133 
134  int PositionAdjustment[2];
135  int ZSlice;
137  int CustomDisplayExtents[4];
139 
140  virtual int FillInputPortInformation(int, vtkInformation*);
141 private:
142  vtkImageMapper(const vtkImageMapper&); // Not implemented.
143  void operator=(const vtkImageMapper&); // Not implemented.
144 };
145 
146 #endif
virtual unsigned long GetMTime()
Store vtkAlgorithm input/output information.
abstract specification for Viewports
Definition: vtkViewport.h:46
a actor that draws 2D data
Definition: vtkActor2D.h:44
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
void PrintSelf(ostream &os, vtkIndent indent)
virtual int FillInputPortInformation(int port, vtkInformation *info)
2D image display
#define VTKRENDERINGCORE_EXPORT
static vtkAlgorithm * New()
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:34