VTK
9.3.20240915
Main Page
Related Pages
Modules
Namespaces
Classes
Files
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
51
#ifndef vtkContinuousValueWidget_h
52
#define vtkContinuousValueWidget_h
53
54
#include "
vtkAbstractWidget.h
"
55
#include "vtkInteractionWidgetsModule.h"
// For export macro
56
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
57
58
VTK_ABI_NAMESPACE_BEGIN
59
class
vtkContinuousValueWidgetRepresentation
;
60
61
class
VTKINTERACTIONWIDGETS_EXPORT
VTK_MARSHALAUTO
vtkContinuousValueWidget
62
:
public
vtkAbstractWidget
63
{
64
public
:
66
69
vtkTypeMacro(
vtkContinuousValueWidget
,
vtkAbstractWidget
);
70
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
72
78
void
SetRepresentation
(
vtkContinuousValueWidgetRepresentation
* r)
79
{
80
this->Superclass::SetWidgetRepresentation(
reinterpret_cast<
vtkWidgetRepresentation
*
>
(r));
81
}
82
86
vtkContinuousValueWidgetRepresentation
*
GetContinuousValueWidgetRepresentation
()
87
{
88
return
reinterpret_cast<
vtkContinuousValueWidgetRepresentation
*
>
(this->
WidgetRep
);
89
}
90
92
95
double
GetValue
();
96
void
SetValue
(
double
v);
98
99
protected
:
100
vtkContinuousValueWidget
();
101
~vtkContinuousValueWidget
()
override
=
default
;
102
103
// These are the events that are handled
104
static
void
SelectAction
(
vtkAbstractWidget
*);
105
static
void
EndSelectAction
(
vtkAbstractWidget
*);
106
static
void
MoveAction
(
vtkAbstractWidget
*);
107
108
// Manage the state of the widget
109
int
WidgetState
;
110
enum
WidgetStateType
111
{
112
Start = 0,
113
Highlighting
,
114
Adjusting
115
};
116
117
double
Value
;
118
119
private
:
120
vtkContinuousValueWidget
(
const
vtkContinuousValueWidget
&) =
delete
;
121
void
operator=(
const
vtkContinuousValueWidget
&) =
delete
;
122
};
123
124
VTK_ABI_NAMESPACE_END
125
#endif
vtkAbstractWidget
define the API for widget / widget representation
Definition
vtkAbstractWidget.h:86
vtkAbstractWidget::WidgetRep
vtkWidgetRepresentation * WidgetRep
Definition
vtkAbstractWidget.h:200
vtkContinuousValueWidgetRepresentation
provide the representation for a continuous value
Definition
vtkContinuousValueWidgetRepresentation.h:23
vtkContinuousValueWidget
set a value by manipulating something
Definition
vtkContinuousValueWidget.h:63
vtkContinuousValueWidget::vtkContinuousValueWidget
vtkContinuousValueWidget()
vtkContinuousValueWidget::GetContinuousValueWidgetRepresentation
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
Definition
vtkContinuousValueWidget.h:86
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:111
vtkContinuousValueWidget::Highlighting
@ Highlighting
Definition
vtkContinuousValueWidget.h:113
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:109
vtkContinuousValueWidget::Value
double Value
Definition
vtkContinuousValueWidget.h:117
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:78
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkWidgetRepresentation
abstract class defines interface between the widget and widget representation classes
Definition
vtkWidgetRepresentation.h:66
vtkAbstractWidget.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Sun Sep 15 2024 09:55:07 for VTK by
1.9.7