VTK  9.4.20250208
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 "vtkInteractionWidgetsModule.h" // For export macro
18#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
19
20VTK_ABI_NAMESPACE_BEGIN
23{
24public:
26
30 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
39 void PlaceWidget(double bounds[6]) override;
40 void BuildRepresentation() override {}
41 void StartWidgetInteraction(double eventPos[2]) override = 0;
42 void WidgetInteraction(double eventPos[2]) override = 0;
43 // virtual void Highlight(int);
45
46 // Enums are used to describe what is selected
48 {
49 Outside = 0,
51 Adjusting
52 };
53
54 // Set/Get the value
55 virtual void SetValue(double value);
56 virtual double GetValue() { return this->Value; }
57
58protected:
61
62 double Value;
63
64private:
66 void operator=(const vtkContinuousValueWidgetRepresentation&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#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:108
abstract class defines interface between the widget and widget representation classes
#define VTK_MARSHALAUTO