Implement LineGroups for default weights
- Add ability to control default weight for visible, hidden and decorative lines from a configuration file. Diffent sets of defaults can be specified as a preference.
This commit is contained in:
@@ -642,7 +642,7 @@ void QGIViewPart::drawSectionLine(TechDraw::DrawViewSection* viewSection, bool b
|
||||
yVal = sectionSpan / 2.0;
|
||||
}
|
||||
sectionLine->setBounds(-xVal,-yVal,xVal,yVal);
|
||||
sectionLine->setWidth(Rez::guiX(viewPart->LineWidth.getValue())); //TODO: add fudge to make sectionLine thinner than reg lines?
|
||||
sectionLine->setWidth(Rez::guiX(viewPart->IsoWidth.getValue()));
|
||||
sectionLine->setFont(m_font,Rez::guiX(6.0));
|
||||
sectionLine->setZValue(ZVALUE::SECTIONLINE);
|
||||
sectionLine->setRotation(viewPart->Rotation.getValue());
|
||||
@@ -673,7 +673,7 @@ void QGIViewPart::drawCenterLines(bool b)
|
||||
xVal = sectionSpan / 2.0;
|
||||
yVal = 0.0;
|
||||
centerLine->setBounds(-xVal,-yVal,xVal,yVal);
|
||||
//centerLine->setWidth(viewPart->LineWidth.getValue());
|
||||
centerLine->setWidth(Rez::guiX(viewPart->IsoWidth.getValue()));
|
||||
centerLine->setZValue(ZVALUE::SECTIONLINE);
|
||||
centerLine->setRotation(viewPart->Rotation.getValue());
|
||||
centerLine->draw();
|
||||
@@ -686,7 +686,7 @@ void QGIViewPart::drawCenterLines(bool b)
|
||||
xVal = 0.0;
|
||||
yVal = sectionSpan / 2.0;
|
||||
centerLine->setBounds(-xVal,-yVal,xVal,yVal);
|
||||
//centerLine->setWidth(viewPart->LineWidth.getValue());
|
||||
centerLine->setWidth(Rez::guiX(viewPart->IsoWidth.getValue()));
|
||||
centerLine->setZValue(ZVALUE::SECTIONLINE);
|
||||
centerLine->setRotation(viewPart->Rotation.getValue());
|
||||
centerLine->draw();
|
||||
@@ -714,7 +714,7 @@ void QGIViewPart::drawHighlight(TechDraw::DrawViewDetail* viewDetail, bool b)
|
||||
Base::Vector3d center = viewDetail->AnchorPoint.getValue() * viewPart->getScale();
|
||||
double radius = viewDetail->Radius.getValue() * viewPart->getScale();
|
||||
highlight->setBounds(center.x - radius, center.y + radius,center.x + radius, center.y - radius);
|
||||
highlight->setWidth(Rez::guiX(viewPart->LineWidth.getValue()));
|
||||
highlight->setWidth(Rez::guiX(viewPart->IsoWidth.getValue()));
|
||||
highlight->setFont(m_font,Rez::guiX(6.0));
|
||||
highlight->setZValue(ZVALUE::HIGHLIGHT);
|
||||
highlight->draw();
|
||||
|
||||
Reference in New Issue
Block a user