Port Attacher codde to the extension framework

AttachableObjects are desired in multiple occasions, and the current AttachableObject is not flexible enough to handle all cases. Hence the code is portet to an extension, which gives the needed flexibility.
This commit is contained in:
Stefan Tröger
2016-11-30 17:25:26 +01:00
parent c4911aeca1
commit 67d76b309c
20 changed files with 136 additions and 118 deletions

View File

@@ -32,10 +32,11 @@
using namespace Part;
using namespace Attacher;
PROPERTY_SOURCE_ABSTRACT(Part::Datum, Part::AttachableObject)
PROPERTY_SOURCE_ABSTRACT_WITH_EXTENSIONS(Part::Datum, Part::Feature)
Datum::Datum(void)
{
AttachExtension::initExtension(this);
touch();
}
@@ -47,7 +48,7 @@ void Datum::onDocumentRestored()
{
// This seems to be the only way to make the ViewProvider display the datum feature
Support.touch();
AttachableObject::onDocumentRestored();
Part::Feature::onDocumentRestored();
}
TopoDS_Shape Datum::getShape() const