Read@CVL
|
#include <ElementsHelper.h>
Public Member Functions | |
Region::Type | type (const QString &typeName) const |
QString | typeName (const Region::Type &type) const |
QStringList | typeNames () const |
bool | isValidTypeName (const QString &typeName) const |
QSharedPointer< Region > | createRegion (const Region::Type &type) const |
QSharedPointer< RegionTypeConfig > | getConfig (const QSharedPointer< Region > &r, const QVector< QSharedPointer< RegionTypeConfig > > &config=QVector< QSharedPointer< RegionTypeConfig > >()) const |
void | drawRegion (QPainter &p, QSharedPointer< rdf::Region > region, const QVector< QSharedPointer< RegionTypeConfig > > &config=QVector< QSharedPointer< RegionTypeConfig > >(), bool recursive=true, bool activeSelection=false) const |
QVector< QSharedPointer< rdf::Region > > | regionsAt (QSharedPointer< rdf::Region > root, const QPoint &p, const QVector< QSharedPointer< RegionTypeConfig > > &config=QVector< QSharedPointer< RegionTypeConfig > >()) const |
QVector< QSharedPointer< RegionTypeConfig > > | regionTypeConfig () const |
void | selectRegions (const QVector< QSharedPointer< Region >> &selRegions, QSharedPointer< Region > rootRegion=QSharedPointer< Region >()) const |
Selects the regions. More... | |
Static Public Member Functions | |
static RegionManager & | instance () |
template<typename T > | |
static QVector< QSharedPointer< T > > | filter (QSharedPointer< rdf::Region > root, const Region::Type &type, bool removeChildren=true) |
QSharedPointer< Region > rdf::RegionManager::createRegion | ( | const Region::Type & | type | ) | const |
void rdf::RegionManager::drawRegion | ( | QPainter & | p, |
QSharedPointer< rdf::Region > | region, | ||
const QVector< QSharedPointer< RegionTypeConfig > > & | config = QVector<QSharedPointer<RegionTypeConfig> >() , |
||
bool | recursive = true , |
||
bool | activeSelection = false |
||
) | const |
|
inlinestatic |
QSharedPointer< RegionTypeConfig > rdf::RegionManager::getConfig | ( | const QSharedPointer< Region > & | r, |
const QVector< QSharedPointer< RegionTypeConfig > > & | config = QVector<QSharedPointer<RegionTypeConfig> >() |
||
) | const |
|
static |
bool rdf::RegionManager::isValidTypeName | ( | const QString & | typeName | ) | const |
QVector< QSharedPointer< rdf::Region > > rdf::RegionManager::regionsAt | ( | QSharedPointer< rdf::Region > | root, |
const QPoint & | p, | ||
const QVector< QSharedPointer< RegionTypeConfig > > & | config = QVector<QSharedPointer<RegionTypeConfig> >() |
||
) | const |
QVector< QSharedPointer< RegionTypeConfig > > rdf::RegionManager::regionTypeConfig | ( | ) | const |
void rdf::RegionManager::selectRegions | ( | const QVector< QSharedPointer< Region >> & | selRegions, |
QSharedPointer< Region > | rootRegion = QSharedPointer<Region>() |
||
) | const |
Selects the regions.
selRegions | a vector with all regions to select. |
rootRegion | The root region. If it is not empty, all regions are unselected first. |
Region::Type rdf::RegionManager::type | ( | const QString & | typeName | ) | const |
QString rdf::RegionManager::typeName | ( | const Region::Type & | type | ) | const |
QStringList rdf::RegionManager::typeNames | ( | ) | const |