VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
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
=========================================================================*/
31
#ifndef vtkSplineWidget2_h
32
#define vtkSplineWidget2_h
33
34
#include "
vtkInteractionWidgetsModule.h
"
// For export macro
35
#include "
vtkAbstractWidget.h
"
36
37
class
vtkSplineRepresentation
;
38
39
class
VTKINTERACTIONWIDGETS_EXPORT
vtkSplineWidget2
:
public
vtkAbstractWidget
40
{
41
public
:
42
static
vtkSplineWidget2
*
New
();
43
vtkTypeMacro(
vtkSplineWidget2
,
vtkAbstractWidget
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
50
void
SetRepresentation
(
vtkSplineRepresentation
*r)
51
{
52
this->Superclass::SetWidgetRepresentation(
53
reinterpret_cast<vtkWidgetRepresentation*>(r));
54
}
56
58
60
void
CreateDefaultRepresentation
();
61
//BTX
62
protected
:
63
vtkSplineWidget2
();
64
~
vtkSplineWidget2
();
66
67
int
WidgetState
;
68
enum
_WidgetState
{Start=0,Active};
69
70
// These methods handle events
71
static
void
SelectAction(
vtkAbstractWidget
*);
72
static
void
EndSelectAction(
vtkAbstractWidget
*);
73
static
void
TranslateAction(
vtkAbstractWidget
*);
74
static
void
ScaleAction(
vtkAbstractWidget
*);
75
static
void
MoveAction(
vtkAbstractWidget
*);
76
77
private
:
78
vtkSplineWidget2
(
const
vtkSplineWidget2
&);
// Not implemented.
79
void
operator=(
const
vtkSplineWidget2
&);
// Not implemented.
80
//ETX
81
};
82
83
#endif
84
85
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkSplineRepresentation
representation for a spline.
Definition:
vtkSplineRepresentation.h:49
vtkSplineWidget2::_WidgetState
_WidgetState
Definition:
vtkSplineWidget2.h:68
vtkSplineWidget2::SetRepresentation
void SetRepresentation(vtkSplineRepresentation *r)
Definition:
vtkSplineWidget2.h:50
vtkAbstractWidget.h
vtkAbstractWidget::CreateDefaultRepresentation
virtual void CreateDefaultRepresentation()=0
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkSplineWidget2
widget for vtkSplineRepresentation.
Definition:
vtkSplineWidget2.h:39
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkSplineWidget2::WidgetState
int WidgetState
Definition:
vtkSplineWidget2.h:67
vtkObject::New
static vtkObject * New()
vtkInteractionWidgetsModule.h
Generated by
1.8.9.1