QGIS API Documentation
2.2.0-Valmiera
|
Container for features with the same fields and crs. More...
#include <qgsfeaturestore.h>
Public Member Functions | |
QgsFeatureStore () | |
Constructor. | |
QgsFeatureStore (const QgsFeatureStore &rhs) | |
Constructor. | |
QgsFeatureStore (const QgsFields &fields, const QgsCoordinateReferenceSystem &crs) | |
Constructor. | |
~QgsFeatureStore () | |
Destructor. | |
QgsFields & | fields () |
Get fields list. | |
void | setFields (const QgsFields &fields) |
Set fields. | |
QgsCoordinateReferenceSystem | crs () const |
Get crs. | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Set crs. | |
void | addFeature (const QgsFeature &feature) |
Add feature. | |
QgsFeatureList & | features () |
Get features list reference. | |
void | setParams (const QMap< QString, QVariant > &theParams) |
Set map of optional parameters. | |
QMap< QString, QVariant > | params () const |
Get map of optional parameters. |
Private Attributes | |
QgsFields | mFields |
QgsCoordinateReferenceSystem | mCrs |
QgsFeatureList | mFeatures |
QMap< QString, QVariant > | mParams |
Container for features with the same fields and crs.
Definition at line 30 of file qgsfeaturestore.h.
QgsFeatureStore::QgsFeatureStore | ( | ) |
Constructor.
Definition at line 18 of file qgsfeaturestore.cpp.
QgsFeatureStore::QgsFeatureStore | ( | const QgsFeatureStore & | rhs | ) |
Constructor.
Definition at line 22 of file qgsfeaturestore.cpp.
QgsFeatureStore::QgsFeatureStore | ( | const QgsFields & | fields, |
const QgsCoordinateReferenceSystem & | crs | ||
) |
Constructor.
Definition at line 30 of file qgsfeaturestore.cpp.
QgsFeatureStore::~QgsFeatureStore | ( | ) |
Destructor.
Definition at line 36 of file qgsfeaturestore.cpp.
void QgsFeatureStore::addFeature | ( | const QgsFeature & | feature | ) |
Add feature.
Feature's fields will be set to pointer to the store fields.
feature |
Definition at line 49 of file qgsfeaturestore.cpp.
References mFeatures, mFields, and QgsFeature::setFields().
|
inline |
Get crs.
Definition at line 52 of file qgsfeaturestore.h.
|
inline |
Get features list reference.
Definition at line 64 of file qgsfeaturestore.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
|
inline |
Get fields list.
Definition at line 46 of file qgsfeaturestore.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer(), and setFields().
|
inline |
Get map of optional parameters.
Definition at line 70 of file qgsfeaturestore.h.
Referenced by QgsMapToolIdentify::identifyRasterLayer().
|
inline |
Set crs.
Definition at line 55 of file qgsfeaturestore.h.
void QgsFeatureStore::setFields | ( | const QgsFields & | fields | ) |
Set fields.
Resets feauters fields to pointer to new internal fields.
Definition at line 40 of file qgsfeaturestore.cpp.
References fields(), mFeatures, mFields, and QgsFeature::setFields().
|
inline |
Set map of optional parameters.
Definition at line 67 of file qgsfeaturestore.h.
|
private |
Definition at line 75 of file qgsfeaturestore.h.
|
private |
Definition at line 77 of file qgsfeaturestore.h.
Referenced by addFeature(), and setFields().
|
private |
Definition at line 73 of file qgsfeaturestore.h.
Referenced by addFeature(), and setFields().
|
private |
Definition at line 80 of file qgsfeaturestore.h.