[TD]allow custom format for hidden lines
This commit is contained in:
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user