VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Interaction
Widgets
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
40
VTK_ABI_NAMESPACE_BEGIN
41
class
vtkMagnifierRepresentation
;
42
43
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkMagnifierWidget
:
public
vtkAbstractWidget
44
{
45
public
:
49
static
vtkMagnifierWidget
*
New
();
50
52
55
vtkTypeMacro(
vtkMagnifierWidget
,
vtkAbstractWidget
);
56
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
58
64
void
SetRepresentation
(
vtkMagnifierRepresentation
* r)
65
{
66
this->
Superclass::SetWidgetRepresentation
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
67
}
68
72
vtkMagnifierRepresentation
*
GetMagnifierRepresentation
()
73
{
74
return
reinterpret_cast<
vtkMagnifierRepresentation
*
>
(this->
WidgetRep
);
75
}
76
80
void
CreateDefaultRepresentation
()
override
;
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
101
protected
:
102
vtkMagnifierWidget
();
103
~vtkMagnifierWidget
()
override
;
104
105
// Keypresses to change value
106
char
KeyPressIncreaseValue
;
107
char
KeyPressDecreaseValue
;
108
109
// process the registered events
110
static
void
MoveAction
(
vtkAbstractWidget
*);
111
static
void
CharAction
(
vtkAbstractWidget
*);
112
113
int
WidgetState
;
114
enum
WidgetStateType
115
{
116
Invisible
= 0,
117
Visible
118
};
119
120
private
:
121
vtkMagnifierWidget
(
const
vtkMagnifierWidget
&) =
delete
;
122
void
operator=(
const
vtkMagnifierWidget
&) =
delete
;
123
};
124
125
VTK_ABI_NAMESPACE_END
126
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:168
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkMagnifierRepresentation
represent a vtkBorderWidget
Definition
vtkMagnifierRepresentation.h:38
vtkMagnifierWidget
create a moving, magnifying renderer that can inspect the contents of an encapsulating renderer.
Definition
vtkMagnifierWidget.h:44
vtkMagnifierWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkMagnifierWidget::CharAction
static void CharAction(vtkAbstractWidget *)
vtkMagnifierWidget::WidgetStateType
WidgetStateType
Definition
vtkMagnifierWidget.h:115
vtkMagnifierWidget::Invisible
@ Invisible
Definition
vtkMagnifierWidget.h:116
vtkMagnifierWidget::Visible
@ Visible
Definition
vtkMagnifierWidget.h:117
vtkMagnifierWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for class.
vtkMagnifierWidget::WidgetState
int WidgetState
Definition
vtkMagnifierWidget.h:113
vtkMagnifierWidget::KeyPressIncreaseValue
char KeyPressIncreaseValue
Definition
vtkMagnifierWidget.h:106
vtkMagnifierWidget::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the this widget must activate the representation.
vtkMagnifierWidget::KeyPressDecreaseValue
char KeyPressDecreaseValue
Definition
vtkMagnifierWidget.h:107
vtkMagnifierWidget::~vtkMagnifierWidget
~vtkMagnifierWidget() override
vtkMagnifierWidget::vtkMagnifierWidget
vtkMagnifierWidget()
vtkMagnifierWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkMagnifierWidget::SetRepresentation
void SetRepresentation(vtkMagnifierRepresentation *r)
Specify an instance of vtkMagnifierRepresentation used to represent this widget in the scene.
Definition
vtkMagnifierWidget.h:64
vtkMagnifierWidget::GetMagnifierRepresentation
vtkMagnifierRepresentation * GetMagnifierRepresentation()
Return the representation as a vtkBorderRepresentation.
Definition
vtkMagnifierWidget.h:72
vtkMagnifierWidget::New
static vtkMagnifierWidget * New()
Method to instantiate class.
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:68
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0