Quantum GIS API Documentation
1.8
|
00001 /*************************************************************************** 00002 qgsvectoroverlay.cpp - description 00003 -------------------- 00004 begin : January 2007 00005 copyright : (C) 2007 by Marco Hugentobler 00006 email : marco dot hugentobler at karto dot baug dot ethz dot ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #include "qgsvectoroverlay.h" 00019 #include "qgsoverlayobject.h" 00020 00021 QgsVectorOverlay::QgsVectorOverlay( QgsVectorLayer* vl ): mVectorLayer( vl ), mDisplayFlag( true ) 00022 { 00023 00024 } 00025 00026 QgsVectorOverlay::~QgsVectorOverlay() 00027 { 00028 00029 } 00030 00031 void QgsVectorOverlay::removeOverlayObjects() 00032 { 00033 QMap<QgsFeatureId, QgsOverlayObject*>::iterator it = mOverlayObjects.begin(); 00034 for ( ; it != mOverlayObjects.end(); ++it ) 00035 { 00036 delete( it.value() ); 00037 } 00038 mOverlayObjects.clear(); 00039 }