VTK  9.6.1
vtkImageMapper.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20
21#ifndef vtkImageMapper_h
22#define vtkImageMapper_h
23
24#include "vtkMapper2D.h"
25#include "vtkRenderingCoreModule.h" // For export macro
26#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27
28VTK_ABI_NAMESPACE_BEGIN
29class vtkWindow;
30class vtkViewport;
31class vtkActor2D;
32class vtkImageData;
33
34class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkImageMapper : public vtkMapper2D
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
45
47
50 vtkSetMacro(ColorWindow, double);
51 vtkGetMacro(ColorWindow, double);
53
55
58 vtkSetMacro(ColorLevel, double);
59 vtkGetMacro(ColorLevel, double);
61
63
72 vtkSetMacro(ZSlice, int);
73 vtkGetMacro(ZSlice, int);
77
81 void RenderStart(vtkViewport* viewport, vtkActor2D* actor);
82
87
89
92 double GetColorShift();
93 double GetColorScale();
95
96 // Public for templated functions. * * Should remove this * *
98
100
103 virtual void SetInputData(vtkImageData* input);
106
108
117
119
128 vtkBooleanMacro(UseCustomExtents, vtkTypeBool);
130
132
137 vtkSetVectorMacro(CustomDisplayExtents, int, 4);
138 vtkGetVectorMacro(CustomDisplayExtents, int, 4);
140
141protected:
143 ~vtkImageMapper() override;
144
147
153
155
156private:
157 vtkImageMapper(const vtkImageMapper&) = delete;
158 void operator=(const vtkImageMapper&) = delete;
159};
160
161VTK_ABI_NAMESPACE_END
162#endif
a actor that draws 2D data
Definition vtkActor2D.h:36
topologically and geometrically regular array of data
int CustomDisplayExtents[4]
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
vtkTypeBool UseCustomExtents
int GetWholeZMin()
Set/Get the current slice number.
int PositionAdjustment[2]
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
vtkMapper2D()=default
abstract specification for Viewports
Definition vtkViewport.h:47
window superclass for vtkRenderWindow
Definition vtkWindow.h:29
int vtkTypeBool
Definition vtkABI.h:64
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:323
#define VTK_MARSHALAUTO