[TD]Section dialog revisions & editor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user