VTK
9.4.20251007
Main Page
Related Pages
Topics
Namespaces
Classes
Files
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
63
64
#ifndef vtkHoverWidget_h
65
#define vtkHoverWidget_h
66
67
#include "
vtkAbstractWidget.h
"
68
#include "vtkInteractionWidgetsModule.h"
// For export macro
69
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
70
71
VTK_ABI_NAMESPACE_BEGIN
72
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkHoverWidget
:
public
vtkAbstractWidget
73
{
74
public
:
78
static
vtkHoverWidget
*
New
();
79
81
84
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
85
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
87
89
94
vtkSetClampMacro(
TimerDuration
,
int
, 1, 100000);
95
vtkGetMacro(
TimerDuration
,
int
);
97
102
void
SetEnabled
(
int
)
override
;
103
109
void
CreateDefaultRepresentation
()
override
{ this->
WidgetRep
=
nullptr
; }
110
111
protected
:
112
vtkHoverWidget
();
113
~vtkHoverWidget
()
override
;
114
115
// The state of the widget
116
117
enum
118
{
119
Start
= 0,
120
Timing
,
121
TimedOut
122
};
123
124
int
WidgetState
;
125
126
// Callback interface to execute events
127
static
void
MoveAction
(
vtkAbstractWidget
*);
128
static
void
HoverAction
(
vtkAbstractWidget
*);
129
static
void
SelectAction
(
vtkAbstractWidget
*);
130
131
// Subclasses of this class invoke these methods. If a non-zero
132
// value is returned, a subclass is handling the event.
133
virtual
int
SubclassHoverAction
() {
return
0; }
134
virtual
int
SubclassEndHoverAction
() {
return
0; }
135
virtual
int
SubclassSelectAction
() {
return
0; }
136
138
141
int
TimerId
;
142
int
TimerDuration
;
144
145
private
:
146
vtkHoverWidget
(
const
vtkHoverWidget
&) =
delete
;
147
void
operator=(
const
vtkHoverWidget
&) =
delete
;
148
};
149
150
VTK_ABI_NAMESPACE_END
151
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:171
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition
vtkHoverWidget.h:135
vtkHoverWidget::vtkHoverWidget
vtkHoverWidget()
vtkHoverWidget::Timing
@ Timing
Definition
vtkHoverWidget.h:120
vtkHoverWidget::Start
@ Start
Definition
vtkHoverWidget.h:119
vtkHoverWidget::TimedOut
@ TimedOut
Definition
vtkHoverWidget.h:121
vtkHoverWidget::TimerId
int TimerId
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:141
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:124
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
A default representation, of which there is none, is created.
Definition
vtkHoverWidget.h:109
vtkHoverWidget::HoverAction
static void HoverAction(vtkAbstractWidget *)
vtkHoverWidget::TimerDuration
int TimerDuration
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:142
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:134
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition
vtkHoverWidget.h:133
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.14.0