VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Interaction
Widgets
vtkAxesTransformWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAxesTransformWidget.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
81
#ifndef vtkAxesTransformWidget_h
82
#define vtkAxesTransformWidget_h
83
84
#include "
vtkAbstractWidget.h
"
85
#include "vtkInteractionWidgetsModule.h"
// For export macro
86
87
class
vtkAxesTransformRepresentation
;
88
class
vtkHandleWidget
;
89
90
class
VTKINTERACTIONWIDGETS_EXPORT
vtkAxesTransformWidget
:
public
vtkAbstractWidget
91
{
92
public
:
96
static
vtkAxesTransformWidget
*
New
();
97
99
102
vtkTypeMacro(
vtkAxesTransformWidget
,
vtkAbstractWidget
);
103
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
105
110
void
SetEnabled
(
int
enabling)
override
;
111
117
void
SetRepresentation
(
vtkAxesTransformRepresentation
* r)
118
{
119
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
120
}
121
125
vtkAxesTransformRepresentation
*
GetLineRepresentation
()
126
{
127
return
reinterpret_cast<
vtkAxesTransformRepresentation
*
>
(this->
WidgetRep
);
128
}
129
133
void
CreateDefaultRepresentation
()
override
;
134
139
void
SetProcessEvents
(
vtkTypeBool
)
override
;
140
141
protected
:
142
vtkAxesTransformWidget
();
143
~vtkAxesTransformWidget
()
override
;
144
145
int
WidgetState
;
146
enum
_WidgetState
147
{
148
Start = 0,
149
Active
150
};
151
int
CurrentHandle
;
152
153
// These methods handle events
154
static
void
SelectAction
(
vtkAbstractWidget
*);
155
static
void
EndSelectAction
(
vtkAbstractWidget
*);
156
static
void
MoveAction
(
vtkAbstractWidget
*);
157
158
// The positioning handle widgets
159
vtkHandleWidget
*
OriginWidget
;
// first end point
160
vtkHandleWidget
*
SelectionWidget
;
// used when selecting any one of the axes
161
162
private
:
163
vtkAxesTransformWidget
(
const
vtkAxesTransformWidget
&) =
delete
;
164
void
operator=(
const
vtkAxesTransformWidget
&) =
delete
;
165
};
166
167
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:172
vtkAxesTransformRepresentation
represent the vtkAxesTransformWidget
Definition:
vtkAxesTransformRepresentation.h:50
vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
Definition:
vtkAxesTransformWidget.h:91
vtkAxesTransformWidget::~vtkAxesTransformWidget
~vtkAxesTransformWidget() override
vtkAxesTransformWidget::_WidgetState
_WidgetState
Definition:
vtkAxesTransformWidget.h:147
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:151
vtkAxesTransformWidget::WidgetState
int WidgetState
Definition:
vtkAxesTransformWidget.h:145
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:117
vtkAxesTransformWidget::GetLineRepresentation
vtkAxesTransformRepresentation * GetLineRepresentation()
Return the representation as a vtkAxesTransformRepresentation.
Definition:
vtkAxesTransformWidget.h:125
vtkAxesTransformWidget::OriginWidget
vtkHandleWidget * OriginWidget
Definition:
vtkAxesTransformWidget.h:159
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:160
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:73
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkAbstractWidget.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4