VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
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
79
80
#ifndef vtkHoverWidget_h
81
#define vtkHoverWidget_h
82
83
#include "
vtkAbstractWidget.h
"
84
#include "vtkInteractionWidgetsModule.h"
// For export macro
85
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
86
87
VTK_ABI_NAMESPACE_BEGIN
88
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkHoverWidget
:
public
vtkAbstractWidget
89
{
90
public
:
94
static
vtkHoverWidget
*
New
();
95
97
100
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
101
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
103
105
110
vtkSetClampMacro(
TimerDuration
,
int
, 1, 100000);
111
vtkGetMacro(
TimerDuration
,
int
);
113
118
void
SetEnabled
(
int
)
override
;
119
125
void
CreateDefaultRepresentation
()
override
{ this->
WidgetRep
=
nullptr
; }
126
127
protected
:
128
vtkHoverWidget
();
129
~vtkHoverWidget
()
override
;
130
131
// The state of the widget
132
133
enum
134
{
135
Start
= 0,
136
Timing
,
137
TimedOut
138
};
139
140
int
WidgetState
;
141
142
// Callback interface to execute events
143
static
void
MoveAction
(
vtkAbstractWidget
*);
144
static
void
HoverAction
(
vtkAbstractWidget
*);
145
static
void
SelectAction
(
vtkAbstractWidget
*);
146
147
// Subclasses of this class invoke these methods. If a non-zero
148
// value is returned, a subclass is handling the event.
149
virtual
int
SubclassHoverAction
() {
return
0; }
150
virtual
int
SubclassEndHoverAction
() {
return
0; }
151
virtual
int
SubclassSelectAction
() {
return
0; }
152
154
157
int
TimerId
;
158
int
TimerDuration
;
160
161
private
:
162
vtkHoverWidget
(
const
vtkHoverWidget
&) =
delete
;
163
void
operator=(
const
vtkHoverWidget
&) =
delete
;
164
};
165
166
VTK_ABI_NAMESPACE_END
167
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:197
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition
vtkHoverWidget.h:151
vtkHoverWidget::vtkHoverWidget
vtkHoverWidget()
vtkHoverWidget::Timing
@ Timing
Definition
vtkHoverWidget.h:136
vtkHoverWidget::Start
@ Start
Definition
vtkHoverWidget.h:135
vtkHoverWidget::TimedOut
@ TimedOut
Definition
vtkHoverWidget.h:137
vtkHoverWidget::TimerId
int TimerId
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:157
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:140
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
A default representation, of which there is none, is created.
Definition
vtkHoverWidget.h:125
vtkHoverWidget::HoverAction
static void HoverAction(vtkAbstractWidget *)
vtkHoverWidget::TimerDuration
int TimerDuration
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:158
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:150
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition
vtkHoverWidget.h:149
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0