QVector<Point> to QVector<Point*>
This commit is contained in:
4
Canvas.h
4
Canvas.h
@@ -49,7 +49,7 @@ protected:
|
||||
private:
|
||||
// ====================== Поиск и выбор ======================
|
||||
Line* findAt(QPointF&); // ищет линию под курсором
|
||||
Point* findPointAt(QPointF, qreal tolerance = 10.0);
|
||||
Point* findPointAt(QPointF, qreal tolerance = 5.0);
|
||||
bool areCoincident(Point*, Point*, bool mode = false);
|
||||
// ====================== Параллельность ======================
|
||||
bool areAlreadyParallel(Line* l1, Line* l2); // проверка на дубликат
|
||||
@@ -61,7 +61,7 @@ private:
|
||||
// ====================== Данные сцены ======================
|
||||
System sys; // геометрический солвер
|
||||
QVector<Line*> lines; // завершённые линии
|
||||
QVector<Point> points; // все точки (для удобного доступа)
|
||||
QVector<Point*> points; // все точки (для удобного доступа)
|
||||
std::vector<double*> params; // все параметры, передаваемые в солвер
|
||||
|
||||
std::set<LinePair> parallelPairs; // уже запараллеленные пары (защита от дублей)
|
||||
|
||||
Reference in New Issue
Block a user