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 =========================================================================*/
35 #ifndef vtkResliceImageViewer_h
36 #define vtkResliceImageViewer_h
37 
38 #include "vtkInteractionImageModule.h" // For export macro
39 #include "vtkImageViewer2.h"
40 
42 class vtkResliceCursor;
43 class vtkScalarsToColors;
46 class vtkResliceImageViewerScrollCallback;
47 class vtkPlane;
48 
50 {
51 public:
52 
54 
57  void PrintSelf(ostream& os, vtkIndent indent);
59 
61  virtual void Render();
62 
64 
65  virtual void SetInputData(vtkImageData *in);
68 
70 
71  virtual void SetColorWindow(double s);
72  virtual void SetColorLevel(double s);
74 
76 
80 
82 
83  enum
84  {
85  RESLICE_AXIS_ALIGNED = 0,
86  RESLICE_OBLIQUE = 1
87  };
88  //ETX
90 
91  vtkGetMacro(ResliceMode, int);
92  virtual void SetResliceMode(int resliceMode);
94  { this->SetResliceMode(vtkResliceImageViewer::RESLICE_AXIS_ALIGNED); };
95  virtual void SetResliceModeToOblique()
96  { this->SetResliceMode(vtkResliceImageViewer::RESLICE_OBLIQUE); };
97 
99 
103 
105 
109 
111 
112  virtual void SetThickMode( int );
113  virtual int GetThickMode();
115 
117  virtual void Reset();
118 
120 
123 
125 
128 
130 
133 
135 
139  vtkSetMacro( SliceScrollOnMouseWheel, int );
140  vtkGetMacro( SliceScrollOnMouseWheel, int );
141  vtkBooleanMacro( SliceScrollOnMouseWheel, int );
143 
145  virtual void IncrementSlice( int n );
146 
147  enum { SliceChangedEvent = 1001 };
148 
149 protected:
152 
153  virtual void InstallPipeline();
154  virtual void UnInstallPipeline();
155  virtual void UpdateOrientation();
156  virtual void UpdateDisplayExtent();
157  virtual void UpdatePointPlacer();
158 
160 
165 
171  vtkResliceImageViewerScrollCallback * ScrollCallback;
172 
173 private:
174  vtkResliceImageViewer(const vtkResliceImageViewer&); // Not implemented.
175  void operator=(const vtkResliceImageViewer&); // Not implemented.
176 };
177 
178 #endif
vtkResliceImageViewer::SetResliceMode
virtual void SetResliceMode(int resliceMode)
vtkPlane
perform various plane computations
Definition: vtkPlane.h:37
vtkImageViewer2.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkResliceImageViewer::UpdateOrientation
virtual void UpdateOrientation()
vtkResliceImageViewer::SetColorLevel
virtual void SetColorLevel(double s)
vtkBoundedPlanePointPlacer
a placer that constrains a handle to a finite plane
Definition: vtkBoundedPlanePointPlacer.h:41
vtkResliceImageViewer::SetResliceCursor
void SetResliceCursor(vtkResliceCursor *rc)
vtkResliceImageViewer::ResliceCursorWidget
vtkResliceCursorWidget * ResliceCursorWidget
Definition: vtkResliceImageViewer.h:166
vtkInteractionImageModule.h
vtkResliceCursorWidget
represent a reslice cursor
Definition: vtkResliceCursorWidget.h:53
vtkResliceImageViewer::SetInputConnection
virtual void SetInputConnection(vtkAlgorithmOutput *input)
vtkResliceImageViewer::vtkResliceImageViewer
vtkResliceImageViewer()
vtkResliceImageViewer::ScrollCallback
vtkResliceImageViewerScrollCallback * ScrollCallback
Definition: vtkResliceImageViewer.h:171
vtkResliceCursor
Geometry for a reslice cursor.
Definition: vtkResliceCursor.h:46
vtkgl::s
GLdouble s
Definition: vtkgl.h:11594
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::n
GLclampd n
Definition: vtkgl.h:14370
vtkImageViewer2
Display a 2D image.
Definition: vtkImageViewer2.h:78
vtkResliceImageViewer::UpdateDisplayExtent
virtual void UpdateDisplayExtent()
vtkResliceImageViewer::IncrementSlice
virtual void IncrementSlice(int n)
vtkResliceImageViewer::UpdatePointPlacer
virtual void UpdatePointPlacer()
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkResliceImageViewer::Measurements
vtkResliceImageViewerMeasurements * Measurements
Definition: vtkResliceImageViewer.h:169
vtkResliceImageViewer::GetReslicePlane
vtkPlane * GetReslicePlane()
vtkResliceImageViewerMeasurements
Manage measurements on a resliced image.
Definition: vtkResliceImageViewerMeasurements.h:45
vtkResliceImageViewer::ResliceMode
int ResliceMode
Definition: vtkResliceImageViewer.h:168
vtkResliceImageViewer::RESLICE_OBLIQUE
@ RESLICE_OBLIQUE
Definition: vtkResliceImageViewer.h:86
VTKINTERACTIONIMAGE_EXPORT
#define VTKINTERACTIONIMAGE_EXPORT
Definition: vtkInteractionImageModule.h:15
vtkResliceImageViewer::SliceScrollOnMouseWheel
int SliceScrollOnMouseWheel
Definition: vtkResliceImageViewer.h:170
vtkResliceImageViewer::SetResliceModeToAxisAligned
virtual void SetResliceModeToAxisAligned()
Definition: vtkResliceImageViewer.h:93
vtkResliceImageViewer::SetLookupTable
virtual void SetLookupTable(vtkScalarsToColors *)
vtkResliceImageViewer::GetLookupTable
vtkScalarsToColors * GetLookupTable()
vtkResliceImageViewer::SetResliceModeToOblique
virtual void SetResliceModeToOblique()
Definition: vtkResliceImageViewer.h:95
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkResliceImageViewer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:63
vtkRenderWindowInteractor
platform-independent render window interaction including picking and frame rate control.
Definition: vtkRenderWindowInteractor.h:80
vtkResliceImageViewer::PointPlacer
vtkBoundedPlanePointPlacer * PointPlacer
Definition: vtkResliceImageViewer.h:167
vtkResliceImageViewer::InstallPipeline
virtual void InstallPipeline()
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkResliceImageViewer::~vtkResliceImageViewer
~vtkResliceImageViewer()
vtkResliceImageViewer::GetInterSliceSpacingInResliceMode
double GetInterSliceSpacingInResliceMode()
vtkResliceImageViewer::SetInputData
virtual void SetInputData(vtkImageData *in)
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:39
vtkResliceImageViewer::SetColorWindow
virtual void SetColorWindow(double s)
vtkResliceImageViewer::GetResliceCursor
vtkResliceCursor * GetResliceCursor()
vtkResliceImageViewer::New
static vtkResliceImageViewer * New()
vtkResliceImageViewer::RESLICE_AXIS_ALIGNED
@ RESLICE_AXIS_ALIGNED
Definition: vtkResliceImageViewer.h:85
vtkResliceImageViewer::Render
virtual void Render()
vtkResliceImageViewer::SetThickMode
virtual void SetThickMode(int)
vtkResliceImageViewer
Display an image along with a reslice cursor.
Definition: vtkResliceImageViewer.h:50
vtkResliceImageViewer::Reset
virtual void Reset()
vtkResliceImageViewer::GetThickMode
virtual int GetThickMode()
vtkResliceImageViewer::UnInstallPipeline
virtual void UnInstallPipeline()