VTK  9.2.6
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=========================================================================*/
132#ifndef vtkImageMapper_h
133#define vtkImageMapper_h
134
135#include "vtkMapper2D.h"
136#include "vtkRenderingCoreModule.h" // For export macro
137
138class vtkWindow;
139class vtkViewport;
140class vtkActor2D;
141class vtkImageData;
142
143class VTKRENDERINGCORE_EXPORT vtkImageMapper : public vtkMapper2D
144{
145public:
148 void PrintSelf(ostream& os, vtkIndent indent) override;
149
154
156
159 vtkSetMacro(ColorWindow, double);
160 vtkGetMacro(ColorWindow, double);
162
164
167 vtkSetMacro(ColorLevel, double);
168 vtkGetMacro(ColorLevel, double);
170
172
181 vtkSetMacro(ZSlice, int);
182 vtkGetMacro(ZSlice, int);
186
190 void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
191
196
198
204
205 // Public for templated functions. * * Should remove this * *
206 int DisplayExtent[6];
207
209
212 virtual void SetInputData(vtkImageData* input);
215
217
222 vtkSetMacro(RenderToRectangle, vtkTypeBool);
223 vtkGetMacro(RenderToRectangle, vtkTypeBool);
224 vtkBooleanMacro(RenderToRectangle, vtkTypeBool);
226
228
235 vtkSetMacro(UseCustomExtents, vtkTypeBool);
236 vtkGetMacro(UseCustomExtents, vtkTypeBool);
237 vtkBooleanMacro(UseCustomExtents, vtkTypeBool);
239
241
246 vtkSetVectorMacro(CustomDisplayExtents, int, 4);
247 vtkGetVectorMacro(CustomDisplayExtents, int, 4);
249
250protected:
252 ~vtkImageMapper() override;
253
256
257 int PositionAdjustment[2];
260 int CustomDisplayExtents[4];
262
264
265private:
266 vtkImageMapper(const vtkImageMapper&) = delete;
267 void operator=(const vtkImageMapper&) = delete;
268};
269
270#endif
a actor that draws 2D data
Definition: vtkActor2D.h:155
topologically and geometrically regular array of data
Definition: vtkImageData.h:163
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:119
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:39
int vtkTypeBool
Definition: vtkABI.h:69
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287