Aquila  2.0 prealpha
Cognitive Robotics Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Viewport Class Reference

#include <viewport.h>

Inheritance diagram for Viewport:

Public Member Functions

 Viewport (QWidget *parent=0)
 Constructor.
 
void initialise (QString senderPortName, QString receiverPortName)
 Initialsation.
 
void setImage (const QImage &qImage)
 Sets and displays image.
 
void start ()
 Starts thread.
 
void stop ()
 Stops thread.
 
yarp::sig::ImageOf
< yarp::sig::PixelRgb > * 
getImage ()
 Gets Yarp image from a port.
 

Public Attributes

yarp::os::BufferedPort
< yarp::sig::ImageOf
< yarp::sig::PixelRgb > > 
imagePort
 

Protected Member Functions

void paintEvent (QPaintEvent *)
 Draws the content of the qPainter.
 

Detailed Description

Viewport for displaying images

Constructor & Destructor Documentation

Viewport::Viewport ( QWidget *  parent = 0)

Constructor.

Parameters
[in]parent- parent widget

Member Function Documentation

yarp::sig::ImageOf< yarp::sig::PixelRgb > * Viewport::getImage ( )

Gets Yarp image from a port.

Returns
Yarp image
void Viewport::initialise ( QString  senderPortName,
QString  receiverPortName 
)

Initialsation.

Parameters
[in]senderPortName- port name of the sender
[in]receiverPortName- port name of the receiver
void Viewport::paintEvent ( QPaintEvent *  )
protected

Draws the content of the qPainter.

void Viewport::setImage ( const QImage &  qImage)

Sets and displays image.

Parameters
[in]qImage- image to be displayed
void Viewport::start ( )

Starts thread.

void Viewport::stop ( )

Stops thread.

Member Data Documentation

yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > Viewport::imagePort

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