#include <positionsprovider.h>
Inheritance diagram for PositionsProvider:
Public Types | |
enum | loadReturnMessage { OK = 0, OPEN_ERROR = 1, MISSING_FILE = 3, COUNT_ERROR = 4, INCORRECT_CONTENT = 5, OK = 0, OPEN_ERROR = 1, MISSING_FILE = 3, COUNT_ERROR = 4, INCORRECT_CONTENT = 5 } |
Information retun after a call to openFile/saveDocument/createFeatureFile. | |
enum | loadReturnMessage { OK = 0, OPEN_ERROR = 1, MISSING_FILE = 3, COUNT_ERROR = 4, INCORRECT_CONTENT = 5, OK = 0, OPEN_ERROR = 1, MISSING_FILE = 3, COUNT_ERROR = 4, INCORRECT_CONTENT = 5 } |
Information retun after a call to openFile/saveDocument/createFeatureFile. | |
Signals | |
void | dataReady (Array< dataType > &data, QObject *initiator) |
Signals that the data have been retrieved. | |
void | dataReady (Array< dataType > &data, QObject *initiator) |
Signals that the data have been retrieved. | |
Public Member Functions | |
PositionsProvider (KURL fileUrl, double samplingRate, int width, int height, int rotation, int flip) | |
Constructor. | |
void | requestData (long startTime, long endTime, QObject *initiator) |
Triggers the retrieve of the position information included in the time interval given by startTime and endTime . | |
void | retrieveAllData (QObject *initiator) |
Triggers the retrieve of all the positions. | |
int | loadData () |
Loads the positions. | |
QString | getName () const |
Returns the name of the provider which is the position file name. | |
QString | getFilePath () const |
Returns the path to the position file. | |
void | updateVideoInformation (double videoSamplingRate, int rotation, int flip, int videoWidth, int videoHeight) |
int | getNbSpots () const |
Returns the number of spots for each animal position recorded. | |
double | getSamplingRate () const |
Returns the sampling rate used to record the data contained in the file identified by fileUrl. | |
PositionsProvider (KURL fileUrl, double samplingRate, int width, int height, int rotation, int flip) | |
Constructor. | |
void | requestData (long startTime, long endTime, QObject *initiator) |
Triggers the retrieve of the position information included in the time interval given by startTime and endTime . | |
void | retrieveAllData (QObject *initiator) |
Triggers the retrieve of all the positions. | |
int | loadData () |
Loads the positions. | |
QString | getName () const |
Returns the name of the provider which is the position file name. | |
QString | getFilePath () const |
Returns the path to the position file. | |
void | updateVideoInformation (double videoSamplingRate, int rotation, int flip, int videoWidth, int videoHeight) |
int | getNbSpots () const |
Returns the number of spots for each animal position recorded. | |
double | getSamplingRate () const |
Returns the sampling rate used to record the data contained in the file identified by fileUrl. |
PositionsProvider::PositionsProvider | ( | KURL | fileUrl, | |
double | samplingRate, | |||
int | width, | |||
int | height, | |||
int | rotation, | |||
int | flip | |||
) |
Constructor.
fileUrl | the url of the position file containing the positions. | |
samplingRate | sampling rate used to record the data. | |
width | video image width. | |
height | video image height. | |
rotation | video image rotation angle. | |
flip | video image flip orientation, 0 stands for none, 1 for vertical and 2 for horizontal. |
PositionsProvider::PositionsProvider | ( | KURL | fileUrl, | |
double | samplingRate, | |||
int | width, | |||
int | height, | |||
int | rotation, | |||
int | flip | |||
) |
Constructor.
fileUrl | the url of the position file containing the positions. | |
samplingRate | sampling rate used to record the data. | |
width | video image width. | |
height | video image height. | |
rotation | video image rotation angle. | |
flip | video image flip orientation, 0 stands for none, 1 for vertical and 2 for horizontal. |
void PositionsProvider::requestData | ( | long | startTime, | |
long | endTime, | |||
QObject * | initiator | |||
) |
Triggers the retrieve of the position information included in the time interval given by startTime
and endTime
.
startTime | begining of the time interval from which to retrieve the data. | |
endTime | end of the time interval from which to retrieve the data. | |
initiator | instance requesting the data. |
void PositionsProvider::retrieveAllData | ( | QObject * | initiator | ) |
Triggers the retrieve of all the positions.
initiator | instance requesting the data. |
int PositionsProvider::loadData | ( | ) |
Loads the positions.
QString PositionsProvider::getName | ( | ) | const [inline] |
Returns the name of the provider which is the position file name.
QString PositionsProvider::getFilePath | ( | ) | const [inline] |
Returns the path to the position file.
int PositionsProvider::getNbSpots | ( | ) | const [inline] |
Returns the number of spots for each animal position recorded.
It is either 1 or 2.
void PositionsProvider::dataReady | ( | Array< dataType > & | data, | |
QObject * | initiator | |||
) | [signal] |
Signals that the data have been retrieved.
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 PositionsProvider::requestData | ( | long | startTime, | |
long | endTime, | |||
QObject * | initiator | |||
) |
Triggers the retrieve of the position information included in the time interval given by startTime
and endTime
.
startTime | begining of the time interval from which to retrieve the data. | |
endTime | end of the time interval from which to retrieve the data. | |
initiator | instance requesting the data. |
void PositionsProvider::retrieveAllData | ( | QObject * | initiator | ) |
Triggers the retrieve of all the positions.
initiator | instance requesting the data. |
int PositionsProvider::loadData | ( | ) |
Loads the positions.
QString PositionsProvider::getName | ( | ) | const [inline] |
Returns the name of the provider which is the position file name.
QString PositionsProvider::getFilePath | ( | ) | const [inline] |
Returns the path to the position file.
int PositionsProvider::getNbSpots | ( | ) | const [inline] |
Returns the number of spots for each animal position recorded.
It is either 1 or 2.
void PositionsProvider::dataReady | ( | Array< dataType > & | data, | |
QObject * | initiator | |||
) | [signal] |
Signals that the data have been retrieved.
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. |