+ add overloaded constructor of SelectionObject

This commit is contained in:
wmayer
2016-04-29 18:10:44 +02:00
parent c249c6fb9c
commit 3edf272cc8
2 changed files with 8 additions and 0 deletions

View File

@@ -43,6 +43,13 @@ SelectionObject::SelectionObject()
{
}
SelectionObject::SelectionObject(App::DocumentObject* obj)
{
FeatName = obj->getNameInDocument();
DocName = obj->getDocument()->getName();
TypeName = obj->getTypeId().getName();
}
SelectionObject::~SelectionObject()
{
}

View File

@@ -44,6 +44,7 @@ class GuiExport SelectionObject : public Base::BaseClass
public:
/** Constructs a SelectionObject object. */
SelectionObject();
SelectionObject(App::DocumentObject*);
virtual ~SelectionObject();
/**
* The default implementation returns an instance of @ref SelectionObjectPy.