Read@CVL
rdf::LabelInfo Class Reference

This class is used for mapping classes (e.g. handwriting, decoration) More...

#include <PixelLabel.h>

Public Types

enum  DefaultLabels { label_unknown = 0, label_end }
 

Public Member Functions

 LabelInfo (int id=label_unknown, const QString &mName=QString())
 
bool operator== (const LabelInfo &l1) const
 
bool operator!= (const LabelInfo &l1) const
 
bool isNull () const
 
bool contains (const QString &key) const
 
int id () const
 
QString name () const
 
QColor color () const
 
QColor visColor () const
 
bool isBackground () const
 
QString toString () const
 
void toJson (QJsonObject &jo) const
 

Static Public Member Functions

static LabelInfo fromString (const QString &str)
 
static LabelInfo fromJson (const QJsonObject &jo)
 
static QString jsonKey ()
 
static int color2Id (const QColor &col)
 
static LabelInfo unknownLabel ()
 

Protected Attributes

int mId = label_unknown
 
bool mIsBackground = false
 
QString mName = "unknown"
 
QStringList mAlias
 
QColor mVisColor = ColorManager::darkGray()
 

Friends

DllCoreExport friend QDataStream & operator<< (QDataStream &s, const LabelInfo &v)
 
DllCoreExport friend QDebug operator<< (QDebug d, const LabelInfo &v)
 

Detailed Description

This class is used for mapping classes (e.g. handwriting, decoration)

Member Enumeration Documentation

Enumerator
label_unknown 
label_end 

Constructor & Destructor Documentation

rdf::LabelInfo::LabelInfo ( int  id = label_unknown,
const QString &  mName = QString() 
)

Member Function Documentation

QColor rdf::LabelInfo::color ( ) const
int rdf::LabelInfo::color2Id ( const QColor &  col)
static
bool rdf::LabelInfo::contains ( const QString &  key) const
LabelInfo rdf::LabelInfo::fromJson ( const QJsonObject &  jo)
static
LabelInfo rdf::LabelInfo::fromString ( const QString &  str)
static
int rdf::LabelInfo::id ( ) const
bool rdf::LabelInfo::isBackground ( ) const
bool rdf::LabelInfo::isNull ( ) const
QString rdf::LabelInfo::jsonKey ( )
static
QString rdf::LabelInfo::name ( ) const
bool rdf::LabelInfo::operator!= ( const LabelInfo l1) const
bool rdf::LabelInfo::operator== ( const LabelInfo l1) const
void rdf::LabelInfo::toJson ( QJsonObject &  jo) const
QString rdf::LabelInfo::toString ( ) const
LabelInfo rdf::LabelInfo::unknownLabel ( )
static
QColor rdf::LabelInfo::visColor ( ) const

Friends And Related Function Documentation

DllCoreExport friend QDataStream& operator<< ( QDataStream &  s,
const LabelInfo v 
)
friend
DllCoreExport friend QDebug operator<< ( QDebug  d,
const LabelInfo v 
)
friend

Member Data Documentation

QStringList rdf::LabelInfo::mAlias
protected
int rdf::LabelInfo::mId = label_unknown
protected
bool rdf::LabelInfo::mIsBackground = false
protected
QString rdf::LabelInfo::mName = "unknown"
protected
QColor rdf::LabelInfo::mVisColor = ColorManager::darkGray()
protected

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