VTK  9.3.20240328
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 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKINTERACTIONWIDGETS_EXPORT vtkContinuousValueWidgetRepresentation
22 {
23 public:
25 
29  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
38  void PlaceWidget(double bounds[6]) override;
39  void BuildRepresentation() override {}
40  void StartWidgetInteraction(double eventPos[2]) override = 0;
41  void WidgetInteraction(double eventPos[2]) override = 0;
42  // virtual void Highlight(int);
44 
45  // Enums are used to describe what is selected
47  {
48  Outside = 0,
50  Adjusting
51  };
52 
53  // Set/Get the value
54  virtual void SetValue(double value);
55  virtual double GetValue() { return this->Value; }
56 
57 protected:
60 
61  double Value;
62 
63 private:
65  void operator=(const vtkContinuousValueWidgetRepresentation&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #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
@ value
Definition: vtkX3D.h:220