VTK
vtkResliceImageViewer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkResliceImageViewer.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 vtkResliceImageViewer_h
34#define vtkResliceImageViewer_h
35
36#include "vtkInteractionImageModule.h" // For export macro
37#include "vtkImageViewer2.h"
38
44class vtkResliceImageViewerScrollCallback;
45class vtkPlane;
46
47class VTKINTERACTIONIMAGE_EXPORT vtkResliceImageViewer : public vtkImageViewer2
48{
49public:
50
52
57 void PrintSelf(ostream& os, vtkIndent indent);
59
63 virtual void Render();
64
66
69 virtual void SetInputData(vtkImageData *in);
72
74
77 virtual void SetColorWindow(double s);
78 virtual void SetColorLevel(double s);
80
82
86 vtkGetObjectMacro(ResliceCursorWidget,vtkResliceCursorWidget);
88
93 enum
94 {
95 RESLICE_AXIS_ALIGNED = 0,
96 RESLICE_OBLIQUE = 1
97 };
98
99 vtkGetMacro(ResliceMode, int);
100 virtual void SetResliceMode(int resliceMode);
102 { this->SetResliceMode(vtkResliceImageViewer::RESLICE_AXIS_ALIGNED); };
104 { this->SetResliceMode(vtkResliceImageViewer::RESLICE_OBLIQUE); };
105
107
113
115
121
123
126 virtual void SetThickMode( int );
127 virtual int GetThickMode();
129
133 virtual void Reset();
134
136
139 vtkGetObjectMacro( PointPlacer, vtkBoundedPlanePointPlacer );
141
143
146 vtkGetObjectMacro( Measurements, vtkResliceImageViewerMeasurements );
148
150
153 vtkGetObjectMacro( Interactor, vtkRenderWindowInteractor );
155
157
163 vtkSetMacro( SliceScrollOnMouseWheel, int );
164 vtkGetMacro( SliceScrollOnMouseWheel, int );
165 vtkBooleanMacro( SliceScrollOnMouseWheel, int );
167
171 virtual void IncrementSlice( int n );
172
173 enum { SliceChangedEvent = 1001 };
174
175protected:
178
179 virtual void InstallPipeline();
180 virtual void UnInstallPipeline();
181 virtual void UpdateOrientation();
182 virtual void UpdateDisplayExtent();
183 virtual void UpdatePointPlacer();
184
186
193
199 vtkResliceImageViewerScrollCallback * ScrollCallback;
200
201private:
202 vtkResliceImageViewer(const vtkResliceImageViewer&) VTK_DELETE_FUNCTION;
203 void operator=(const vtkResliceImageViewer&) VTK_DELETE_FUNCTION;
204};
205
206#endif
Proxy object to connect input/output ports.
a placer that constrains a handle to a finite plane
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
Display a 2D image.
a simple class to control print indentation
Definition: vtkIndent.h:40
perform various plane computations
Definition: vtkPlane.h:38
platform-independent render window interaction including picking and frame rate control.
represent a reslice cursor
Geometry for a reslice cursor.
Manage measurements on a resliced image.
Display an image along with a reslice cursor.
virtual void UpdateOrientation()
static vtkResliceImageViewer * New()
Standard VTK methods.
vtkResliceCursorWidget * ResliceCursorWidget
virtual void SetInputConnection(vtkAlgorithmOutput *input)
virtual void SetColorWindow(double s)
Set window and level for mapping pixels to colors.
virtual void SetColorLevel(double s)
virtual void SetResliceModeToAxisAligned()
virtual int GetThickMode()
virtual void SetResliceModeToOblique()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPlane * GetReslicePlane()
Convenience methods to get the reslice plane and the normalized spacing between slices in reslice mod...
vtkResliceImageViewerScrollCallback * ScrollCallback
virtual void UnInstallPipeline()
vtkBoundedPlanePointPlacer * PointPlacer
double GetInterSliceSpacingInResliceMode()
virtual void Reset()
Reset all views back to initial state.
void SetResliceCursor(vtkResliceCursor *rc)
vtkScalarsToColors * GetLookupTable()
virtual void SetLookupTable(vtkScalarsToColors *)
Set the lookup table.
virtual void UpdateDisplayExtent()
Update the display extent manually so that the proper slice for the given orientation is displayed.
virtual void SetInputData(vtkImageData *in)
Set/Get the input image to the viewer.
vtkResliceCursor * GetResliceCursor()
Set/Get the reslice cursor.
virtual void UpdatePointPlacer()
virtual void Render()
Render the resulting image.
virtual void InstallPipeline()
vtkResliceImageViewerMeasurements * Measurements
virtual void SetThickMode(int)
Switch to / from thick mode.
virtual void SetResliceMode(int resliceMode)
virtual void IncrementSlice(int n)
Increment/Decrement slice by 'n' slices.
Superclass for mapping scalar values to colors.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.