VTK  9.3.0
vtkContinuousValueWidgetRepresentation.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
13#ifndef vtkContinuousValueWidgetRepresentation_h
14#define vtkContinuousValueWidgetRepresentation_h
15
16#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
17#include "vtkInteractionWidgetsModule.h" // For export macro
18#include "vtkLegacy.h" // for VTK_LEGACY_REMOVE
20
21VTK_ABI_NAMESPACE_BEGIN
22class VTKINTERACTIONWIDGETS_EXPORT vtkContinuousValueWidgetRepresentation
24{
25public:
27
31 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35
40 void PlaceWidget(double bounds[6]) override;
41 void BuildRepresentation() override {}
42 void StartWidgetInteraction(double eventPos[2]) override = 0;
43 void WidgetInteraction(double eventPos[2]) override = 0;
44 // virtual void Highlight(int);
46
47 // Enums are used to describe what is selected
49 {
50 Outside = 0,
52 Adjusting
53 };
54#if !defined(VTK_LEGACY_REMOVE)
55 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
57#endif
58
59 // Set/Get the value
60 virtual void SetValue(double value);
61 virtual double GetValue() { return this->Value; }
62
63protected:
66
67 double Value;
68
69private:
71 void operator=(const vtkContinuousValueWidgetRepresentation&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
provide the representation for a continuous value
void WidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
void StartWidgetInteraction(double eventPos[2]) override=0
Methods to interface with the vtkSliderWidget.
virtual void SetValue(double value)
void BuildRepresentation() override
Methods to interface with the vtkSliderWidget.
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkSliderWidget.
a simple class to control print indentation
Definition vtkIndent.h:29
abstract class defines interface between the widget and widget representation classes
#define VTK_DEPRECATED_IN_9_2_0(reason)