VTK  9.5.2
vtkMagnifierWidget.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
32
33#ifndef vtkMagnifierWidget_h
34#define vtkMagnifierWidget_h
35
36#include "vtkAbstractWidget.h"
37#include "vtkInteractionWidgetsModule.h" // For export macro
38#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39
40VTK_ABI_NAMESPACE_BEGIN
42
43class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkMagnifierWidget : public vtkAbstractWidget
44{
45public:
50
52
56 void PrintSelf(ostream& os, vtkIndent indent) override;
58
68
76
81
86 void SetEnabled(int enabling) override;
87
89
95 vtkSetMacro(KeyPressIncreaseValue, char);
96 vtkGetMacro(KeyPressIncreaseValue, char);
97 vtkSetMacro(KeyPressDecreaseValue, char);
98 vtkGetMacro(KeyPressDecreaseValue, char);
100
101protected:
104
105 // Keypresses to change value
108
109 // process the registered events
112
119
120private:
121 vtkMagnifierWidget(const vtkMagnifierWidget&) = delete;
122 void operator=(const vtkMagnifierWidget&) = delete;
123};
124
125VTK_ABI_NAMESPACE_END
126#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
a simple class to control print indentation
Definition vtkIndent.h:29
represent a vtkBorderWidget
create a moving, magnifying renderer that can inspect the contents of an encapsulating renderer.
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
static void CharAction(vtkAbstractWidget *)
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the this widget must activate the representation.
~vtkMagnifierWidget() override
static void MoveAction(vtkAbstractWidget *)
void SetRepresentation(vtkMagnifierRepresentation *r)
Specify an instance of vtkMagnifierRepresentation used to represent this widget in the scene.
vtkMagnifierRepresentation * GetMagnifierRepresentation()
Return the representation as a vtkBorderRepresentation.
static vtkMagnifierWidget * New()
Method to instantiate class.
abstract class defines interface between the widget and widget representation classes
#define VTK_MARSHALAUTO