VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
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
=========================================================================*/
86
#ifndef __vtkAxesTransformWidget_h
87
#define __vtkAxesTransformWidget_h
88
89
#include "vtkInteractionWidgetsModule.h"
// For export macro
90
#include "
vtkAbstractWidget.h
"
91
92
class
vtkAxesTransformRepresentation
;
93
class
vtkHandleWidget
;
94
95
96
class
VTKINTERACTIONWIDGETS_EXPORT
vtkAxesTransformWidget
:
public
vtkAbstractWidget
97
{
98
public
:
100
static
vtkAxesTransformWidget
*
New
();
101
103
104
vtkTypeMacro(
vtkAxesTransformWidget
,
vtkAbstractWidget
);
105
void
PrintSelf
(ostream& os,
vtkIndent
indent);
107
110
virtual
void
SetEnabled
(
int
enabling);
111
113
116
void
SetRepresentation(
vtkAxesTransformRepresentation
*r)
117
{this->Superclass::SetWidgetRepresentation(reinterpret_cast<vtkWidgetRepresentation*>(r));}
119
121
122
vtkAxesTransformRepresentation
*GetLineRepresentation()
123
{
return
reinterpret_cast<
vtkAxesTransformRepresentation
*
>
(this->
WidgetRep
);}
125
127
void
CreateDefaultRepresentation
();
128
131
virtual
void
SetProcessEvents
(
int
);
132
133
protected
:
134
vtkAxesTransformWidget
();
135
~
vtkAxesTransformWidget
();
136
137
int
WidgetState
;
138
enum
_WidgetState
{Start=0,Active};
139
int
CurrentHandle
;
140
141
// These methods handle events
142
static
void
SelectAction(
vtkAbstractWidget
*);
143
static
void
EndSelectAction(
vtkAbstractWidget
*);
144
static
void
MoveAction(
vtkAbstractWidget
*);
145
146
// The positioning handle widgets
147
vtkHandleWidget
*
OriginWidget
;
//first end point
148
vtkHandleWidget
*
SelectionWidget
;
//used when selecting any one of the axes
149
150
private
:
151
vtkAxesTransformWidget
(
const
vtkAxesTransformWidget
&);
//Not implemented
152
void
operator=(
const
vtkAxesTransformWidget
&);
//Not implemented
153
};
154
155
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1