trikRuntime
trikControl::Display Class Reference

Implementation of display interface for real robot. More...

#include <display.h>

Inheritance diagram for trikControl::Display:
Collaboration diagram for trikControl::Display:

Public Slots

void setBackground (const QString &color) override
 
void showImage (const QString &fileName) override
 
void show (const QVector< int32_t > &array, int width, int height, const QString &format) override
 
void addLabel (const QString &text, int x, int y) override
 
void removeLabels () override
 
void setPainterColor (const QString &color) override
 
void setPainterWidth (int penWidth) override
 
void drawLine (int x1, int y1, int x2, int y2) override
 
void drawPoint (int x, int y) override
 
void drawRect (int x, int y, int width, int height, bool filled=false) override
 
void drawEllipse (int x, int y, int width, int height, bool filled=false) override
 
void drawArc (int x, int y, int width, int height, int startAngle, int spanAngle) override
 
void hide () override
 
void clear () override
 
void reset () override
 
void redraw () override
 
- Public Slots inherited from trikControl::DisplayInterface
virtual void showImage (const QString &fileName)=0
 Shows given image on a display. More...
 
virtual void show (const QVector< int32_t > &array, int width, int height, const QString &format)=0
 Shows given image on display. More...
 
virtual void addLabel (const QString &text, int x, int y)=0
 Add a label to the specific position of the screen without redrawing it. More...
 
virtual void removeLabels ()=0
 Remove all labels from the screen. More...
 
virtual void setPainterColor (const QString &color)=0
 Set painter color. More...
 
virtual void setPainterWidth (int penWidth)=0
 Set painter width. More...
 
virtual void drawLine (int x1, int y1, int x2, int y2)=0
 Draw line on the widget without redrawing it. More...
 
virtual void drawPoint (int x, int y)=0
 Draw point on the widget without redrawing it. More...
 
virtual void drawRect (int x, int y, int width, int height, bool filled=false)=0
 Draw rect on the widget without redrawing it. More...
 
virtual void drawEllipse (int x, int y, int width, int height, bool filled=false)=0
 Draw ellipse without redrawing display. More...
 
virtual void drawArc (int x, int y, int width, int height, int startAngle, int spanAngle)=0
 Draw arc on the widget without redrawing it without redrawing it. More...
 
virtual void setBackground (const QString &color)=0
 Sets background for a picture. More...
 
virtual void hide ()=0
 Hides and clears widget on which everything is drawn. More...
 
virtual void clear ()=0
 Clear everything painted with this object. More...
 
virtual void reset ()=0
 Clears screen, returns a display in a blank state. More...
 
virtual void redraw ()=0
 Updates painted picture on the robot`s screen. More...
 

Public Member Functions

 Display (const QString &mediaPath)
 Constructor. More...
 
 ~Display () override
 
DisplayWidgetInterfacegraphicsWidget () override
 Returns widget on which everything is drawn. More...
 

Detailed Description

Implementation of display interface for real robot.

Constructor & Destructor Documentation

trikControl::Display::Display ( const QString &  mediaPath)
explicit

Constructor.

Parameters
guiThread- GUI thread of an application.
mediaPath- path to the directory with media files (it is expected to be ending with "/").
trikControl::Display::~Display ( )
override

Member Function Documentation

void trikControl::Display::addLabel ( const QString &  text,
int  x,
int  y 
)
overrideslot
void trikControl::Display::clear ( )
overrideslot
void trikControl::Display::drawArc ( int  x,
int  y,
int  width,
int  height,
int  startAngle,
int  spanAngle 
)
overrideslot
void trikControl::Display::drawEllipse ( int  x,
int  y,
int  width,
int  height,
bool  filled = false 
)
overrideslot
void trikControl::Display::drawLine ( int  x1,
int  y1,
int  x2,
int  y2 
)
overrideslot
void trikControl::Display::drawPoint ( int  x,
int  y 
)
overrideslot
void trikControl::Display::drawRect ( int  x,
int  y,
int  width,
int  height,
bool  filled = false 
)
overrideslot
trikControl::DisplayWidgetInterface & trikControl::Display::graphicsWidget ( )
overridevirtual

Returns widget on which everything is drawn.

Implements trikControl::DisplayInterface.

void trikControl::Display::hide ( )
overrideslot
void trikControl::Display::redraw ( )
overrideslot
void trikControl::Display::removeLabels ( )
overrideslot
void trikControl::Display::reset ( )
overrideslot
void trikControl::Display::setBackground ( const QString &  color)
overrideslot
void trikControl::Display::setPainterColor ( const QString &  color)
overrideslot
void trikControl::Display::setPainterWidth ( int  penWidth)
overrideslot
void trikControl::Display::show ( const QVector< int32_t > &  array,
int  width,
int  height,
const QString &  format 
)
overrideslot
void trikControl::Display::showImage ( const QString &  fileName)
overrideslot

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