-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgsmaptoolcircle3tangents.h
38 lines (32 loc) · 1.62 KB
/
qgsmaptoolcircle3tangents.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/***************************************************************************
qgsmaptoolcircle3tangents.h - map tool for adding circle
from 3 tangents
---------------------
begin : July 2017
copyright : (C) 2017 by Loïc Bartoletti
email : lbartoletti at tuxfamily dot org
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSMAPTOOLCIRCLE3TANGENTS_H
#define QGSMAPTOOLCIRCLE3TANGENTS_H
#include "qgspointlocator.h"
#include "qgsmaptooladdcircle.h"
class QgsMapToolCircle3Tangents: public QgsMapToolAddCircle
{
Q_OBJECT
public:
QgsMapToolCircle3Tangents( QgsMapToolCapture *parentTool, QgsMapCanvas *canvas, CaptureMode mode = CaptureLine );
void cadCanvasReleaseEvent( QgsMapMouseEvent *e ) override;
void cadCanvasMoveEvent( QgsMapMouseEvent *e ) override;
void clean() override;
private:
//! Snapped points on the segments. Useful to determine which circle to choose in case of there are two parallels
QVector<QgsPoint> mPosPoints;
};
#endif // QGSMAPTOOLCIRCLE3TANGENTS_H