QVector<Point> to QVector<Point*>

This commit is contained in:
2025-12-09 18:40:53 +03:00
parent 06a21821b4
commit 71a2a382f1
3 changed files with 15 additions and 8 deletions

View File

@@ -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; // уже запараллеленные пары (защита от дублей)