The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
More...
#include <vtkQtChartShape.h>
|
static int | getBoundingBoxCode (const QPointF &point, const QRectF &bounds) |
| Gets the bounding box code for the given point and rectangle. More...
|
|
static int | getXBoundingBoxCode (float x, const QRectF &bounds) |
| Gets the bounding box code for the given coordinate and rectangle. More...
|
|
static int | getYBoundingBoxCode (float y, const QRectF &bounds) |
| Gets the bounding box code for the given coordinate and rectangle. More...
|
|
The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
Definition at line 38 of file vtkQtChartShape.h.
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.
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 |
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 |
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: