Read@CVL
rdf::LabelManager Class Reference

This class manages all labels loaded. It can be used to compare LabelInfo objects, and load them. More...

#include <PixelLabel.h>

Public Member Functions

 LabelManager ()
 
bool isEmpty () const
 
int size () const
 
void toJson (QJsonObject &jo) const
 
void add (const LabelInfo &label)
 
bool contains (const LabelInfo &label) const
 
bool containsId (const LabelInfo &label) const
 
QString toString () const
 
LabelInfo find (const QString &str) const
 
LabelInfo find (const Region &r) const
 
LabelInfo find (int id) const
 
int indexOf (int id) const
 
LabelInfo backgroundLabel () const
 Returns the first label that is marked as background label. More...
 
QVector< LabelInfolabelInfos () const
 
void draw (QPainter &p) const
 

Static Public Member Functions

static LabelManager read (const QString &filePath)
 
static LabelManager fromJson (const QJsonObject &jo)
 
static QString jsonKey ()
 

Protected Attributes

QVector< LabelInfomLookups
 

Detailed Description

This class manages all labels loaded. It can be used to compare LabelInfo objects, and load them.

Constructor & Destructor Documentation

rdf::LabelManager::LabelManager ( )

Member Function Documentation

void rdf::LabelManager::add ( const LabelInfo label)
LabelInfo rdf::LabelManager::backgroundLabel ( ) const

Returns the first label that is marked as background label.

Returns
bool rdf::LabelManager::contains ( const LabelInfo label) const
bool rdf::LabelManager::containsId ( const LabelInfo label) const
void rdf::LabelManager::draw ( QPainter &  p) const
LabelInfo rdf::LabelManager::find ( const QString &  str) const
LabelInfo rdf::LabelManager::find ( const Region r) const
LabelInfo rdf::LabelManager::find ( int  id) const
LabelManager rdf::LabelManager::fromJson ( const QJsonObject &  jo)
static
int rdf::LabelManager::indexOf ( int  id) const
bool rdf::LabelManager::isEmpty ( ) const
QString rdf::LabelManager::jsonKey ( )
static
QVector< LabelInfo > rdf::LabelManager::labelInfos ( ) const
LabelManager rdf::LabelManager::read ( const QString &  filePath)
static
int rdf::LabelManager::size ( ) const
void rdf::LabelManager::toJson ( QJsonObject &  jo) const
QString rdf::LabelManager::toString ( ) const

Member Data Documentation

QVector<LabelInfo> rdf::LabelManager::mLookups
protected

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