OpenIndy-Core  0.2.0.43
oi::FeatureContainer Class Reference

The FeatureContainer class Works as a container for all features in an OiJob. The features are stored as lists and also as maps (e.g. with their id as key). The lists and maps are kept in sync. More...

#include <featurecontainer.h>

Public Member Functions

 FeatureContainer ()
 FeatureContainer::FeatureContainer. More...
 
 ~FeatureContainer ()
 FeatureContainer::~FeatureContainer. More...
 
const QList< QPointer< FeatureWrapper > > & getFeaturesList () const
 FeatureContainer::getFeaturesList. More...
 
const QList< QPointer< CoordinateSystem > > & getCoordinateSystemsList () const
 FeatureContainer::getCoordinateSystemsList. More...
 
QList< QPointer< CoordinateSystem > > getStationSystemsList () const
 FeatureContainer::getStationSystemsList. More...
 
const QList< QPointer< Station > > & getStationsList () const
 FeatureContainer::getStationsList. More...
 
const QList< QPointer< TrafoParam > > & getTransformationParametersList () const
 FeatureContainer::getTransformationParametersList. More...
 
const QList< QPointer< FeatureWrapper > > & getGeometriesList () const
 FeatureContainer::getGeometriesList. More...
 
const QList< int > & getFeatureIdList () const
 FeatureContainer::getFeatureIdList. More...
 
const QStringList & getFeatureNameList () const
 FeatureContainer::getFeatureNameList. More...
 
const QStringList & getFeatureGroupList () const
 FeatureContainer::getFeatureGroupList. More...
 
const QList< QPair< QString, bool > > & getUsedMeasurementConfigs () const
 FeatureContainer::getUsedMeasurementConfigs. More...
 
QPointer< FeatureWrappergetFeatureById (const int &featureId) const
 FeatureContainer::getFeatureById. More...
 
QList< QPointer< FeatureWrapper > > getFeaturesByName (const QString &name) const
 FeatureContainer::getFeaturesByName. More...
 
QList< QPointer< FeatureWrapper > > getFeaturesByGroup (const QString &group) const
 FeatureContainer::getFeaturesByGroup. More...
 
QList< QPointer< FeatureWrapper > > getFeaturesByType (const FeatureTypes &type) const
 FeatureContainer::getFeaturesByType. More...
 
QList< QPointer< Geometry > > getGeometriesByMConfig (const QPair< QString, bool > &mConfig) const
 FeatureContainer::getGeometriesByMConfig. More...
 
int getFeatureCount () const
 FeatureContainer::getFeatureCount. More...
 
int getGeometryCount () const
 FeatureContainer::getGeometryCount. More...
 
int getFeatureCount (const FeatureTypes &type) const
 FeatureContainer::getFeatureCount. More...
 
int getFeatureCount (const QString &group) const
 FeatureContainer::getFeatureCount. More...
 
int getFeatureCount (const QPair< QString, bool > &mConfig) const
 FeatureContainer::getFeatureCount. More...
 
bool addFeature (const QPointer< FeatureWrapper > &feature)
 FeatureContainer::addFeature. More...
 
bool removeFeature (const int &featureId)
 FeatureContainer::removeFeature. More...
 
void checkAndClean (const int &featureId, const QString &name, const QString &group, const FeatureTypes &type)
 FeatureContainer::checkAndClean Checks wether there is a feature with the given id and removes it. More...
 
void removeAll ()
 FeatureContainer::removeAll Remove and delete all features. More...
 
bool featureNameChanged (const int &featureId, const QString &oldName)
 FeatureContainer::featureNameChanged Is called whenever the name of a feature has changed. More...
 
bool featureGroupChanged (const int &featureId, const QString &oldGroup)
 FeatureContainer::featureGroupChanged Is called whenever the group of a feature has changed. More...
 
bool geometryMeasurementConfigChanged (const int &featureId, const QString &oldMConfig, bool oldIsSaved)
 FeatureContainer::geometryMeasurementConfigChanged. More...
 

Detailed Description

The FeatureContainer class Works as a container for all features in an OiJob. The features are stored as lists and also as maps (e.g. with their id as key). The lists and maps are kept in sync.

