Read@CVL
rdf::BaseElement Class Reference

#include <BaseImageElement.h>

Inheritance diagram for rdf::BaseElement:

Public Member Functions

 BaseElement (const QString &id=QString())
 This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID. More...
 
void setId (const QString &id)
 Sets the (preferably unique) ID. If no ID is set, a unqiue ID is generated and assigned. More...
 
QString id () const
 Returns the elment's id. More...
 
virtual QString toString () const
 
virtual void scale (double factor)
 

Protected Attributes

QString mId
 

Friends

DllCoreExport friend bool operator== (const BaseElement &l, const QString &id)
 
DllCoreExport friend bool operator== (const BaseElement &l, const BaseElement &r)
 Returns true if l and r have the same id. More...
 
DllCoreExport friend bool operator!= (const BaseElement &l, const BaseElement &r)
 Returns true if l and r do not have the same id. More...
 
DllCoreExport friend QDataStream & operator<< (QDataStream &s, const BaseElement &e)
 
DllCoreExport friend QDebug operator<< (QDebug d, const BaseElement &e)
 

Constructor & Destructor Documentation

rdf::BaseElement::BaseElement ( const QString &  id = QString())

This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID.

Parameters
idThe identifier, if empty a new ID is generated.

Member Function Documentation

QString rdf::BaseElement::id ( ) const

Returns the elment's id.

Returns
void rdf::BaseElement::scale ( double  factor)
virtual
void rdf::BaseElement::setId ( const QString &  id)

Sets the (preferably unique) ID. If no ID is set, a unqiue ID is generated and assigned.

Parameters
idThe identifier.
QString rdf::BaseElement::toString ( ) const
virtual

Friends And Related Function Documentation

DllCoreExport friend bool operator!= ( const BaseElement l,
const BaseElement r 
)
friend

Returns true if l and r do not have the same id.

Parameters
lAn element to compare.
rAn element to compare.
Returns
DllCoreExport friend QDataStream& operator<< ( QDataStream &  s,
const BaseElement e 
)
friend
DllCoreExport friend QDebug operator<< ( QDebug  d,
const BaseElement e 
)
friend
DllCoreExport friend bool operator== ( const BaseElement l,
const QString &  id 
)
friend
DllCoreExport friend bool operator== ( const BaseElement l,
const BaseElement r 
)
friend

Returns true if l and r have the same id.

Parameters
lAn element to compare.
rAn element to compare.
Returns

Member Data Documentation

QString rdf::BaseElement::mId
protected

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