VTK  9.2.6
vtkPlotBarRangeHandlesItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotBarRangeHandlesItem.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
33 #ifndef vtkPlotBarRangeHandlesItem_h
34 #define vtkPlotBarRangeHandlesItem_h
35 
36 #include "vtkChartsCoreModule.h" // For export macro
37 #include "vtkPlotBar.h" // User defined plotbar
39 #include "vtkSmartPointer.h" // Needed for vtkSmartPointer attribute
40 
41 class VTKCHARTSCORE_EXPORT vtkPlotBarRangeHandlesItem : public vtkPlotRangeHandlesItem
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
51  void GetBounds(double bounds[4]) override;
52 
54 
57  vtkSetSmartPointerMacro(PlotBar, vtkPlotBar);
58  vtkGetSmartPointerMacro(PlotBar, vtkPlotBar);
60 
61 protected:
62  vtkPlotBarRangeHandlesItem() = default;
63  ~vtkPlotBarRangeHandlesItem() override = default;
64 
69  void SetActiveHandlePosition(double position) override;
70 
71 private:
73  void operator=(const vtkPlotBarRangeHandlesItem&) = delete;
74 
76 };
77 
78 #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:39
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:45
void operator=(const vtkPlotRangeHandlesItem &)=delete
static vtkPlotRangeHandlesItem * New()