The vtkQtChartQuad class defines a quad used by the chart shape locator.
More...
#include <vtkQtChartQuad.h>
List of all members.
Detailed Description
The vtkQtChartQuad class defines a quad used by the chart shape locator.
Definition at line 37 of file vtkQtChartQuad.h.
Constructor & Destructor Documentation
vtkQtChartQuad::vtkQtChartQuad |
( |
| ) |
|
vtkQtChartQuad::vtkQtChartQuad |
( |
int |
series, |
|
|
int |
index |
|
) |
| |
Creates a quad instance.
- Parameters:
-
series | The chart series. |
index | The chart series index. |
virtual vtkQtChartQuad::~vtkQtChartQuad |
( |
| ) |
[virtual] |
Member Function Documentation
virtual void vtkQtChartQuad::getBounds |
( |
QRectF & |
bounds | ) |
const [virtual] |
Gets the bounding box for the shape.
- Parameters:
-
bounds | Used to return the bounding box. |
Implements vtkQtChartShape.
virtual bool vtkQtChartQuad::contains |
( |
const QPointF & |
point | ) |
const [virtual] |
Gets whether or not the shape contains the given point.
- Parameters:
-
point | The position to evaluate. |
- Returns:
- True if the shape contains the given point.
Implements vtkQtChartShape.
virtual bool vtkQtChartQuad::intersects |
( |
const QRectF & |
area | ) |
const [virtual] |
Gets whether or not the shape intersects the given area.
- Parameters:
-
area | The area to evaluate. |
- Returns:
- True if the shape intersects the given area.
Implements vtkQtChartShape.
virtual void vtkQtChartQuad::setPolygon |
( |
const QPolygonF & |
polygon | ) |
[inline, virtual] |
Sets the quad shape.
The polygon should be a list of four points. The points should form a convex, clock-wise loop.
- Parameters:
-
polygon | The list of points to define the quad. |
Reimplemented from vtkQtChartShape.
Definition at line 63 of file vtkQtChartQuad.h.
const QPolygonF& vtkQtChartQuad::getPoints |
( |
| ) |
const |
Gets the list of quad points.
- Returns:
- The list of quad points.
void vtkQtChartQuad::setPoints |
( |
const QPolygonF & |
points | ) |
|
Sets the quad shape.
- Parameters:
-
points | The list of points to define the quad. |
void vtkQtChartQuad::setPoint |
( |
int |
index, |
|
|
const QPointF & |
point |
|
) |
| |
Sets the point for the given index.
- Parameters:
-
index | The index of the quad point. |
point | The new point. |
The documentation for this class was generated from the following file: