FastTrack 6.1.0
Tracks multiples objects dealing with occlusion and identities.
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Annotation Class Reference

This class allows to load tracking annotation file. More...

Inheritance diagram for Annotation:

Public Slots

void clear ()
 Clear the object.
 
void write (int index, const QString &text)
 Adds an annotation to the annotation QMap. More...
 
void read (int index)
 Reads an annotation from the annotation QMap. More...
 
void find (const QString &expression)
 Finds the index of all the annotation with expression inside their text. More...
 
int next ()
 Returns the next element of the findIndexes list of annotations that contains the expression to find.
 
int prev ()
 Returns the previous element of the findIndexes list of annotations that contains the expression to find.
 

Signals

void annotationText (const QString &text)
 Emitted when a new annotation is read. More...
 

Public Member Functions

 Annotation ()
 Constructs the annotation object from a file path.
 
 Annotation (const QString &annotationFile)
 Constructs the annotation object from a file path. More...
 
 Annotation (const Annotation &T)=delete
 
Annotationoperator= (const Annotation &T)=delete
 
bool setPath (const QString &annotationFile)
 Set the path for the annotation. More...
 

Private Member Functions

void writeToFile ()
 Writes all the annotation to a file.
 

Private Attributes

QFile * annotationFile
 
QMap< int, QString > * annotations
 
QList< int > findIndexes
 
int findIndex
 

Detailed Description

This class allows to load tracking annotation file.

Author
Benjamin Gallois
Version
Revision
5

Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh

Constructor & Destructor Documentation

◆ Annotation()

Annotation::Annotation ( const QString &  filePath)

Constructs the annotation object from a file path.

Parameters
[in]filePathPath to the tracking folder.

Member Function Documentation

◆ annotationText

void Annotation::annotationText ( const QString &  text)
signal

Emitted when a new annotation is read.

Parameters
textText of the requested annotation.

◆ find

void Annotation::find ( const QString &  expression)
slot

Finds the index of all the annotation with expression inside their text.

Parameters
[in]expressionExpression to find, case sensitive.

◆ read

void Annotation::read ( int  index)
slot

Reads an annotation from the annotation QMap.

Parameters
[in]indexImage index.

◆ setPath()

bool Annotation::setPath ( const QString &  filePath)

Set the path for the annotation.

Parameters
[in]filePathPath to the tracking folder.

◆ write

void Annotation::write ( int  index,
const QString &  text 
)
slot

Adds an annotation to the annotation QMap.

Parameters
[in]indexImage index.
[in]textAnnotation text.

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