[TD]Section dialog revisions & editor

This commit is contained in:
wandererfan
2019-09-25 21:05:10 -04:00
committed by WandererFan
parent 303c84e90f
commit 55778c7458
12 changed files with 1776 additions and 689 deletions

View File

@@ -192,6 +192,7 @@ void DrawViewSection::onChanged(const App::Property* prop)
App::DocumentObjectExecReturn *DrawViewSection::execute(void)
{
// Base::Console().Message("DVS::execute() - %s \n", getNameInDocument());
if (!keepUpdated()) {
return App::DocumentObject::StdReturn;
}
@@ -532,6 +533,14 @@ bool DrawViewSection::isReallyInBox (const gp_Pnt p, const Bnd_Box& bb) const
return !bb.IsOut(p);
}
void DrawViewSection::setNormalFromBase(const std::string sectionName)
{
// Base::Console().Message("DVS::setNormalFromBase(%s)\n", sectionName.c_str());
Base::Vector3d normal = getSectionVector(sectionName);
Direction.setValue(normal);
SectionNormal.setValue(normal);
}
//! calculate the section Normal/Projection Direction given section name
//TODO: this should take base view rotation into account.
Base::Vector3d DrawViewSection::getSectionVector (const std::string sectionName)