VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Interaction
Widgets
vtkAffineWidget.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
67
68
#ifndef vtkAffineWidget_h
69
#define vtkAffineWidget_h
70
71
#include "
vtkAbstractWidget.h
"
72
#include "vtkInteractionWidgetsModule.h"
// For export macro
73
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
74
75
VTK_ABI_NAMESPACE_BEGIN
76
class
vtkAffineRepresentation
;
77
78
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkAffineWidget
:
public
vtkAbstractWidget
79
{
80
public
:
84
static
vtkAffineWidget
*
New
();
85
87
90
vtkTypeMacro(
vtkAffineWidget
,
vtkAbstractWidget
);
91
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
93
99
void
SetRepresentation
(
vtkAffineRepresentation
* r)
100
{
101
this->
Superclass::SetWidgetRepresentation
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
102
}
103
107
vtkAffineRepresentation
*
GetAffineRepresentation
()
108
{
109
return
reinterpret_cast<
vtkAffineRepresentation
*
>
(this->
WidgetRep
);
110
}
111
115
void
CreateDefaultRepresentation
()
override
;
116
122
void
SetEnabled
(
int
)
override
;
123
124
protected
:
125
vtkAffineWidget
();
126
~vtkAffineWidget
()
override
;
127
128
// These are the callbacks for this widget
129
static
void
SelectAction
(
vtkAbstractWidget
*);
130
static
void
EndSelectAction
(
vtkAbstractWidget
*);
131
static
void
MoveAction
(
vtkAbstractWidget
*);
132
static
void
ModifyEventAction
(
vtkAbstractWidget
*);
133
134
// helper methods for cursor management
135
void
SetCursor
(
int
state)
override
;
136
137
// Manage the state of the widget
138
int
WidgetState
;
139
enum
WidgetStateType
140
{
141
Start
= 0,
142
Active
143
};
144
145
// Keep track whether key modifier key is pressed
146
int
ModifierActive
;
147
148
private
:
149
vtkAffineWidget
(
const
vtkAffineWidget
&) =
delete
;
150
void
operator=(
const
vtkAffineWidget
&) =
delete
;
151
};
152
153
VTK_ABI_NAMESPACE_END
154
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:197
vtkAffineRepresentation
abstract class for representing affine transformation widgets
Definition
vtkAffineRepresentation.h:39
vtkAffineWidget::ModifyEventAction
static void ModifyEventAction(vtkAbstractWidget *)
vtkAffineWidget::SetEnabled
void SetEnabled(int) override
Methods for activating this widget.
vtkAffineWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkAffineWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAffineWidget::SetCursor
void SetCursor(int state) override
vtkAffineWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkAffineWidget::WidgetState
int WidgetState
Definition
vtkAffineWidget.h:138
vtkAffineWidget::SetRepresentation
void SetRepresentation(vtkAffineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkAffineWidget.h:99
vtkAffineWidget::WidgetStateType
WidgetStateType
Definition
vtkAffineWidget.h:140
vtkAffineWidget::Start
@ Start
Definition
vtkAffineWidget.h:141
vtkAffineWidget::Active
@ Active
Definition
vtkAffineWidget.h:142
vtkAffineWidget::vtkAffineWidget
vtkAffineWidget()
vtkAffineWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class macros.
vtkAffineWidget::ModifierActive
int ModifierActive
Definition
vtkAffineWidget.h:146
vtkAffineWidget::~vtkAffineWidget
~vtkAffineWidget() override
vtkAffineWidget::GetAffineRepresentation
vtkAffineRepresentation * GetAffineRepresentation()
Return the representation as a vtkAffineRepresentation.
Definition
vtkAffineWidget.h:107
vtkAffineWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkAffineWidget::New
static vtkAffineWidget * New()
Instantiate this class.
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
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