VTK  9.1.0
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=========================================================================*/
39#ifndef vtkImageMapper_h
40#define vtkImageMapper_h
41
42#include "vtkMapper2D.h"
43#include "vtkRenderingCoreModule.h" // For export macro
44
45class vtkWindow;
46class vtkViewport;
47class vtkActor2D;
48class vtkImageData;
49
50class VTKRENDERINGCORE_EXPORT vtkImageMapper : public vtkMapper2D
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
61
63
66 vtkSetMacro(ColorWindow, double);
67 vtkGetMacro(ColorWindow, double);
69
71
74 vtkSetMacro(ColorLevel, double);
75 vtkGetMacro(ColorLevel, double);
77
79
88 vtkSetMacro(ZSlice, int);
89 vtkGetMacro(ZSlice, int);
93
97 void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
98
103
105
111
112 // Public for templated functions. * * Should remove this * *
113 int DisplayExtent[6];
114
116
119 virtual void SetInputData(vtkImageData* input);
122
124
129 vtkSetMacro(RenderToRectangle, vtkTypeBool);
130 vtkGetMacro(RenderToRectangle, vtkTypeBool);
131 vtkBooleanMacro(RenderToRectangle, vtkTypeBool);
133
135
142 vtkSetMacro(UseCustomExtents, vtkTypeBool);
143 vtkGetMacro(UseCustomExtents, vtkTypeBool);
144 vtkBooleanMacro(UseCustomExtents, vtkTypeBool);
146
148
153 vtkSetVectorMacro(CustomDisplayExtents, int, 4);
154 vtkGetVectorMacro(CustomDisplayExtents, int, 4);
156
157protected:
159 ~vtkImageMapper() override;
160
163
164 int PositionAdjustment[2];
167 int CustomDisplayExtents[4];
169
171
172private:
173 vtkImageMapper(const vtkImageMapper&) = delete;
174 void operator=(const vtkImageMapper&) = delete;
175};
176
177#endif
a actor that draws 2D data
Definition: vtkActor2D.h:49
topologically and geometrically regular array of data
Definition: vtkImageData.h:57
2D image display
double GetColorShift()
Methods used internally for performing the Window/Level mapping.
virtual void RenderData(vtkViewport *, vtkImageData *, vtkActor2D *)
Function called by Render to actually draw the image to to the screen.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
double GetColorScale()
Methods used internally for performing the Window/Level mapping.
void RenderStart(vtkViewport *viewport, vtkActor2D *actor)
Draw the image to the screen.
vtkTypeBool RenderToRectangle
~vtkImageMapper() override
int GetWholeZMax()
Set/Get the current slice number.
vtkImageData * GetInput()
Set the Input of a filter.
virtual void SetInputData(vtkImageData *input)
Set the Input of a filter.
static vtkImageMapper * New()
vtkMTimeType GetMTime() override
Override Modifiedtime as we have added a lookuptable.
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
vtkTypeBool UseCustomExtents
int GetWholeZMin()
Set/Get the current slice number.
a simple class to control print indentation
Definition: vtkIndent.h:43
Store vtkAlgorithm input/output information.
abstract class specifies interface for objects which render 2D actors
Definition: vtkMapper2D.h:36
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:45
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287