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
vtkPolyLineWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPolyLineWidget.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 vtkPolyLineWidget_h
32
#define vtkPolyLineWidget_h
33
34
#include "
vtkInteractionWidgetsModule.h
"
// For export macro
35
#include "
vtkAbstractWidget.h
"
36
37
class
vtkPolyLineRepresentation
;
38
39
class
VTKINTERACTIONWIDGETS_EXPORT
vtkPolyLineWidget
:
public
vtkAbstractWidget
40
{
41
public
:
42
static
vtkPolyLineWidget
*
New
();
43
vtkTypeMacro(
vtkPolyLineWidget
,
vtkAbstractWidget
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
50
void
SetRepresentation
(
vtkPolyLineRepresentation
*r)
51
{
52
this->Superclass::SetWidgetRepresentation(
53
reinterpret_cast<vtkWidgetRepresentation*>(r));
54
}
56
58
60
void
CreateDefaultRepresentation
();
61
//BTX
62
protected
:
63
vtkPolyLineWidget
();
64
~
vtkPolyLineWidget
();
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
vtkPolyLineWidget
(
const
vtkPolyLineWidget
&);
// Not implemented.
79
void
operator=(
const
vtkPolyLineWidget
&);
// Not implemented.
80
//ETX
81
};
82
83
#endif
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyLineWidget
widget for vtkPolyLineRepresentation.
Definition:
vtkPolyLineWidget.h:39
vtkPolyLineWidget::_WidgetState
_WidgetState
Definition:
vtkPolyLineWidget.h:68
vtkAbstractWidget.h
vtkAbstractWidget::CreateDefaultRepresentation
virtual void CreateDefaultRepresentation()=0
vtkPolyLineRepresentation
vtkWidgetRepresentation for a poly line.
Definition:
vtkPolyLineRepresentation.h:41
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkPolyLineWidget::WidgetState
int WidgetState
Definition:
vtkPolyLineWidget.h:67
vtkObject::New
static vtkObject * New()
vtkInteractionWidgetsModule.h
vtkPolyLineWidget::SetRepresentation
void SetRepresentation(vtkPolyLineRepresentation *r)
Definition:
vtkPolyLineWidget.h:50
Generated by
1.8.9.1