VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAxesTransformWidget::_WidgetState
_WidgetState
Definition:
vtkAxesTransformWidget.h:138
vtkAbstractWidget::SetProcessEvents
virtual void SetProcessEvents(int)
vtkHandleWidget
a general widget for moving handles
Definition:
vtkHandleWidget.h:78
vtkAxesTransformWidget::WidgetState
int WidgetState
Definition:
vtkAxesTransformWidget.h:137
vtkAbstractWidget.h
vtkAbstractWidget::CreateDefaultRepresentation
virtual void CreateDefaultRepresentation()=0
vtkAxesTransformRepresentation
represent the vtkAxesTransformWidget
Definition:
vtkAxesTransformRepresentation.h:52
vtkgl::r
GLdouble GLdouble GLdouble r
Definition:
vtkgl.h:11610
vtkAxesTransformWidget::OriginWidget
vtkHandleWidget * OriginWidget
Definition:
vtkAxesTransformWidget.h:147
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition:
vtkAbstractWidget.h:159
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkAxesTransformWidget::SetRepresentation
void SetRepresentation(vtkAxesTransformRepresentation *r)
Definition:
vtkAxesTransformWidget.h:116
vtkAxesTransformWidget::CurrentHandle
int CurrentHandle
Definition:
vtkAxesTransformWidget.h:139
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkAxesTransformWidget
3D widget for performing 3D transformations around an axes
Definition:
vtkAxesTransformWidget.h:96
vtkAxesTransformWidget::SelectionWidget
vtkHandleWidget * SelectionWidget
Definition:
vtkAxesTransformWidget.h:148
vtkObject::New
static vtkObject * New()
vtkAxesTransformWidget::GetLineRepresentation
vtkAxesTransformRepresentation * GetLineRepresentation()
Definition:
vtkAxesTransformWidget.h:122
vtkInteractionWidgetsModule.h
vtkAbstractWidget::SetEnabled
virtual void SetEnabled(int)
Generated on Sat Jan 3 2015 22:29:40 for VTK by
1.8.8