VTK  9.2.6
vtkResliceCursorWidget.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkResliceCursorWidget.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=========================================================================*/
38
39#ifndef vtkResliceCursorWidget_h
40#define vtkResliceCursorWidget_h
41
42#include "vtkAbstractWidget.h"
43#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
44#include "vtkInteractionWidgetsModule.h" // For export macro
45
47
48class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorWidget : public vtkAbstractWidget
49{
50public:
55
57
61 void PrintSelf(ostream& os, vtkIndent indent) override;
63
73
81
86
92 void SetEnabled(int) override;
93
95
102
106 enum
107 {
112 };
113
117 virtual void ResetResliceCursor();
118
119protected:
122
123 // These are the callbacks for this widget
132
133 // helper methods for cursor management
134 void SetCursor(int state) override;
135
136 // Start Window Level
138
139 // Invoke the appropriate event based on state
141
142 // Manage the state of the widget
145 {
146 Start = 0,
148 };
149#if !defined(VTK_LEGACY_REMOVE)
150 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
152#endif
153
154 // Keep track whether key modifier key is pressed
157
158private:
160 void operator=(const vtkResliceCursorWidget&) = delete;
161};
162
163#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition vtkIndent.h:34
represent the vtkResliceCursorWidget
static vtkResliceCursorWidget * New()
Instantiate this class.
static void EndResizeThicknessAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class macros.
void SetCursor(int state) override
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void ResetResliceCursorAction(vtkAbstractWidget *)
virtual void ResetResliceCursor()
Reset the cursor back to its initial state.
void SetRepresentation(vtkResliceCursorRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
static void MoveAction(vtkAbstractWidget *)
void SetEnabled(int) override
Methods for activiating this widget.
static void EndSelectAction(vtkAbstractWidget *)
static void SelectAction(vtkAbstractWidget *)
static void ResizeThicknessAction(vtkAbstractWidget *)
vtkResliceCursorRepresentation * GetResliceCursorRepresentation()
Return the representation as a vtkResliceCursorRepresentation.
~vtkResliceCursorWidget() override
static void RotateAction(vtkAbstractWidget *)
static void TranslateAction(vtkAbstractWidget *)
abstract class defines interface between the widget and widget representation classes
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_DEPRECATED_IN_9_2_0(reason)