add method to get view that contains a given node

This commit is contained in:
wmayer
2016-08-14 18:01:10 +02:00
parent 279531e89d
commit 554875b930
6 changed files with 31 additions and 7 deletions

View File

@@ -31,6 +31,7 @@
class SoMaterial;
class SoDrawStyle;
class SoNode;
class SoType;
namespace App
@@ -116,6 +117,9 @@ protected:
If a value different to 0 is returned it is guaranteed to be a 3d view.
*/
Gui::MDIView* getInventorView() const;
/*! Get the mdi view of the document that contains the given \a node.
*/
Gui::MDIView* getViewOfNode(SoNode* node) const;
/// get called before the value is changed
virtual void onBeforeChange(const App::Property* prop);
/// Gets called by the container whenever a property has been changed