VTK
vtkQtChartQuad.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartQuad.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 _vtkQtChartQuad_h
25 #define _vtkQtChartQuad_h
26 
27 #include "vtkQtChartExport.h"
28 #include "vtkQtChartShape.h"
29 
30 class QPolygonF;
31 
32 
37 class VTKQTCHART_EXPORT vtkQtChartQuad : public vtkQtChartShape
38 {
39 public:
41 
46  vtkQtChartQuad(int series, int index);
47  vtkQtChartQuad(const vtkQtChartQuad &other);
48  virtual ~vtkQtChartQuad();
49 
51 
52  virtual void getBounds(QRectF &bounds) const;
53  virtual bool contains(const QPointF &point) const;
54  virtual bool intersects(const QRectF &area) const;
55 
63  virtual void setPolygon(const QPolygonF &polygon) {this->setPoints(polygon);}
64 
69  const QPolygonF &getPoints() const;
70 
74  void setPoints(const QPolygonF &points);
75 
80  void setPoint(int index, const QPointF &point);
81 
82 private:
83  QPolygonF *Points;
84 };
85 
86 #endif
The vtkQtChartQuad class defines a quad used by the chart shape locator.
vtkQtChartShape & operator=(const vtkQtChartShape &other)
virtual void getBounds(QRectF &bounds) const =0
Gets the bounding box for the shape.
The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
virtual bool contains(const QPointF &point) const =0
Gets whether or not the shape contains the given point.
virtual void setPolygon(const QPolygonF &polygon)
Sets the quad shape.
virtual bool intersects(const QRectF &area) const =0
Gets whether or not the shape intersects the given area.