[TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update - all cosmetics to store geometry in same form - all cosmetics to survive scaling and rotation - extension functions to survive scaling and rotation * [TD]overhaul leader point storage and editing - add py routine makeLeader(points) * [TD]add leader conversion utility * [TD]Set Leader RotateWithView default to true * [TD]fix intersection vertex position * [TD]add CosmeticEdge::makeLineFromCanonicalPoints * [TD]fix 2 Extension tools - positioning in DrawCosmeticCircle - mishandling of points in execLineParallelPerpendicular * [TD]Remove duplicate constexpr * [TD]fix 2x Cosmetic arc tools * [TD]refactor LineFormat out of Cosmetic * [TD]move cosmetic appearance settings to LineFormat * [TD]remove 2 unused methods * [TD]apply format to blue line & circle tools * [TD]fix ballon arrowhead does not rotate with view * [TD]fix CosmeticCircle3Points * [TD]allow multiple cosmetic object deletions * [TD]fix extend/shorten centerline
This commit is contained in:
@@ -54,10 +54,12 @@ QPainterPath PathBuilder::geomToPainterPath(BaseGeomPtr baseGeom, double rot) co
|
||||
} break;
|
||||
case ARCOFCIRCLE: {
|
||||
TechDraw::AOCPtr geom = std::static_pointer_cast<TechDraw::AOC>(baseGeom);
|
||||
if (baseGeom->getReversed()) {
|
||||
if (baseGeom->getReversed()) { // OCC reversed flag
|
||||
path.moveTo(Rez::guiX(geom->endPnt.x), Rez::guiX(geom->endPnt.y));
|
||||
pathArc(path, Rez::guiX(geom->radius), Rez::guiX(geom->radius), 0., geom->largeArc,
|
||||
!geom->cw, Rez::guiX(geom->startPnt.x), Rez::guiX(geom->startPnt.y),
|
||||
pathArc(path, Rez::guiX(geom->radius), Rez::guiX(geom->radius), 0.,
|
||||
geom->largeArc, // >180?
|
||||
!geom->cw, // calculated from start and end angle not occ edge
|
||||
Rez::guiX(geom->startPnt.x), Rez::guiX(geom->startPnt.y),
|
||||
Rez::guiX(geom->endPnt.x), Rez::guiX(geom->endPnt.y));
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user