VTK
vtkResliceImageViewerMeasurements.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkResliceImageViewerMeasurements.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=========================================================================*/
26#ifndef vtkResliceImageViewerMeasurements_h
27#define vtkResliceImageViewerMeasurements_h
28
29#include "vtkInteractionImageModule.h" // For export macro
30#include "vtkObject.h"
31
35class vtkCollection;
37class vtkAngleWidget;
40class vtkHandleWidget;
43class vtkSeedWidget;
44
45class VTKINTERACTIONIMAGE_EXPORT vtkResliceImageViewerMeasurements : public vtkObject
46{
47public:
48
50
55 void PrintSelf(ostream& os, vtkIndent indent);
57
61 virtual void Render();
62
64
67 virtual void AddItem(vtkAbstractWidget *);
69 virtual void RemoveAllItems();
71
73
79 vtkSetClampMacro(ProcessEvents, int, 0, 1);
80 vtkGetMacro(ProcessEvents, int);
81 vtkBooleanMacro(ProcessEvents, int);
83
85
88 vtkSetMacro( Tolerance, double );
89 vtkGetMacro( Tolerance, double );
91
93
98 vtkGetObjectMacro( ResliceImageViewer, vtkResliceImageViewer );
100
105 virtual void Update();
106
107protected:
110
112
124 bool IsPositionOnReslicedPlane( double p[3] );
126
127 // Handles the events; centralized here for all widgets.
128 static void ProcessEventsHandler(vtkObject* object, unsigned long event,
129 void* clientdata, void* calldata);
130
133
134 // Handle the visibility of the measurements.
136
137 // Flag indicating if we should handle events.
138 // On by default.
140
141 // Tolerance for Point-in-plane computation
142 double Tolerance;
143
144private:
146 void operator=(const vtkResliceImageViewerMeasurements&) VTK_DELETE_FUNCTION;
147};
148
149#endif
define the API for widget / widget representation
measure the angle between two rays (defined by three points)
measure the bi-dimensional lengths of an object
supports function callbacks
widget for placing a caption (text plus leader)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
create a contour with a set of points
measure the distance between two points
abstract class for representing widget handles
a general widget for moving handles
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
Manage measurements on a resliced image.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
bool IsWidgetOnReslicedPlane(vtkBiDimensionalWidget *w)
bool IsWidgetOnReslicedPlane(vtkDistanceWidget *w)
virtual void RemoveItem(vtkAbstractWidget *)
virtual void SetResliceImageViewer(vtkResliceImageViewer *)
Set the reslice image viewer.
static void ProcessEventsHandler(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
bool IsItemOnReslicedPlane(vtkAbstractWidget *w)
Check if a measurement widget is on the resliced plane.
virtual void AddItem(vtkAbstractWidget *)
Add / remove a measurement widget.
bool IsWidgetOnReslicedPlane(vtkHandleWidget *w)
virtual void Render()
Render the measurements.
bool IsWidgetOnReslicedPlane(vtkCaptionWidget *w)
virtual void Update()
Update the measurements.
bool IsPointOnReslicedPlane(vtkHandleRepresentation *h)
bool IsWidgetOnReslicedPlane(vtkContourWidget *w)
bool IsWidgetOnReslicedPlane(vtkSeedWidget *w)
bool IsWidgetOnReslicedPlane(vtkAngleWidget *w)
bool IsPositionOnReslicedPlane(double p[3])
static vtkResliceImageViewerMeasurements * New()
Standard VTK methods.
Display an image along with a reslice cursor.
place multiple seed points
Definition: vtkSeedWidget.h:84
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.