VTK
9.4.20250203
Main Page
Related Pages
Modules
Namespaces
Classes
Files
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
71
#ifndef vtkAffineWidget_h
72
#define vtkAffineWidget_h
73
74
#include "
vtkAbstractWidget.h
"
75
#include "vtkInteractionWidgetsModule.h"
// For export macro
76
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
77
78
VTK_ABI_NAMESPACE_BEGIN
79
class
vtkAffineRepresentation
;
80
81
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkAffineWidget
:
public
vtkAbstractWidget
82
{
83
public
:
87
static
vtkAffineWidget
*
New
();
88
90
93
vtkTypeMacro(
vtkAffineWidget
,
vtkAbstractWidget
);
94
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
96
102
void
SetRepresentation
(
vtkAffineRepresentation
* r)
103
{
104
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
105
}
106
110
vtkAffineRepresentation
*
GetAffineRepresentation
()
111
{
112
return
reinterpret_cast<
vtkAffineRepresentation
*
>
(this->
WidgetRep
);
113
}
114
118
void
CreateDefaultRepresentation
()
override
;
119
125
void
SetEnabled
(
int
)
override
;
126
127
protected
:
128
vtkAffineWidget
();
129
~vtkAffineWidget
()
override
;
130
131
// These are the callbacks for this widget
132
static
void
SelectAction
(
vtkAbstractWidget
*);
133
static
void
EndSelectAction
(
vtkAbstractWidget
*);
134
static
void
MoveAction
(
vtkAbstractWidget
*);
135
static
void
ModifyEventAction
(
vtkAbstractWidget
*);
136
137
// helper methods for cursor management
138
void
SetCursor
(
int
state)
override
;
139
140
// Manage the state of the widget
141
int
WidgetState
;
142
enum
WidgetStateType
143
{
144
Start = 0,
145
Active
146
};
147
148
// Keep track whether key modifier key is pressed
149
int
ModifierActive
;
150
151
private
:
152
vtkAffineWidget
(
const
vtkAffineWidget
&) =
delete
;
153
void
operator=(
const
vtkAffineWidget
&) =
delete
;
154
};
155
156
VTK_ABI_NAMESPACE_END
157
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkAffineRepresentation
abstract class for representing affine transformation widgets
Definition
vtkAffineRepresentation.h:39
vtkAffineWidget
perform affine transformations
Definition
vtkAffineWidget.h:82
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:141
vtkAffineWidget::SetRepresentation
void SetRepresentation(vtkAffineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkAffineWidget.h:102
vtkAffineWidget::WidgetStateType
WidgetStateType
Definition
vtkAffineWidget.h:143
vtkAffineWidget::vtkAffineWidget
vtkAffineWidget()
vtkAffineWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard VTK class macros.
vtkAffineWidget::ModifierActive
int ModifierActive
Definition
vtkAffineWidget.h:149
vtkAffineWidget::~vtkAffineWidget
~vtkAffineWidget() override
vtkAffineWidget::GetAffineRepresentation
vtkAffineRepresentation * GetAffineRepresentation()
Return the representation as a vtkAffineRepresentation.
Definition
vtkAffineWidget.h:110
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:50
Generated on Mon Feb 3 2025 10:55:41 for VTK by
1.9.7