VTK
9.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
89
#ifndef vtkHoverWidget_h
90
#define vtkHoverWidget_h
91
92
#include "
vtkAbstractWidget.h
"
93
#include "vtkInteractionWidgetsModule.h"
// For export macro
94
95
class
VTKINTERACTIONWIDGETS_EXPORT
vtkHoverWidget
:
public
vtkAbstractWidget
96
{
97
public
:
101
static
vtkHoverWidget
*
New
();
102
104
107
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
108
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
110
112
117
vtkSetClampMacro(TimerDuration,
int
, 1, 100000);
118
vtkGetMacro(TimerDuration,
int
);
120
125
void
SetEnabled
(
int
)
override
;
126
132
void
CreateDefaultRepresentation
()
override
{ this->WidgetRep =
nullptr
; }
133
134
protected
:
135
vtkHoverWidget
();
136
~vtkHoverWidget
()
override
;
137
138
// The state of the widget
139
140
enum
141
{
142
Start = 0,
143
Timing
,
144
TimedOut
145
};
146
147
int
WidgetState
;
148
149
// Callback interface to execute events
150
static
void
MoveAction
(
vtkAbstractWidget
*);
151
static
void
HoverAction
(
vtkAbstractWidget
*);
152
static
void
SelectAction
(
vtkAbstractWidget
*);
153
154
// Subclasses of this class invoke these methods. If a non-zero
155
// value is returned, a subclass is handling the event.
156
virtual
int
SubclassHoverAction
() {
return
0; }
157
virtual
int
SubclassEndHoverAction
() {
return
0; }
158
virtual
int
SubclassSelectAction
() {
return
0; }
159
161
164
int
TimerId
;
165
int
TimerDuration
;
167
168
private
:
169
vtkHoverWidget
(
const
vtkHoverWidget
&) =
delete
;
170
void
operator=(
const
vtkHoverWidget
&) =
delete
;
171
};
172
173
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition:
vtkAbstractWidget.h:63
vtkHoverWidget
invoke a vtkTimerEvent when hovering
Definition:
vtkHoverWidget.h:96
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition:
vtkHoverWidget.h:158
vtkHoverWidget::vtkHoverWidget
vtkHoverWidget()
vtkHoverWidget::TimerId
int TimerId
Helper methods for creating and destroying timers.
Definition:
vtkHoverWidget.h:164
vtkHoverWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for a VTK class.
vtkHoverWidget::New
static vtkHoverWidget * New()
Instantiate this class.
vtkHoverWidget::WidgetState
int WidgetState
Definition:
vtkHoverWidget.h:147
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
A default representation, of which there is none, is created.
Definition:
vtkHoverWidget.h:132
vtkHoverWidget::HoverAction
static void HoverAction(vtkAbstractWidget *)
vtkHoverWidget::TimerDuration
int TimerDuration
Helper methods for creating and destroying timers.
Definition:
vtkHoverWidget.h:165
vtkHoverWidget::~vtkHoverWidget
~vtkHoverWidget() override
vtkHoverWidget::Timing
@ Timing
Definition:
vtkHoverWidget.h:143
vtkHoverWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkHoverWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkHoverWidget::SetEnabled
void SetEnabled(int) override
The method for activating and deactivating this widget.
vtkHoverWidget::SubclassEndHoverAction
virtual int SubclassEndHoverAction()
Definition:
vtkHoverWidget.h:157
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition:
vtkHoverWidget.h:156
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkAbstractWidget.h
Generated on Sat Feb 25 2023 08:59:35 for VTK by
1.9.4