VTK
dox
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
=========================================================================*/
29
#ifndef vtkSplineWidget2_h
30
#define vtkSplineWidget2_h
31
32
#include "vtkInteractionWidgetsModule.h"
// For export macro
33
#include "
vtkAbstractWidget.h
"
34
35
class
vtkSplineRepresentation
;
36
37
class
VTKINTERACTIONWIDGETS_EXPORT
vtkSplineWidget2
:
public
vtkAbstractWidget
38
{
39
public
:
40
static
vtkSplineWidget2
*
New
();
41
vtkTypeMacro(
vtkSplineWidget2
,
vtkAbstractWidget
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
49
void
SetRepresentation
(
vtkSplineRepresentation
*r)
50
{
51
this->Superclass::SetWidgetRepresentation(
52
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
53
}
54
59
void
CreateDefaultRepresentation
();
60
61
protected
:
62
vtkSplineWidget2
();
63
~vtkSplineWidget2
();
64
65
int
WidgetState
;
66
enum
_WidgetState
{Start=0,Active};
67
68
// These methods handle events
69
static
void
SelectAction
(
vtkAbstractWidget
*);
70
static
void
EndSelectAction
(
vtkAbstractWidget
*);
71
static
void
TranslateAction
(
vtkAbstractWidget
*);
72
static
void
ScaleAction
(
vtkAbstractWidget
*);
73
static
void
MoveAction
(
vtkAbstractWidget
*);
74
75
private
:
76
vtkSplineWidget2
(
const
vtkSplineWidget2
&) VTK_DELETE_FUNCTION;
77
void
operator=(
const
vtkSplineWidget2
&) VTK_DELETE_FUNCTION;
78
79
};
80
81
#endif
82
83
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:64
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkSplineRepresentation
representation for a spline.
Definition:
vtkSplineRepresentation.h:51
vtkSplineWidget2
widget for vtkSplineRepresentation.
Definition:
vtkSplineWidget2.h:38
vtkSplineWidget2::New
static vtkSplineWidget2 * New()
vtkSplineWidget2::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkSplineWidget2::~vtkSplineWidget2
~vtkSplineWidget2()
vtkSplineWidget2::WidgetState
int WidgetState
Definition:
vtkSplineWidget2.h:65
vtkSplineWidget2::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Create the default widget representation if one is not set.
vtkSplineWidget2::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkSplineWidget2::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkSplineWidget2::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkSplineWidget2::_WidgetState
_WidgetState
Definition:
vtkSplineWidget2.h:66
vtkSplineWidget2::ScaleAction
static void ScaleAction(vtkAbstractWidget *)
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:49
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition:
vtkWidgetRepresentation.h:55
vtkAbstractWidget.h
Generated by
1.9.1