The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
More...
#include <vtkQtChartShape.h>
List of all members.
Static Public Member Functions |
static int | getBoundingBoxCode (const QPointF &point, const QRectF &bounds) |
| Gets the bounding box code for the given point and rectangle.
|
static int | getXBoundingBoxCode (float x, const QRectF &bounds) |
| Gets the bounding box code for the given coordinate and rectangle.
|
static int | getYBoundingBoxCode (float y, const QRectF &bounds) |
| Gets the bounding box code for the given coordinate and rectangle.
|
Detailed Description
The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
Definition at line 38 of file vtkQtChartShape.h.
Member Enumeration Documentation
- Enumerator:
Left |
Left of bounding box.
|
Top |
Above the bounding box.
|
Right |
Right of bounding box.
|
Bottom |
Below the bounding box.
|
Definition at line 41 of file vtkQtChartShape.h.
Constructor & Destructor Documentation
vtkQtChartShape::vtkQtChartShape |
( |
| ) |
|
vtkQtChartShape::vtkQtChartShape |
( |
int |
series, |
|
|
int |
index |
|
) |
| |
Constructs a chart shape.
- Parameters:
-
series | The series index. |
index | The index in the given series. |
virtual vtkQtChartShape::~vtkQtChartShape |
( |
| ) |
|
|
inlinevirtual |
Member Function Documentation
virtual void vtkQtChartShape::getBounds |
( |
QRectF & |
bounds | ) |
const |
|
pure virtual |
Gets the bounding box for the shape.
- Parameters:
-
bounds | Used to return the bounding box. |
Implemented in vtkQtChartQuad, and vtkQtChartBar.
virtual bool vtkQtChartShape::contains |
( |
const QPointF & |
point | ) |
const |
|
pure 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.
Implemented in vtkQtChartQuad, and vtkQtChartBar.
virtual bool vtkQtChartShape::intersects |
( |
const QRectF & |
area | ) |
const |
|
pure 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.
Implemented in vtkQtChartQuad, and vtkQtChartBar.
virtual void vtkQtChartShape::setRectangle |
( |
const QRectF & |
rectangle | ) |
|
|
virtual |
virtual void vtkQtChartShape::setPolygon |
( |
const QPolygonF & |
polygon | ) |
|
|
virtual |
int vtkQtChartShape::getSeries |
( |
| ) |
const |
|
inline |
Gets the series number.
- Returns:
- The series number.
Definition at line 107 of file vtkQtChartShape.h.
void vtkQtChartShape::setSeries |
( |
int |
series | ) |
|
|
inline |
Sets the series number.
- Parameters:
-
series | The new series number. |
Definition at line 112 of file vtkQtChartShape.h.
int vtkQtChartShape::getIndex |
( |
| ) |
const |
|
inline |
Gets the index in the series.
- Returns:
- The index in the series.
Definition at line 118 of file vtkQtChartShape.h.
void vtkQtChartShape::setIndex |
( |
int |
index | ) |
|
|
inline |
Sets the index in the series.
- Parameters:
-
index | The new index in the series. |
Definition at line 123 of file vtkQtChartShape.h.
static int vtkQtChartShape::getBoundingBoxCode |
( |
const QPointF & |
point, |
|
|
const QRectF & |
bounds |
|
) |
| |
|
static |
Gets the bounding box code for the given point and rectangle.
This method combines the x and y bounding box codes.
- Parameters:
-
point | The position to evaluate. |
bounds | The bounding box. |
static int vtkQtChartShape::getXBoundingBoxCode |
( |
float |
x, |
|
|
const QRectF & |
bounds |
|
) |
| |
|
static |
Gets the bounding box code for the given coordinate and rectangle.
- Parameters:
-
x | The x position to evaluate. |
bounds | The bounding box. |
static int vtkQtChartShape::getYBoundingBoxCode |
( |
float |
y, |
|
|
const QRectF & |
bounds |
|
) |
| |
|
static |
Gets the bounding box code for the given coordinate and rectangle.
- Parameters:
-
y | The y position to evaluate. |
bounds | The bounding box. |
The documentation for this class was generated from the following file: