VTK  9.5.2
vtkResliceCursorWidget.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
29
30#ifndef vtkResliceCursorWidget_h
31#define vtkResliceCursorWidget_h
32
33#include "vtkAbstractWidget.h"
34#include "vtkInteractionWidgetsModule.h" // For export macro
35#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
36
37VTK_ABI_NAMESPACE_BEGIN
39
40class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkResliceCursorWidget : public vtkAbstractWidget
41{
42public:
47
49
53 void PrintSelf(ostream& os, vtkIndent indent) override;
55
65
73
78
84 void SetEnabled(int) override;
85
87
92 vtkBooleanMacro(ManageWindowLevel, vtkTypeBool);
94
98 enum
99 {
104 };
105
109 virtual void ResetResliceCursor();
110
111protected:
114
115 // These are the callbacks for this widget
124
125 // helper methods for cursor management
126 void SetCursor(int state) override;
127
128 // Start Window Level
130
131 // Invoke the appropriate event based on state
133
134 // Manage the state of the widget
137 {
138 Start = 0,
140 };
141
142 // Keep track whether key modifier key is pressed
145
146private:
148 void operator=(const vtkResliceCursorWidget&) = delete;
149};
150
151VTK_ABI_NAMESPACE_END
152#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition vtkIndent.h:29
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 activating 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:64
#define VTK_MARSHALAUTO