VTK
9.5.20251126
Interaction
Widgets
vtkHoverWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
82
83
#ifndef vtkHoverWidget_h
84
#define vtkHoverWidget_h
85
86
#include "
vtkAbstractWidget.h
"
87
#include "vtkInteractionWidgetsModule.h"
// For export macro
88
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
89
90
VTK_ABI_NAMESPACE_BEGIN
91
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkHoverWidget
:
public
vtkAbstractWidget
92
{
93
public
:
97
static
vtkHoverWidget
*
New
();
98
100
103
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
104
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
106
108
113
vtkSetClampMacro(
TimerDuration
,
int
, 1, 100000);
114
vtkGetMacro(
TimerDuration
,
int
);
116
121
void
SetEnabled
(
int
)
override
;
122
128
void
CreateDefaultRepresentation
()
override
{ this->
WidgetRep
=
nullptr
; }
129
130
protected
:
131
vtkHoverWidget
();
132
~vtkHoverWidget
()
override
;
133
134
// The state of the widget
135
136
enum
137
{
138
Start
= 0,
139
Timing
,
140
TimedOut
141
};
142
143
int
WidgetState
;
144
145
// Callback interface to execute events
146
static
void
MoveAction
(
vtkAbstractWidget
*);
147
static
void
HoverAction
(
vtkAbstractWidget
*);
148
static
void
SelectAction
(
vtkAbstractWidget
*);
149
150
// Subclasses of this class invoke these methods. If a non-zero
151
// value is returned, a subclass is handling the event.
152
virtual
int
SubclassHoverAction
() {
return
0; }
153
virtual
int
SubclassEndHoverAction
() {
return
0; }
154
virtual
int
SubclassSelectAction
() {
return
0; }
155
157
160
int
TimerId
;
161
int
TimerDuration
;
163
164
private
:
165
vtkHoverWidget
(
const
vtkHoverWidget
&) =
delete
;
166
void
operator=(
const
vtkHoverWidget
&) =
delete
;
167
};
168
169
VTK_ABI_NAMESPACE_END
170
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition
vtkHoverWidget.h:154
vtkHoverWidget::vtkHoverWidget
vtkHoverWidget()
vtkHoverWidget::Timing
@ Timing
Definition
vtkHoverWidget.h:139
vtkHoverWidget::Start
@ Start
Definition
vtkHoverWidget.h:138
vtkHoverWidget::TimedOut
@ TimedOut
Definition
vtkHoverWidget.h:140
vtkHoverWidget::TimerId
int TimerId
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:160
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:143
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
A default representation, of which there is none, is created.
Definition
vtkHoverWidget.h:128
vtkHoverWidget::HoverAction
static void HoverAction(vtkAbstractWidget *)
vtkHoverWidget::TimerDuration
int TimerDuration
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:161
vtkHoverWidget::~vtkHoverWidget
~vtkHoverWidget() override
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:153
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition
vtkHoverWidget.h:152
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:60
Generated on Wed Nov 26 2025 07:47:51 for VTK by
1.13.2