Initial Bitmap fills for Faces

- also texture from svg (not used yet)
This commit is contained in:
WandererFan
2016-12-31 12:51:25 -05:00
parent 0abb92c932
commit 1bae86f3b1
8 changed files with 164 additions and 36 deletions

View File

@@ -377,14 +377,16 @@ void QGIViewPart::drawViewPart()
TechDraw::DrawHatch* fHatch = faceIsHatched(i,hatchObjs);
if (fHatch) {
if (!fHatch->HatchPattern.isEmpty()) {
newFace->setHatchFile(fHatch->HatchPattern.getValue());
App::Color hColor = fHatch->HatchColor.getValue();
newFace->setHatchColor(hColor.asCSSString());
newFace->setHatchScale(fHatch->HatchScale.getValue());
newFace->setHatch(fHatch->HatchPattern.getValue());
newFace->isHatched(true);
}
}
newFace->setDrawEdges(false);
newFace->setZValue(ZVALUE::FACE);
newFace->draw();
newFace->setPrettyNormal();
}
}