Colored SVG Hatch patterns

This commit is contained in:
WandererFan
2016-06-16 10:33:20 -04:00
committed by wmayer
parent 731f76f52d
commit 05d94f31f8
5 changed files with 27 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ DrawHatch::DrawHatch(void)
ADD_PROPERTY_TYPE(DirProjection ,(0,0,1.0) ,vgroup,App::Prop_None,"Projection direction when Hatch was defined"); //sb RO?
ADD_PROPERTY_TYPE(Source,(0),vgroup,(App::PropertyType)(App::Prop_None),"The View + Face to be hatched");
ADD_PROPERTY_TYPE(HatchPattern ,(""),vgroup,App::Prop_None,"The hatch pattern file for this area");
ADD_PROPERTY_TYPE(HatchColor,(0.0f,0.0f,0.0f),vgroup,App::Prop_None,"The color of the hatch area");
ADD_PROPERTY_TYPE(HatchColor,(0.0f,0.0f,0.0f),vgroup,App::Prop_None,"The color of the hatch pattern");
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw");
@@ -90,7 +90,6 @@ void DrawHatch::onChanged(const App::Property* prop)
App::DocumentObjectExecReturn *DrawHatch::execute(void)
{
//TODO: need to refresh DrawViewPart to reflect change in hatch
DrawViewPart* parent = getSourceView();
if (parent) {
parent->touch();

View File

@@ -103,7 +103,6 @@ void DrawPage::onChanged(const App::Property* prop)
if (prop == &Template) {
if (!isRestoring()) {
//TODO: reload if Template prop changes (ie different Template)
Base::Console().Message("TODO: Unimplemented function DrawPage::onChanged(Template)\n");
}
} else if (prop == &Views) {
if (!isRestoring()) {