TechDraw: changed CosmeticVertex point picker dashed circle to filled dot. (#20095)
* techdraw: changed the cosmetic vertex shape * add back the call to prepareGeometryChange * add getVertexSize and getLineWidth methods to QGIViewPart * use doubles for sizes * update setRadius in QGMarker to use double instead of float
This commit is contained in:
@@ -41,7 +41,9 @@
|
||||
|
||||
#include "PreferencesGui.h"
|
||||
#include "QGTracker.h"
|
||||
#include "QGIVertex.h"
|
||||
#include "QGIView.h"
|
||||
#include "QGIViewPart.h"
|
||||
#include "QGSPage.h"
|
||||
#include "Rez.h"
|
||||
#include "ZVALUE.h"
|
||||
@@ -438,12 +440,15 @@ void QGTracker::setPoint(std::vector<QPointF> pts)
|
||||
return;
|
||||
}
|
||||
prepareGeometryChange();
|
||||
QPainterPath newPath;
|
||||
QPointF center = pts.front();
|
||||
double radius = 50.0;
|
||||
newPath.addEllipse(center, radius, radius);
|
||||
setPath(newPath);
|
||||
setPrettyNormal();
|
||||
|
||||
auto point = new QGIVertex(-1);
|
||||
point->setParentItem(this);
|
||||
point->setPos(pts.front());
|
||||
point->setRadius(static_cast<QGIViewPart *>(m_qgParent)->getVertexSize());
|
||||
point->setNormalColor(Qt::blue);
|
||||
point->setFillColor(Qt::blue);
|
||||
point->setPrettyNormal();
|
||||
point->setZValue(ZVALUE::VERTEX);
|
||||
}
|
||||
|
||||
std::vector<Base::Vector3d> QGTracker::convertPoints()
|
||||
|
||||
Reference in New Issue
Block a user