Skip to content
Permalink
Browse files

Remove some debug code

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13327 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 19, 2010
1 parent 57ed537 commit 13d32ee0d25a99855f95fba863144bded876e8e4
@@ -48,9 +48,6 @@ void QgsComposerArrow::initGraphicsSettings()
mPen.setColor( QColor( 0, 0, 0 ) );
mPen.setWidthF( 1 );

//setStartMarker( "/home/marco/src/qgis/images/svg/north_arrows/NorthArrow11.svg" );
//setEndMarker( "/home/marco/src/qgis/images/svg/north_arrows/NorthArrow11.svg" );

//set composer item brush and pen to transparent white by default
setPen( QPen( QColor( 255, 255, 255, 0 ) ) );
setBrush( QBrush( QColor( 255, 255, 255, 0 ) ) );
@@ -233,20 +233,11 @@ void QgsSimpleMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV
return;
}

//p->setBrush(mBrush);
//p->setPen(mPen);

//p->save();
//p->translate(point);

//drawMarker(p);
//mCache.save("/home/marco/tmp/marker.png","PNG");
QImage &img = context.selected() ? mSelCache : mCache;
double s = img.width() / context.renderContext().rasterScaleFactor();
p->drawImage( QRectF( point.x() - s / 2.0 + context.outputLineWidth( mOffset.x() ),
point.y() - s / 2.0 + context.outputLineWidth( mOffset.y() ),
s, s ), img );
//p->restore();
}


@@ -66,12 +66,6 @@ void QgsRasterTerrainAnalysisPlugin::unload()

void QgsRasterTerrainAnalysisPlugin::run()
{
//testcode, remove it after debugging and show a dialog
//QgsRuggednessFilter r("/home/marco/geodaten/raster/albis/mmal25.agr", "/home/marco/tmp/ruggedtest.tif", "GTiff");
//QgsSlopeFilter slopeFilter("/home/marco/geodaten/raster/albis/mmal25.agr", "/home/marco/tmp/ruggedtest.tif", "GTiff");
//QgsAspectFilter aspectFilter("/home/marco/geodaten/raster/albis/mmal25.agr", "/home/marco/tmp/ruggedtest.tif", "GTiff");
//slopeFilter.processRaster(0);

QgsRasterTerrainAnalysisDialog d( mIface );
if ( d.exec() == QDialog::Accepted )
{

0 comments on commit 13d32ee

Please sign in to comment.
You can’t perform that action at this time.