method to get paths between two objects

This commit is contained in:
wmayer
2017-10-20 18:26:18 +02:00
parent af64ffcaf5
commit 725a5b6545
6 changed files with 114 additions and 0 deletions

View File

@@ -271,6 +271,12 @@ std::vector<App::DocumentObject*> DocumentObject::getOutListRecursive(void) cons
return array;
}
std::vector<std::list<App::DocumentObject*> >
DocumentObject::getPathsByOutList(App::DocumentObject* to) const
{
return _pDoc->getPathsByOutList(this, to);
}
DocumentObjectGroup* DocumentObject::getGroup() const
{
return dynamic_cast<DocumentObjectGroup*>(GroupExtension::getGroupOfObject(this));