VTK  9.7.1
vtkPlotBarRangeHandlesItem.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
21 #ifndef vtkPlotBarRangeHandlesItem_h
22 #define vtkPlotBarRangeHandlesItem_h
23 
24 #include "vtkChartsCoreModule.h" // For export macro
25 #include "vtkPlotBar.h" // User defined plotbar
27 #include "vtkSmartPointer.h" // Needed for vtkSmartPointer attribute
28 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCHARTSCORE_EXPORT VTK_MARSHALAUTO vtkPlotBarRangeHandlesItem
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
42  void GetBounds(double bounds[4]) override;
43 
45 
48  vtkSetSmartPointerMacro(PlotBar, vtkPlotBar);
49  vtkGetSmartPointerMacro(PlotBar, vtkPlotBar);
51 
52 protected:
53  vtkPlotBarRangeHandlesItem() = default;
54  ~vtkPlotBarRangeHandlesItem() override = default;
55 
60  void SetActiveHandlePosition(double position) override;
61 
62 private:
64  void operator=(const vtkPlotBarRangeHandlesItem&) = delete;
65 
67 };
68 
69 VTK_ABI_NAMESPACE_END
70 #endif // vtkPlotBarRangeHandlesItem_h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
show and control the range of a vtkAxis used with a vtkPlotBar
item to show and control a range on vtkAxis
void GetBounds(double bounds[4]) override
Recover the bounds of the item.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void SetActiveHandlePosition(double position)
Internal method to set the ActiveHandlePosition and compute the ActiveHandleRangeValue accordingly...
Class for drawing an XY plot given two columns from a vtkTable.
Definition: vtkPlotBar.h:35
#define VTK_MARSHALAUTO
void operator=(const vtkPlotRangeHandlesItem &)=delete
static vtkPlotRangeHandlesItem * New()