[TD]allow custom format for hidden lines

This commit is contained in:
wandererfan
2024-05-18 14:15:29 -04:00
committed by WandererFan
parent 42a660a893
commit f937d4579a

View File

@@ -413,19 +413,20 @@ void QGIViewPart::drawAllEdges()
item->setWidth(Rez::guiX(gf->m_format.m_weight));
showItem = gf->m_format.m_visible;
} else {
// unformatted line, draw as continuous line
item->setLinePen(m_dashedLineGenerator->getLinePen(1, vp->LineWidth.getValue()));
item->setWidth(Rez::guiX(vp->LineWidth.getValue()));
if (!(*itGeom)->getHlrVisible()) {
// hidden line without a format
item->setLinePen(m_dashedLineGenerator->getLinePen(Preferences::HiddenLineStyle(),
vp->LineWidth.getValue()));
item->setWidth(Rez::guiX(vp->HiddenWidth.getValue())); //thin
item->setZValue(ZVALUE::HIDEDGE);
} else {
// unformatted visible line, draw as continuous line
item->setLinePen(m_dashedLineGenerator->getLinePen(1, vp->LineWidth.getValue()));
item->setWidth(Rez::guiX(vp->LineWidth.getValue()));
}
}
}
if (!(*itGeom)->getHlrVisible()) {
item->setLinePen(m_dashedLineGenerator->getLinePen(Preferences::HiddenLineStyle(),
vp->LineWidth.getValue()));
item->setWidth(Rez::guiX(vp->HiddenWidth.getValue())); //thin
item->setZValue(ZVALUE::HIDEDGE);
}
if ((*itGeom)->getClassOfEdge() == ecUVISO) {
// we don't have a style option for iso-parametric lines so draw continuous
item->setLinePen(m_dashedLineGenerator->getLinePen(1, vp->IsoWidth.getValue()));