VTK
9.4.20250102
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkAxesTransformWidget.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
75
#ifndef vtkAxesTransformWidget_h
76
#define vtkAxesTransformWidget_h
77
78
#include "
vtkAbstractWidget.h
"
79
#include "vtkInteractionWidgetsModule.h"
// For export macro
80
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
81
82
VTK_ABI_NAMESPACE_BEGIN
83
class
vtkAxesTransformRepresentation
;
84
class
vtkHandleWidget
;
85
86
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkAxesTransformWidget
:
public
vtkAbstractWidget
87
{
88
public
:
92
static
vtkAxesTransformWidget
*
New
();
93
95
98
vtkTypeMacro(
vtkAxesTransformWidget
,
vtkAbstractWidget
);
99
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
101
106
void
SetEnabled
(
int
enabling)
override
;
107
113
void
SetRepresentation
(
vtkAxesTransformRepresentation
* r)
114
{
115
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
116
}
117
121
vtkAxesTransformRepresentation
*
GetLineRepresentation
()
122
{
123
return
reinterpret_cast<
vtkAxesTransformRepresentation
*
>
(this->
WidgetRep
);
124
}
125
129
void
CreateDefaultRepresentation
()
override
;
130
135
void
SetProcessEvents
(
vtkTypeBool
)
override
;
136
137
protected
:
138
vtkAxesTransformWidget
();
139
~vtkAxesTransformWidget
()
override
;
140
141
int
WidgetState
;
142
enum
WidgetStateType
143
{
144
Start = 0,
145
Active
146
};
147
148
int
CurrentHandle
;
149
150
// These methods handle events
151
static
void
SelectAction
(
vtkAbstractWidget
*);
152
static
void
EndSelectAction
(
vtkAbstractWidget
*);
153
static
void
MoveAction
(
vtkAbstractWidget
*);
154
155
// The positioning handle widgets
156
vtkHandleWidget
*
OriginWidget
;
// first end point
157
vtkHandleWidget
*
SelectionWidget
;
// used when selecting any one of the axes
158
159
private
:
160
vtkAxesTransformWidget
(
const
vtkAxesTransformWidget
&) =
delete
;
161
void
operator=(
const
vtkAxesTransformWidget
&) =
delete
;
162
};
163
164
VTK_ABI_NAMESPACE_END
165
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkAxesTransformRepresentation
represent the vtkAxesTransformWidget
Definition
vtkAxesTransformRepresentation.h:44
vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
Definition
vtkAxesTransformWidget.h:87
vtkAxesTransformWidget::~vtkAxesTransformWidget
~vtkAxesTransformWidget() override
vtkAxesTransformWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard vtkObject methods.
vtkAxesTransformWidget::New
static vtkAxesTransformWidget * New()
Instantiate the object.
vtkAxesTransformWidget::CurrentHandle
int CurrentHandle
Definition
vtkAxesTransformWidget.h:148
vtkAxesTransformWidget::WidgetState
int WidgetState
Definition
vtkAxesTransformWidget.h:141
vtkAxesTransformWidget::WidgetStateType
WidgetStateType
Definition
vtkAxesTransformWidget.h:143
vtkAxesTransformWidget::SetProcessEvents
void SetProcessEvents(vtkTypeBool) override
Methods to change the whether the widget responds to interaction.
vtkAxesTransformWidget::SetRepresentation
void SetRepresentation(vtkAxesTransformRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkAxesTransformWidget.h:113
vtkAxesTransformWidget::GetLineRepresentation
vtkAxesTransformRepresentation * GetLineRepresentation()
Return the representation as a vtkAxesTransformRepresentation.
Definition
vtkAxesTransformWidget.h:121
vtkAxesTransformWidget::OriginWidget
vtkHandleWidget * OriginWidget
Definition
vtkAxesTransformWidget.h:156
vtkAxesTransformWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkAxesTransformWidget::vtkAxesTransformWidget
vtkAxesTransformWidget()
vtkAxesTransformWidget::SelectionWidget
vtkHandleWidget * SelectionWidget
Definition
vtkAxesTransformWidget.h:157
vtkAxesTransformWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkAxesTransformWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkAxesTransformWidget::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkAxesTransformWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkHandleWidget
a general widget for moving handles
Definition
vtkHandleWidget.h:69
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
vtkTypeBool
int vtkTypeBool
Definition
vtkABI.h:64
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Thu Jan 2 2025 09:03:57 for VTK by
1.9.7