VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkTensorProbeWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTensorProbeWidget.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
=========================================================================*/
33
#ifndef __vtkTensorProbeWidget_h
34
#define __vtkTensorProbeWidget_h
35
36
#include "
vtkAbstractWidget.h
"
37
38
class
vtkTensorProbeRepresentation
;
39
class
vtkPolyData
;
40
41
class
VTK_WIDGETS_EXPORT
vtkTensorProbeWidget
:
public
vtkAbstractWidget
42
{
43
public
:
45
static
vtkTensorProbeWidget
*
New
();
46
48
49
vtkTypeMacro(
vtkTensorProbeWidget
,
vtkAbstractWidget
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
52
54
57
void
SetRepresentation(
vtkTensorProbeRepresentation
*r)
58
{
59
this->Superclass::SetWidgetRepresentation(
60
reinterpret_cast<vtkWidgetRepresentation*>(r));
61
}
63
65
66
vtkTensorProbeRepresentation
*GetTensorProbeRepresentation()
67
{
return
reinterpret_cast<
vtkTensorProbeRepresentation
*
>
(this->
WidgetRep
);}
69
71
virtual
void
CreateDefaultRepresentation
();
72
73
protected
:
74
vtkTensorProbeWidget
();
75
~
vtkTensorProbeWidget
();
76
77
// 1 when the probe has been selected, for instance when dragging it around
78
int
Selected
;
79
80
int
LastEventPosition[2];
81
82
// Callback interface to capture events and respond
83
static
void
SelectAction (
vtkAbstractWidget
*);
84
static
void
MoveAction (
vtkAbstractWidget
*);
85
static
void
EndSelectAction (
vtkAbstractWidget
*);
86
87
private
:
88
vtkTensorProbeWidget
(
89
const
vtkTensorProbeWidget
&);
//Not implemented
90
void
operator=(
const
vtkTensorProbeWidget
&);
//Not implemented
91
92
};
93
94
#endif
95
Generated on Thu Mar 13 2014 08:10:41 for VTK by
1.8.1.2