![]() |
GT RoboCup SSL
Soccer software, robot firmware
|
These drawing functions add certain shapes/lines to the current LogFrame. More...
Functions | |
void | DebugDrawer::drawPolygon (const Geometry2d::Point *pts, int n, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawPolygon (const std::vector< Geometry2d::Point > &pts, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawPolygon (const Geometry2d::Polygon &pts, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawCircle (Geometry2d::Point center, float radius, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawArc (const Geometry2d::Arc &arc, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawShape (const std::shared_ptr< Geometry2d::Shape > &obs, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawShapeSet (const Geometry2d::ShapeSet &shapes, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawLine (const Geometry2d::Segment &line, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawLine (Geometry2d::Point p0, Geometry2d::Point p1, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawText (const QString &text, Geometry2d::Point pos, const QColor &color=Qt::black, const QString &layer=QString()) |
void | DebugDrawer::drawSegment (const Geometry2d::Segment &line, const QColor &color=Qt::black, const QString &layer=QString()) |
These drawing functions add certain shapes/lines to the current LogFrame.
Each time the FieldView updates, it reads the LogFrame and draws these items. This way debug data can be drawn on-screen and also logged.
Each drawing function also associates the drawn content with a particular 'layer'. Separating drawing items into layers lets you choose at runtime which items actually get drawn.