#include <imagecreator.h>
Collaboration diagram for ImageCreator:
Public Slots | |
void | dataAvailable (Array< dataType > &data, QObject *initiator) |
Receive the data requested and actually creates the image containg all the positions. | |
void | dataAvailable (Array< dataType > &data, QObject *initiator) |
Receive the data requested and actually creates the image containg all the positions. | |
Public Member Functions | |
ImageCreator (PositionsProvider &provider, int width, int height, QString backgroundImage="", QColor backgroundColor=Qt::black, QColor foregroundColor="#BFBFBF") | |
Constructor. | |
QImage | createImage () |
Creates an image containg all the positions of a given position file. | |
void | saveImage (QString fileName, QString format="PNG") |
Saves the current image. | |
ImageCreator (PositionsProvider &provider, int width, int height, QString backgroundImage="", QColor backgroundColor=Qt::black, QColor foregroundColor="#BFBFBF") | |
Constructor. | |
QImage | createImage () |
Creates an image containg all the positions of a given position file. | |
void | saveImage (QString fileName, QString format="PNG") |
Saves the current image. |
ImageCreator::ImageCreator | ( | PositionsProvider & | provider, | |
int | width, | |||
int | height, | |||
QString | backgroundImage = "" , |
|||
QColor | backgroundColor = Qt::black , |
|||
QColor | foregroundColor = "#BFBFBF" | |||
) |
Constructor.
provider | a reference on the provider of the position data. | |
width | video image width to use as the image width. | |
height | video image height to use as the image height. | |
backgroundImage | image to use as the background. | |
backgroundColor | color used as the image background if no image has been set. | |
foregroundColor | color used as the image foreground. |
ImageCreator::ImageCreator | ( | PositionsProvider & | provider, | |
int | width, | |||
int | height, | |||
QString | backgroundImage = "" , |
|||
QColor | backgroundColor = Qt::black , |
|||
QColor | foregroundColor = "#BFBFBF" | |||
) |
Constructor.
provider | a reference on the provider of the position data. | |
width | video image width to use as the image width. | |
height | video image height to use as the image height. | |
backgroundImage | image to use as the background. | |
backgroundColor | color used as the image background if no image has been set. | |
foregroundColor | color used as the image foreground. |
void ImageCreator::saveImage | ( | QString | fileName, | |
QString | format = "PNG" | |||
) |
Saves the current image.
fileName | path to save the image under. | |
format | image format to use when saving the image. |
void ImageCreator::dataAvailable | ( | Array< dataType > & | data, | |
QObject * | initiator | |||
) | [slot] |
Receive the data requested and actually creates the image containg all the positions.
data | n column array containing the position of the animal. The two first columns contain the position of the first spot and the following optional pair of columns contain the position of optional spots. | |
initiator | instance requesting the data. |
void ImageCreator::saveImage | ( | QString | fileName, | |
QString | format = "PNG" | |||
) |
Saves the current image.
fileName | path to save the image under. | |
format | image format to use when saving the image. |
void ImageCreator::dataAvailable | ( | Array< dataType > & | data, | |
QObject * | initiator | |||
) | [slot] |
Receive the data requested and actually creates the image containg all the positions.
data | n column array containing the position of the animal. The two first columns contain the position of the first spot and the following optional pair of columns contain the position of optional spots. | |
initiator | instance requesting the data. |