+ add overloaded constructor of SelectionObject
This commit is contained in:
@@ -43,6 +43,13 @@ SelectionObject::SelectionObject()
|
||||
{
|
||||
}
|
||||
|
||||
SelectionObject::SelectionObject(App::DocumentObject* obj)
|
||||
{
|
||||
FeatName = obj->getNameInDocument();
|
||||
DocName = obj->getDocument()->getName();
|
||||
TypeName = obj->getTypeId().getName();
|
||||
}
|
||||
|
||||
SelectionObject::~SelectionObject()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user