VTK
9.0.3
Interaction
Widgets
vtkSplineWidget2.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkSplineWidget2.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
=========================================================================*/
26
#ifndef vtkSplineWidget2_h
27
#define vtkSplineWidget2_h
28
29
#include "
vtkAbstractWidget.h
"
30
#include "vtkInteractionWidgetsModule.h"
// For export macro
31
32
class
vtkSplineRepresentation
;
33
34
class
VTKINTERACTIONWIDGETS_EXPORT
vtkSplineWidget2
:
public
vtkAbstractWidget
35
{
36
public
:
37
static
vtkSplineWidget2
*
New
();
38
vtkTypeMacro(
vtkSplineWidget2
,
vtkAbstractWidget
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
40
46
void
SetRepresentation
(
vtkSplineRepresentation
* r)
47
{
48
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
49
}
50
55
void
SetEnabled
(
int
enabling)
override
;
56
61
void
CreateDefaultRepresentation
()
override
;
62
63
protected
:
64
vtkSplineWidget2
();
65
~vtkSplineWidget2
()
override
;
66
67
int
WidgetState
;
68
enum
_WidgetState
69
{
70
Start = 0,
71
Active
72
};
73
74
// These methods handle events
75
static
void
SelectAction
(
vtkAbstractWidget
*);
76
static
void
EndSelectAction
(
vtkAbstractWidget
*);
77
static
void
TranslateAction
(
vtkAbstractWidget
*);
78
static
void
ScaleAction
(
vtkAbstractWidget
*);
79
static
void
MoveAction
(
vtkAbstractWidget
*);
80
81
vtkCallbackCommand
*
KeyEventCallbackCommand
;
82
static
void
ProcessKeyEvents
(
vtkObject
*,
unsigned
long
,
void
*,
void
*);
83
84
private
:
85
vtkSplineWidget2
(
const
vtkSplineWidget2
&) =
delete
;
86
void
operator=(
const
vtkSplineWidget2
&) =
delete
;
87
};
88
89
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:54
vtkSplineRepresentation
representation for a spline.
Definition:
vtkSplineRepresentation.h:48
vtkSplineWidget2
widget for vtkSplineRepresentation.
Definition:
vtkSplineWidget2.h:35
vtkSplineWidget2::New
static vtkSplineWidget2 * New()
vtkSplineWidget2::WidgetState
int WidgetState
Definition:
vtkSplineWidget2.h:67
vtkSplineWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSplineWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
Create the default widget representation if one is not set.
vtkSplineWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkSplineWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkSplineWidget2::SetEnabled
void SetEnabled(int enabling) override
Override superclasses' SetEnabled() method because the line widget must enable its internal handle wi...
vtkSplineWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkSplineWidget2::_WidgetState
_WidgetState
Definition:
vtkSplineWidget2.h:69
vtkSplineWidget2::~vtkSplineWidget2
~vtkSplineWidget2() override
vtkSplineWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
vtkSplineWidget2::KeyEventCallbackCommand
vtkCallbackCommand * KeyEventCallbackCommand
Definition:
vtkSplineWidget2.h:81
vtkSplineWidget2::TranslateAction
static void TranslateAction(vtkAbstractWidget *)
vtkSplineWidget2::vtkSplineWidget2
vtkSplineWidget2()
vtkSplineWidget2::SetRepresentation
void SetRepresentation(vtkSplineRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition:
vtkSplineWidget2.h:46
vtkSplineWidget2::ProcessKeyEvents
static void ProcessKeyEvents(vtkObject *, unsigned long, void *, void *)
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:60
vtkAbstractWidget.h
Generated on Sat Nov 6 2021 08:35:25 for VTK by
1.9.1