VTK  9.1.0
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:
49
54 void PrintSelf(ostream& os, vtkIndent indent) override;
56
60 virtual void Render();
61
63
66 virtual void AddItem(vtkAbstractWidget*);
68 virtual void RemoveAllItems();
70
72
78 vtkSetClampMacro(ProcessEvents, vtkTypeBool, 0, 1);
79 vtkGetMacro(ProcessEvents, vtkTypeBool);
80 vtkBooleanMacro(ProcessEvents, vtkTypeBool);
82
84
87 vtkSetMacro(Tolerance, double);
88 vtkGetMacro(Tolerance, double);
90
92
97 vtkGetObjectMacro(ResliceImageViewer, vtkResliceImageViewer);
99
104 virtual void Update();
105
106protected:
109
111
123 bool IsPositionOnReslicedPlane(double p[3]);
125
126 // Handles the events; centralized here for all widgets.
128 vtkObject* object, unsigned long event, void* clientdata, void* calldata);
129
132
133 // Handle the visibility of the measurements.
135
136 // Flag indicating if we should handle events.
137 // On by default.
139
140 // Tolerance for Point-in-plane computation
141 double Tolerance;
142
143private:
145 void operator=(const vtkResliceImageViewerMeasurements&) = delete;
146};
147
148#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 ordered lists of objects
Definition: vtkCollection.h:53
create a contour with a set of points
measure the distance between two points
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
abstract class for representing widget handles
a general widget for moving handles
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
Manage measurements on a resliced image.
bool IsWidgetOnReslicedPlane(vtkBiDimensionalWidget *w)
Check if a measurement widget is on the resliced plane.
bool IsWidgetOnReslicedPlane(vtkDistanceWidget *w)
Check if a measurement widget is on the resliced plane.
virtual void RemoveItem(vtkAbstractWidget *)
Add / remove a measurement widget.
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.
virtual void RemoveAllItems()
Add / remove a measurement widget.
bool IsWidgetOnReslicedPlane(vtkHandleWidget *w)
Check if a measurement widget is on the resliced plane.
virtual void Render()
Render the measurements.
bool IsWidgetOnReslicedPlane(vtkCaptionWidget *w)
Check if a measurement widget is on the resliced plane.
virtual void Update()
Update the measurements.
bool IsPointOnReslicedPlane(vtkHandleRepresentation *h)
Check if a measurement widget is on the resliced plane.
bool IsWidgetOnReslicedPlane(vtkContourWidget *w)
Check if a measurement widget is on the resliced plane.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK methods.
bool IsWidgetOnReslicedPlane(vtkSeedWidget *w)
Check if a measurement widget is on the resliced plane.
bool IsWidgetOnReslicedPlane(vtkAngleWidget *w)
Check if a measurement widget is on the resliced plane.
bool IsPositionOnReslicedPlane(double p[3])
Check if a measurement widget is on the resliced plane.
static vtkResliceImageViewerMeasurements * New()
Standard VTK methods.
Display an image along with a reslice cursor.
place multiple seed points
int vtkTypeBool
Definition: vtkABI.h:69