List of active or special objects This class holds a list of objects with a special name. More...
#include <ActiveObjectList.h>
Public Member Functions | |
ActiveObjectList (Document *doc) | |
template<typename _T > | |
_T | getObject (const char *name, App::DocumentObject **parent=nullptr, std::string *subname=nullptr) const |
bool | hasObject (App::DocumentObject *obj, const char *, const char *subname=nullptr) const |
bool | hasObject (const char *) const |
void | objectDeleted (const ViewProviderDocumentObject &viewProviderIn) |
void | setObject (App::DocumentObject *, const char *, const char *subname=nullptr, const Gui::HighlightMode &m=HighlightMode::UserDefined) |
List of active or special objects This class holds a list of objects with a special name.
Its mainly used to points to something like the active Body or Part in a edit session. The class is used the viewer (editor) of a document.
Gui::ActiveObjectList::ActiveObjectList | ( | Document * | doc | ) |
_T Gui::ActiveObjectList::getObject | ( | const char * | name, |
App::DocumentObject ** | parent = nullptr , |
||
std::string * | subname = nullptr |
||
) | const |
bool Gui::ActiveObjectList::hasObject | ( | App::DocumentObject * | obj, |
const char * | name, | ||
const char * | subname = nullptr |
||
) | const |
bool Gui::ActiveObjectList::hasObject | ( | const char * | name | ) | const |
void ActiveObjectList::objectDeleted | ( | const ViewProviderDocumentObject & | viewProviderIn | ) |
References Gui::ViewProviderDocumentObject::getObject().
void Gui::ActiveObjectList::setObject | ( | App::DocumentObject * | obj, |
const char * | name, | ||
const char * | subname = nullptr , |
||
const Gui::HighlightMode & | m = HighlightMode::UserDefined |
||
) |