#include <vtkQtChartShape.h>
Definition at line 38 of file vtkQtChartShape.h.
Public Types | |
enum | BoundingBoxCode { Left = 0x01000000, Top = 0x00010000, Right = 0x00000100, Bottom = 0x00000001 } |
Public Member Functions | |
vtkQtChartShape () | |
vtkQtChartShape (int series, int index) | |
Constructs a chart shape. | |
vtkQtChartShape (const vtkQtChartShape &other) | |
virtual | ~vtkQtChartShape () |
vtkQtChartShape & | operator= (const vtkQtChartShape &other) |
virtual void | getBounds (QRectF &bounds) const =0 |
Gets the bounding box for the shape. | |
virtual bool | contains (const QPointF &point) const =0 |
Gets whether or not the shape contains the given point. | |
virtual bool | intersects (const QRectF &area) const =0 |
Gets whether or not the shape intersects the given area. | |
virtual void | setRectangle (const QRectF &rectangle) |
Sets the shape for rectangular types. | |
virtual void | setPolygon (const QPolygonF &polygon) |
Sets the shape for polygonal types. | |
int | getSeries () const |
Gets the series number. | |
void | setSeries (int series) |
Sets the series number. | |
int | getIndex () const |
Gets the index in the series. | |
void | setIndex (int index) |
Sets the index in the series. | |
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. |
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.
series | The series index. | |
index | The index in the given series. |
vtkQtChartShape::vtkQtChartShape | ( | const vtkQtChartShape & | other | ) |
virtual vtkQtChartShape::~vtkQtChartShape | ( | ) | [inline, virtual] |
Definition at line 58 of file vtkQtChartShape.h.
vtkQtChartShape& vtkQtChartShape::operator= | ( | const vtkQtChartShape & | other | ) |
virtual void vtkQtChartShape::getBounds | ( | QRectF & | bounds | ) | const [pure virtual] |
Gets the bounding box for the shape.
bounds | Used to return the bounding box. |
Implemented in vtkQtChartBar, and vtkQtChartQuad.
virtual bool vtkQtChartShape::contains | ( | const QPointF & | point | ) | const [pure virtual] |
Gets whether or not the shape contains the given point.
point | The position to evaluate. |
Implemented in vtkQtChartBar, and vtkQtChartQuad.
virtual bool vtkQtChartShape::intersects | ( | const QRectF & | area | ) | const [pure virtual] |
Gets whether or not the shape intersects the given area.
area | The area to evaluate. |
Implemented in vtkQtChartBar, and vtkQtChartQuad.
virtual void vtkQtChartShape::setRectangle | ( | const QRectF & | rectangle | ) | [virtual] |
Sets the shape for rectangular types.
This method can be used to set the shape. The default implementation does nothing. This is useful for objects that have a rectangular shape.
rectangle | The new shape. |
Reimplemented in vtkQtChartBar.
virtual void vtkQtChartShape::setPolygon | ( | const QPolygonF & | polygon | ) | [virtual] |
Sets the shape for polygonal types.
This method can be used to set the shape. The default implementation does nothing. This is useful for objects that have a polygonal shape.
polygon | The new shape. |
Reimplemented in vtkQtChartQuad.
int vtkQtChartShape::getSeries | ( | ) | const [inline] |
Gets the series number.
Definition at line 107 of file vtkQtChartShape.h.
void vtkQtChartShape::setSeries | ( | int | series | ) | [inline] |
Sets the series number.
series | The new series number. |
Definition at line 112 of file vtkQtChartShape.h.
int vtkQtChartShape::getIndex | ( | ) | const [inline] |
Gets 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.
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.
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.
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.
y | The y position to evaluate. | |
bounds | The bounding box. |