QGIS API Documentation  2.1.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
QgsSimplifiedVectorLayerFeatureIterator Class Reference

Provides a specialized VectorLayerFeatureIterator for enable simplification of the geometries fetched. More...

#include <qgsvectorlayerfeatureiterator.h>

Inheritance diagram for QgsSimplifiedVectorLayerFeatureIterator:
Inheritance graph
[legend]
Collaboration diagram for QgsSimplifiedVectorLayerFeatureIterator:
Collaboration graph
[legend]

Public Member Functions

 QgsSimplifiedVectorLayerFeatureIterator (QgsVectorLayer *layer, const QgsFeatureRequest &request, QgsAbstractGeometrySimplifier *simplifier)
 
 ~QgsSimplifiedVectorLayerFeatureIterator ()
 
- Public Member Functions inherited from QgsVectorLayerFeatureIterator
 QgsVectorLayerFeatureIterator (QgsVectorLayer *layer, const QgsFeatureRequest &request)
 
 ~QgsVectorLayerFeatureIterator ()
 
virtual bool rewind ()
 reset the iterator to the starting position More...
 
virtual bool close ()
 end of iterating: free the resources / lock More...
 
- Public Member Functions inherited from QgsAbstractFeatureIterator
 QgsAbstractFeatureIterator (const QgsFeatureRequest &request)
 base class constructor - stores the iteration parameters More...
 
virtual ~QgsAbstractFeatureIterator ()
 destructor makes sure that the iterator is closed properly More...
 
virtual bool nextFeature (QgsFeature &f)
 fetch next feature, return true on success More...
 

Protected Member Functions

virtual bool fetchFeature (QgsFeature &feature)
 fetch next feature, return true on success More...
 
- Protected Member Functions inherited from QgsVectorLayerFeatureIterator
virtual bool nextFeatureFilterExpression (QgsFeature &f)
 Overrides default method as we only need to filter features in the edit buffer while for others filtering is left to the provider implementation. More...
 
void rewindEditBuffer ()
 
void prepareJoins ()
 
bool fetchNextAddedFeature (QgsFeature &f)
 
bool fetchNextChangedGeomFeature (QgsFeature &f)
 
bool fetchNextChangedAttributeFeature (QgsFeature &f)
 
void useAddedFeature (const QgsFeature &src, QgsFeature &f)
 
void useChangedAttributeFeature (QgsFeatureId fid, const QgsGeometry &geom, QgsFeature &f)
 
bool nextFeatureFid (QgsFeature &f)
 
void addJoinedAttributes (QgsFeature &f)
 
void updateChangedAttributes (QgsFeature &f)
 Update feature with uncommited attribute updates. More...
 
void updateFeatureGeometry (QgsFeature &f)
 Update feature with uncommited geometry updates. More...
 
- Protected Member Functions inherited from QgsAbstractFeatureIterator
virtual bool nextFeatureFilterFids (QgsFeature &f)
 By default, the iterator will fetch all features and check if the id is in the request. More...
 
void ref ()
 add reference More...
 
void deref ()
 remove reference, delete if refs == 0 More...
 

Private Attributes

QgsAbstractGeometrySimplifiermSimplifier
 Related geometry simplifier. More...
 
bool mSupportsPresimplify
 Indicates the related vector provider supports simplify the geometries before fecth the feature. More...
 

Additional Inherited Members

- Protected Attributes inherited from QgsVectorLayerFeatureIterator
QgsVectorLayerL
 
QgsFeatureRequest mProviderRequest
 
QgsFeatureIterator mProviderIterator
 
QgsFeatureRequest mChangedFeaturesRequest
 
QgsFeatureIterator mChangedFeaturesIterator
 
QSet< QgsFeatureIdmFetchConsidered
 
QgsGeometryMap::ConstIterator mFetchChangedGeomIt
 
QgsFeatureMap::ConstIterator mFetchAddedFeaturesIt
 
bool mFetchedFid
 
QgsFeatureMap mAddedFeatures
 
QgsGeometryMap mChangedGeometries
 
QgsFeatureIds mDeletedFeatureIds
 
QList< QgsFieldmAddedAttributes
 
QgsChangedAttributesMap mChangedAttributeValues
 
QgsAttributeList mDeletedAttributeIds
 
QMap< QgsVectorLayer
*, FetchJoinInfo
mFetchJoinInfo
 Informations about joins used in the current select() statement. More...
 
- Protected Attributes inherited from QgsAbstractFeatureIterator
QgsFeatureRequest mRequest
 A copy of the feature request. More...
 
bool mClosed
 Set to true, as soon as the iterator is closed. More...
 
int refs
 reference counting (to allow seamless copying of QgsFeatureIterator instances) More...
 

Detailed Description

Provides a specialized VectorLayerFeatureIterator for enable simplification of the geometries fetched.

Definition at line 138 of file qgsvectorlayerfeatureiterator.h.

Constructor & Destructor Documentation

QgsSimplifiedVectorLayerFeatureIterator::QgsSimplifiedVectorLayerFeatureIterator ( QgsVectorLayer layer,
const QgsFeatureRequest request,
QgsAbstractGeometrySimplifier simplifier 
)
QgsSimplifiedVectorLayerFeatureIterator::~QgsSimplifiedVectorLayerFeatureIterator ( )

Definition at line 616 of file qgsvectorlayerfeatureiterator.cpp.

References mSimplifier.

Member Function Documentation

bool QgsSimplifiedVectorLayerFeatureIterator::fetchFeature ( QgsFeature feature)
protectedvirtual

Member Data Documentation

QgsAbstractGeometrySimplifier* QgsSimplifiedVectorLayerFeatureIterator::mSimplifier
private

Related geometry simplifier.

Definition at line 150 of file qgsvectorlayerfeatureiterator.h.

Referenced by fetchFeature(), and ~QgsSimplifiedVectorLayerFeatureIterator().

bool QgsSimplifiedVectorLayerFeatureIterator::mSupportsPresimplify
private

Indicates the related vector provider supports simplify the geometries before fecth the feature.

Definition at line 152 of file qgsvectorlayerfeatureiterator.h.

Referenced by fetchFeature(), and QgsSimplifiedVectorLayerFeatureIterator().


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