VTK
9.5.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
Examples
File List
File Members
Interaction
Widgets
vtkContinuousValueWidget.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3
// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
47
48
#ifndef vtkContinuousValueWidget_h
49
#define vtkContinuousValueWidget_h
50
51
#include "
vtkAbstractWidget.h
"
52
#include "vtkInteractionWidgetsModule.h"
// For export macro
53
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
54
55
VTK_ABI_NAMESPACE_BEGIN
56
class
vtkContinuousValueWidgetRepresentation
;
57
58
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkContinuousValueWidget
59
:
public
vtkAbstractWidget
60
{
61
public
:
63
66
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
67
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
69
75
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
* r)
76
{
77
this->
Superclass::SetWidgetRepresentation
(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
78
}
79
83
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
84
{
85
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);
86
}
87
89
92
double
GetValue
();
93
void
SetValue
(
double
v);
95
96
protected
:
97
vtkContinuousValueWidget
();
98
~vtkContinuousValueWidget
()
override
=
default
;
99
100
// These are the events that are handled
101
static
void
SelectAction
(
vtkAbstractWidget
*);
102
static
void
EndSelectAction
(
vtkAbstractWidget
*);
103
static
void
MoveAction
(
vtkAbstractWidget
*);
104
105
// Manage the state of the widget
106
int
WidgetState
;
107
enum
WidgetStateType
108
{
109
Start
= 0,
110
Highlighting
,
111
Adjusting
112
};
113
114
double
Value
;
115
116
private
:
117
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) =
delete
;
118
void
operator=(
const
vtkContinuousValueWidget
&) =
delete
;
119
};
120
121
VTK_ABI_NAMESPACE_END
122
#endif
vtkAbstractWidget::vtkAbstractWidget
vtkAbstractWidget()
vtkAbstractWidget::SetWidgetRepresentation
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:168
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition
vtkContinuousValueWidgetRepresentation.h:23
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition
vtkContinuousValueWidget.h:83
vtkContinuousValueWidget::MoveAction
static void MoveAction(vtkAbstractWidget *)
vtkContinuousValueWidget::SetValue
void SetValue(double v)
Get the value for this widget.
vtkContinuousValueWidget::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
vtkContinuousValueWidget::WidgetStateType
WidgetStateType
Definition
vtkContinuousValueWidget.h:108
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition
vtkContinuousValueWidget.h:110
vtkContinuousValueWidget::Adjusting
@ Adjusting
Definition
vtkContinuousValueWidget.h:111
vtkContinuousValueWidget::Start
@ Start
Definition
vtkContinuousValueWidget.h:109
vtkContinuousValueWidget::SelectAction
static void SelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::~vtkContinuousValueWidget
~vtkContinuousValueWidget() override=default
vtkContinuousValueWidget::GetValue
double GetValue()
Get the value for this widget.
vtkContinuousValueWidget::WidgetState
int WidgetState
Definition
vtkContinuousValueWidget.h:106
vtkContinuousValueWidget::Value
double Value
Definition
vtkContinuousValueWidget.h:114
vtkContinuousValueWidget::EndSelectAction
static void EndSelectAction(vtkAbstractWidget *)
vtkContinuousValueWidget::SetRepresentation
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
Definition
vtkContinuousValueWidget.h:75
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:29
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:68
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:53
Generated on
for VTK by
1.15.0