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 =========================================================================*/
33 #ifndef vtkImageMapper_h
34 #define vtkImageMapper_h
35 
36 #include "vtkRenderingCoreModule.h" // For export macro
37 #include "vtkMapper2D.h"
38 
39 class vtkWindow;
40 class vtkViewport;
41 class vtkActor2D;
42 class vtkImageData;
43 
44 class VTKRENDERINGCORE_EXPORT vtkImageMapper : public vtkMapper2D
45 {
46 public:
47  vtkTypeMacro(vtkImageMapper, vtkMapper2D);
48  static vtkImageMapper *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
55 
57 
60  vtkSetMacro(ColorWindow, double);
61  vtkGetMacro(ColorWindow, double);
63 
65 
68  vtkSetMacro(ColorLevel, double);
69  vtkGetMacro(ColorLevel, double);
71 
73 
82  vtkSetMacro(ZSlice, int);
83  vtkGetMacro(ZSlice, int);
84  int GetWholeZMin();
85  int GetWholeZMax();
87 
91  void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
92 
97 
99 
102  double GetColorShift();
103  double GetColorScale();
105 
106  // Public for templated functions. * * Should remove this * *
107  int DisplayExtent[6];
108 
110 
113  virtual void SetInputData(vtkImageData *input);
116 
118 
123  vtkSetMacro(RenderToRectangle, int);
124  vtkGetMacro(RenderToRectangle, int);
125  vtkBooleanMacro(RenderToRectangle, int);
127 
129 
136  vtkSetMacro(UseCustomExtents, int);
137  vtkGetMacro(UseCustomExtents, int);
138  vtkBooleanMacro(UseCustomExtents, int);
140 
142 
147  vtkSetVectorMacro(CustomDisplayExtents, int, 4);
148  vtkGetVectorMacro(CustomDisplayExtents, int, 4);
150 
151 protected:
154 
155  double ColorWindow;
156  double ColorLevel;
157 
158  int PositionAdjustment[2];
159  int ZSlice;
161  int CustomDisplayExtents[4];
163 
165 private:
166  vtkImageMapper(const vtkImageMapper&) VTK_DELETE_FUNCTION;
167  void operator=(const vtkImageMapper&) VTK_DELETE_FUNCTION;
168 };
169 
170 #endif
vtkImageMapper::RenderStart
void RenderStart(vtkViewport *viewport, vtkActor2D *actor)
Draw the image to the screen.
vtkImageMapper::New
static vtkImageMapper * New()
vtkImageMapper::GetWholeZMax
int GetWholeZMax()
vtkImageMapper::GetColorScale
double GetColorScale()
vtkImageMapper::RenderToRectangle
int RenderToRectangle
Definition: vtkImageMapper.h:162
vtkImageMapper::vtkImageMapper
vtkImageMapper()
vtkImageMapper::GetWholeZMin
int GetWholeZMin()
vtkImageMapper
2D image display
Definition: vtkImageMapper.h:45
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkImageMapper::GetMTime
vtkMTimeType GetMTime()
Override Modifiedtime as we have added a lookuptable.
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkImageMapper::RenderData
virtual void RenderData(vtkViewport *, vtkImageData *, vtkActor2D *)=0
Function called by Render to actually draw the image to to the screen.
vtkImageMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageMapper::ColorLevel
double ColorLevel
Definition: vtkImageMapper.h:156
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMapper2D.h
vtkImageMapper::GetInput
vtkImageData * GetInput()
vtkImageMapper::~vtkImageMapper
~vtkImageMapper()
vtkMapper2D
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:36
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkImageMapper::SetInputData
virtual void SetInputData(vtkImageData *input)
Set the Input of a filter.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkActor2D
a actor that draws 2D data
Definition: vtkActor2D.h:46
vtkImageMapper::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
Fill the input port information objects for this algorithm.
vtkImageMapper::UseCustomExtents
int UseCustomExtents
Definition: vtkImageMapper.h:160
vtkImageMapper::ZSlice
int ZSlice
Definition: vtkImageMapper.h:159
vtkImageMapper::GetColorShift
double GetColorShift()
Methods used internally for performing the Window/Level mapping.
vtkImageMapper::ColorWindow
double ColorWindow
Definition: vtkImageMapper.h:155