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
60
61
#ifndef vtkHoverWidget_h
62
#define vtkHoverWidget_h
63
64
#include "
vtkAbstractWidget.h
"
65
#include "vtkInteractionWidgetsModule.h"
// For export macro
66
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
67
68
VTK_ABI_NAMESPACE_BEGIN
69
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkHoverWidget
:
public
vtkAbstractWidget
70
{
71
public
:
75
static
vtkHoverWidget
*
New
();
76
78
81
vtkTypeMacro(
vtkHoverWidget
,
vtkAbstractWidget
);
82
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
84
86
91
vtkSetClampMacro(
TimerDuration
,
int
, 1, 100000);
92
vtkGetMacro(
TimerDuration
,
int
);
94
99
void
SetEnabled
(
int
)
override
;
100
106
void
CreateDefaultRepresentation
()
override
{ this->
WidgetRep
=
nullptr
; }
107
108
protected
:
109
vtkHoverWidget
();
110
~vtkHoverWidget
()
override
;
111
112
// The state of the widget
113
114
enum
115
{
116
Start
= 0,
117
Timing
,
118
TimedOut
119
};
120
121
int
WidgetState
;
122
123
// Callback interface to execute events
124
static
void
MoveAction
(
vtkAbstractWidget
*);
125
static
void
HoverAction
(
vtkAbstractWidget
*);
126
static
void
SelectAction
(
vtkAbstractWidget
*);
127
128
// Subclasses of this class invoke these methods. If a non-zero
129
// value is returned, a subclass is handling the event.
130
virtual
int
SubclassHoverAction
() {
return
0; }
131
virtual
int
SubclassEndHoverAction
() {
return
0; }
132
virtual
int
SubclassSelectAction
() {
return
0; }
133
135
138
int
TimerId
;
139
int
TimerDuration
;
141
142
private
:
143
vtkHoverWidget
(
const
vtkHoverWidget
&) =
delete
;
144
void
operator=(
const
vtkHoverWidget
&) =
delete
;
145
};
146
147
VTK_ABI_NAMESPACE_END
148
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:168
vtkHoverWidget::SubclassSelectAction
virtual int SubclassSelectAction()
Definition
vtkHoverWidget.h:132
vtkHoverWidget::vtkHoverWidget
vtkHoverWidget()
vtkHoverWidget::Timing
@ Timing
Definition
vtkHoverWidget.h:117
vtkHoverWidget::Start
@ Start
Definition
vtkHoverWidget.h:116
vtkHoverWidget::TimedOut
@ TimedOut
Definition
vtkHoverWidget.h:118
vtkHoverWidget::TimerId
int TimerId
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:138
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:121
vtkHoverWidget::CreateDefaultRepresentation
void CreateDefaultRepresentation() override
A default representation, of which there is none, is created.
Definition
vtkHoverWidget.h:106
vtkHoverWidget::HoverAction
static void HoverAction(vtkAbstractWidget *)
vtkHoverWidget::TimerDuration
int TimerDuration
Helper methods for creating and destroying timers.
Definition
vtkHoverWidget.h:139
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:131
vtkHoverWidget::SubclassHoverAction
virtual int SubclassHoverAction()
Definition
vtkHoverWidget.h:130
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.15.0