VTK  9.7.1
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 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKINTERACTIONWIDGETS_EXPORT VTK_MARSHALAUTO vtkContinuousValueWidgetRepresentation
23 {
24 public:
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 
58 protected:
61 
62  double Value;
63 
64 private:
66  void operator=(const vtkContinuousValueWidgetRepresentation&) = delete;
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
virtual void PlaceWidget(double bounds[6])
The following is a suggested API for widget representations.
virtual void StartWidgetInteraction(double eventPos[2])
abstract class defines interface between the widget and widget representation classes ...
provide the representation for a continuous value
a simple class to control print indentation
Definition: vtkIndent.h:28
void BuildRepresentation() override
Methods to interface with the vtkSliderWidget.
virtual void WidgetInteraction(double newEventPos[2])
#define VTK_MARSHALAUTO