VTK
vtkQtChartBar.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartBar.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 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtChartBar_h
25 #define _vtkQtChartBar_h
26 
27 #include "vtkQtChartExport.h"
28 #include "vtkQtChartShape.h"
29 
30 
35 class VTKQTCHART_EXPORT vtkQtChartBar : public vtkQtChartShape
36 {
37 public:
38  vtkQtChartBar();
39 
44  vtkQtChartBar(int series, int index);
45  vtkQtChartBar(const vtkQtChartBar &other);
46  virtual ~vtkQtChartBar();
47 
48  vtkQtChartBar &operator=(const vtkQtChartBar &other);
49 
50  virtual void getBounds(QRectF &bounds) const;
51  virtual bool contains(const QPointF &point) const;
52  virtual bool intersects(const QRectF &area) const;
53 
57  virtual void setRectangle(const QRectF &rectangle) {this->setBar(rectangle);}
58 
63  QRectF &getBar() {return *this->Bar;}
64 
69  const QRectF &getBar() const {return *this->Bar;}
70 
74  void setBar(const QRectF &bar);
75 
76 private:
77  QRectF *Bar;
78 };
79 
80 #endif