GT RoboCup SSL
Soccer software, robot firmware
FieldView Class Reference

class that performs drawing of log data onto the field More...

Public Member Functions

 FieldView (QWidget *parent=nullptr)
 
void layerVisible (int i, bool value)
 
bool layerVisible (int i) const
 
void history (const std::vector< std::shared_ptr< Packet::LogFrame > > *value)
 
void rotate (int value)
 
const Geometry2d::TransformMatrixgetTeamToWorld () const
 

Public Attributes

bool live
 
bool showRawRobots
 
bool showRawBalls
 
bool showCoords
 
bool showDotPatterns
 
bool showTeamNames
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *e) override
 
virtual void resizeEvent (QResizeEvent *e) override
 
virtual void enterEvent (QEvent *) override
 
virtual void leaveEvent (QEvent *) override
 
virtual void mouseMoveEvent (QMouseEvent *) override
 
virtual void drawWorldSpace (QPainter &p)
 
virtual void drawTeamSpace (QPainter &p)
 
void drawText (QPainter &p, QPointF pos, QString text, bool center=true)
 
void drawField (QPainter &p, const Packet::LogFrame *frame)
 
void drawRobot (QPainter &p, bool blueRobot, int ID, QPointF pos, float theta, bool hasBall=false, bool faulty=false)
 
void drawCoords (QPainter &p)
 
std::shared_ptr< Packet::LogFrame > currentFrame ()
 

Protected Attributes

Geometry2d::TransformMatrix _screenToWorld
 
Geometry2d::TransformMatrix _worldToTeam
 
Geometry2d::TransformMatrix _teamToWorld
 
QLabel * _posLabel
 
int _rotate
 
int _textRotation
 
const std::vector< std::shared_ptr< Packet::LogFrame > > * _history
 
QVector< bool > _layerVisible
 

Detailed Description

class that performs drawing of log data onto the field

+ Inheritance diagram for FieldView:
+ Collaboration diagram for FieldView:

Member Function Documentation

◆ drawTeamSpace()

void FieldView::drawTeamSpace ( QPainter &  p)
protectedvirtual

populate with the past locations of each robot


The documentation for this class was generated from the following files: