The SelectionObserverPython class implements a mechanism to register a Python class instance implementing the required interface in order to be notified on selection changes. More...
#include <Selection.h>
Public Member Functions | |
SelectionObserverPython (const Py::Object &obj, ResolveMode resolve=ResolveMode::OldStyleElement) | |
Constructor. More... | |
virtual | ~SelectionObserverPython () |
Public Member Functions inherited from Gui::SelectionObserver | |
void | attachSelection () |
Attaches to the selection. More... | |
bool | blockSelection (bool block) |
void | detachSelection () |
Detaches from the selection. More... | |
bool | isSelectionAttached () const |
bool | isSelectionBlocked () const |
SelectionObserver (bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
Constructor. More... | |
SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, ResolveMode resolve=ResolveMode::OldStyleElement) | |
Constructor. More... | |
virtual | ~SelectionObserver () |
Static Public Member Functions | |
static void | addObserver (const Py::Object &obj, ResolveMode resolve=ResolveMode::OldStyleElement) |
static void | removeObserver (const Py::Object &obj) |
The SelectionObserverPython class implements a mechanism to register a Python class instance implementing the required interface in order to be notified on selection changes.
SelectionObserverPython::SelectionObserverPython | ( | const Py::Object & | obj, |
ResolveMode | resolve = ResolveMode::OldStyleElement |
||
) |
Constructor.
Referenced by addObserver().
|
virtual |
|
static |
References SelectionObserverPython().
Referenced by Gui::SelectionSingleton::sAddSelObserver().
|
static |
Referenced by Gui::SelectionSingleton::sRemSelObserver().