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
vtkHoverWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkHoverWidget.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
=========================================================================*/
75
#ifndef vtkHoverWidget_h
76
#define vtkHoverWidget_h
77
78
#include "
vtkInteractionWidgetsModule.h
"
// For export macro
79
#include "
vtkAbstractWidget.h
"
80
81
82
class
VTKINTERACTIONWIDGETS_EXPORT
vtkHoverWidget
:
public
vtkAbstractWidget
83
{
84
public
:
86
static
vtkHoverWidget
*
New
();
87
89
90
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
91
void
PrintSelf
(ostream& os,
vtkIndent
indent);
93
95
98
vtkSetClampMacro(TimerDuration,
int
,1,100000);
99
vtkGetMacro(TimerDuration,
int
);
101
105
virtual
void
SetEnabled
(
int
);
106
108
111
void
CreateDefaultRepresentation
()
112
{this->WidgetRep = NULL;}
114
115
protected
:
116
vtkHoverWidget
();
117
~
vtkHoverWidget
();
118
119
// The state of the widget
120
//BTX
121
enum
{Start=0,
Timing
,TimedOut};
122
//ETX
123
int
WidgetState
;
124
125
// Callback interface to execute events
126
static
void
MoveAction(
vtkAbstractWidget
*);
127
static
void
HoverAction(
vtkAbstractWidget
*);
128
static
void
SelectAction(
vtkAbstractWidget
*);
129
130
// Subclasses of this class invoke these methods. If a non-zero
131
// value is returned, a subclass is handling the event.
132
virtual
int
SubclassHoverAction
() {
return
0;}
133
virtual
int
SubclassEndHoverAction
() {
return
0;}
134
virtual
int
SubclassSelectAction
() {
return
0;}
135
137
138
int
TimerId
;
139
int
TimerDuration
;
141
142
private
:
143
vtkHoverWidget
(
const
vtkHoverWidget
&);
//Not implemented
144
void
operator=(
const
vtkHoverWidget
&);
//Not implemented
145
};
146
147
#endif
vtkAbstractWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkAbstractWidget.h
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition:
vtkInteractionWidgetsModule.h:15
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkHoverWidget::TimerDuration
int TimerDuration
Definition:
vtkHoverWidget.h:139
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation()
Definition:
vtkHoverWidget.h:111
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition:
vtkHoverWidget.h:132
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition:
vtkHoverWidget.h:134
vtkHoverWidget::SubclassEndHoverAction
virtual int SubclassEndHoverAction()
Definition:
vtkHoverWidget.h:133
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:65
vtkHoverWidget::TimerId
int TimerId
Definition:
vtkHoverWidget.h:138
vtkHoverWidget
invoke a vtkTimerEvent when hovering
Definition:
vtkHoverWidget.h:82
vtkObject::New
static vtkObject * New()
vtkHoverWidget::Timing
Definition:
vtkHoverWidget.h:121
vtkInteractionWidgetsModule.h
vtkAbstractWidget::SetEnabled
virtual void SetEnabled(int)
vtkHoverWidget::WidgetState
int WidgetState
Definition:
vtkHoverWidget.h:123
Generated by
1.8.9.1