Skip to content
Permalink
Browse files

Requests for QgsMapToolAddCircle

  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent 79a2fd7 commit d377970db4b4f9a86028b981fa9e2d1b62bb1c99
Showing with 6 additions and 5 deletions.
  1. +0 −1 src/app/qgsmaptooladdcircle.cpp
  2. +6 −4 src/app/qgsmaptooladdcircle.h
@@ -26,7 +26,6 @@
QgsMapToolAddCircle::QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode )
: QgsMapToolCapture( canvas, QgisApp::instance()->cadDockWidget(), mode )
, mParentTool( parentTool )
, mCircle( QgsCircle() )
{
clean();
}
@@ -29,7 +29,7 @@ struct EdgesOnlyFilter : public QgsPointLocator::MatchFilter
class QgsMapToolAddCircle: public QgsMapToolCapture
{
Q_OBJECT
void clean();

public:
QgsMapToolAddCircle( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
~QgsMapToolAddCircle();
@@ -38,22 +38,24 @@ class QgsMapToolAddCircle: public QgsMapToolCapture
void keyReleaseEvent( QKeyEvent *e ) override;

void deactivate() override;

void activate() override;

protected:
explicit QgsMapToolAddCircle( QgsMapCanvas *canvas ); //forbidden
explicit QgsMapToolAddCircle( QgsMapCanvas *canvas ) = delete; //forbidden

/** The parent map tool, e.g. the add feature tool.
* Completed circle will be added to this tool by calling its addCurve() method.
* */
QgsMapToolCapture *mParentTool;
QgsMapToolCapture *mParentTool = nullptr;
//! Circle points (in map coordinates)
QgsPointSequence mPoints;
//! The rubberband to show the circular string currently working on
QgsGeometryRubberBand *mTempRubberBand = nullptr;
//! Circle
QgsCircle mCircle;

private:
void clean();
};

#endif // QGSMAPTOOLADDCIRCLE_H

0 comments on commit d377970

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