ImageCreator Class Reference

Utility class used to create an image containing all the first spot positions of the animal during the recording. More...

#include <imagecreator.h>

Collaboration diagram for ImageCreator:

Collaboration graph
[legend]
List of all members.

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.

Detailed Description

Utility class used to create an image containing all the first spot positions of the animal during the recording.

Author:
Lynn Hazan


Constructor & Destructor Documentation

ImageCreator::ImageCreator ( PositionsProvider provider,
int  width,
int  height,
QString  backgroundImage = "",
QColor  backgroundColor = Qt::black,
QColor  foregroundColor = "#BFBFBF" 
)

Constructor.

Parameters:
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.

Parameters:
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.


Member Function Documentation

void ImageCreator::saveImage ( QString  fileName,
QString  format = "PNG" 
)

Saves the current image.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following files:
Generated on Mon Sep 17 20:47:32 2007 for NeuroScope by  doxygen 1.5.1