|
Jafar
|
Allows to display a poly line on a viewer overlay. More...
Allows to display a poly line on a viewer overlay.
For instance to display the path of a robot.
Definition at line 15 of file PolyLine.hpp.
#include <PolyLine.hpp>
Public Member Functions | |
| PolyLine (double scale=1.0, QGraphicsItem *parent=0) | |
| void | setColor (int r, int g, int b) |
| Set the color of the line of the shape. | |
| void | addPoint (double x, double y) |
| Add a point at the end of the polyline. | |
| QRectF | boundingRect () const |
| QPainterPath | shape () const |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| double | scale () const |
Private Attributes | |
| QVector< QPointF > | m_points |
| QRectF | m_boundingRect |
| double | m_scale |
| double jafar::qdisplay::PolyLine::scale | ( | ) | const |
| void jafar::qdisplay::PolyLine::setColor | ( | int | r, |
| int | g, | ||
| int | b | ||
| ) |
Set the color of the line of the shape.
| r | red [0 to 255] |
| g | green [0 to 255] |
| b | blue [0 to 255] |
| Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1 |
|