Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
jafar::qdisplay::PolyLine Class Reference

Allows to display a poly line on a viewer overlay. More...


Detailed Description

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>

List of all members.

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

Member Function Documentation

Returns:
the scale applied to the point of the polyline
void jafar::qdisplay::PolyLine::setColor ( int  r,
int  g,
int  b 
)

Set the color of the line of the shape.

Parameters:
rred [0 to 255]
ggreen [0 to 255]
bblue [0 to 255]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:43 for Jafar by doxygen 1.7.6.1
LAAS-CNRS