VTK  9.5.2
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
55VTK_ABI_NAMESPACE_BEGIN
57
58class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkContinuousValueWidget
59 : public vtkAbstractWidget
60{
61public:
63
67 void PrintSelf(ostream& os, vtkIndent indent) override;
69
79
87
89
92 double GetValue();
93 void SetValue(double v);
95
96protected:
98 ~vtkContinuousValueWidget() override = default;
99
100 // These are the events that are handled
104
105 // Manage the state of the widget
113
114 double Value;
115
116private:
118 void operator=(const vtkContinuousValueWidget&) = delete;
119};
120
121VTK_ABI_NAMESPACE_END
122#endif
void SetWidgetRepresentation(vtkWidgetRepresentation *r)
vtkWidgetRepresentation * WidgetRep
provide the representation for a continuous value
vtkContinuousValueWidgetRepresentation * GetContinuousValueWidgetRepresentation()
Return the representation as a vtkContinuousValueWidgetRepresentation.
static void MoveAction(vtkAbstractWidget *)
void SetValue(double v)
Get the value for this widget.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard macros.
static void SelectAction(vtkAbstractWidget *)
~vtkContinuousValueWidget() override=default
double GetValue()
Get the value for this widget.
static void EndSelectAction(vtkAbstractWidget *)
void SetRepresentation(vtkContinuousValueWidgetRepresentation *r)
Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene.
a simple class to control print indentation
Definition vtkIndent.h:29
abstract class defines interface between the widget and widget representation classes
#define VTK_MARSHALAUTO