Constructor & Destructor Documentation

FeatureContainer::FeatureContainer ( )
FeatureContainer::~FeatureContainer ( )

Member Function Documentation

bool FeatureContainer::addFeature ( const QPointer< FeatureWrapper > &  feature)

FeatureContainer::addFeature.

Parameters
feature
Returns
void FeatureContainer::checkAndClean ( const int &  featureId,
const QString &  name,
const QString &  group,
const FeatureTypes type 
)

FeatureContainer::checkAndClean Checks wether there is a feature with the given id and removes it.

Parameters
featureId
name
group
type
bool FeatureContainer::featureGroupChanged ( const int &  featureId,
const QString &  oldGroup 
)

FeatureContainer::featureGroupChanged Is called whenever the group of a feature has changed.

Parameters
featureId
oldGroup
Returns
bool FeatureContainer::featureNameChanged ( const int &  featureId,
const QString &  oldName 
)

FeatureContainer::featureNameChanged Is called whenever the name of a feature has changed.

Parameters
featureId
oldName
Returns
bool FeatureContainer::geometryMeasurementConfigChanged ( const int &  featureId,
const QString &  oldMConfig,
bool  oldIsSaved 
)

FeatureContainer::geometryMeasurementConfigChanged.

Parameters
featureId
oldMConfig
oldIsSaved
Returns
const QList< QPointer< CoordinateSystem > > & FeatureContainer::getCoordinateSystemsList ( ) const
QPointer< FeatureWrapper > FeatureContainer::getFeatureById ( const int &  featureId) const

FeatureContainer::getFeatureById.

Parameters
featureId
Returns
int FeatureContainer::getFeatureCount ( ) const
int FeatureContainer::getFeatureCount ( const FeatureTypes type) const

FeatureContainer::getFeatureCount.

Parameters
type
Returns
int FeatureContainer::getFeatureCount ( const QString &  group) const

FeatureContainer::getFeatureCount.

Parameters
group
Returns
int FeatureContainer::getFeatureCount ( const QPair< QString, bool > &  mConfig) const

FeatureContainer::getFeatureCount.

Parameters
mConfig
Returns
const QStringList & FeatureContainer::getFeatureGroupList ( ) const
const QList< int > & FeatureContainer::getFeatureIdList ( ) const
const QStringList & FeatureContainer::getFeatureNameList ( ) const
QList< QPointer< FeatureWrapper > > FeatureContainer::getFeaturesByGroup ( const QString &  group) const

FeatureContainer::getFeaturesByGroup.

Parameters
group
Returns
QList< QPointer< FeatureWrapper > > FeatureContainer::getFeaturesByName ( const QString &  name) const

FeatureContainer::getFeaturesByName.

Parameters
name
Returns
QList< QPointer< FeatureWrapper > > FeatureContainer::getFeaturesByType ( const FeatureTypes type) const

FeatureContainer::getFeaturesByType.

Parameters
type
Returns
const QList< QPointer< FeatureWrapper > > & FeatureContainer::getFeaturesList ( ) const
QList< QPointer< Geometry > > FeatureContainer::getGeometriesByMConfig ( const QPair< QString, bool > &  mConfig) const

FeatureContainer::getGeometriesByMConfig.

Parameters
mConfig
Returns
const QList< QPointer< FeatureWrapper > > & FeatureContainer::getGeometriesList ( ) const
int FeatureContainer::getGeometryCount ( ) const
const QList< QPointer< Station > > & FeatureContainer::getStationsList ( ) const
QList< QPointer< CoordinateSystem > > FeatureContainer::getStationSystemsList ( ) const
const QList< QPointer< TrafoParam > > & FeatureContainer::getTransformationParametersList ( ) const
const QList< QPair< QString, bool > > & FeatureContainer::getUsedMeasurementConfigs ( ) const
void FeatureContainer::removeAll ( )

FeatureContainer::removeAll Remove and delete all features.

bool FeatureContainer::removeFeature ( const int &  featureId)

FeatureContainer::removeFeature.

Parameters
featureId
Returns

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