Gui::SelectionObserverPython Class Reference

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)
 

Detailed Description

The SelectionObserverPython class implements a mechanism to register a Python class instance implementing the required interface in order to be notified on selection changes.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ SelectionObserverPython()

SelectionObserverPython::SelectionObserverPython ( const Py::Object &  obj,
ResolveMode  resolve = ResolveMode::OldStyleElement 
)

Constructor.

Referenced by addObserver().

◆ ~SelectionObserverPython()

SelectionObserverPython::~SelectionObserverPython ( )
virtual

Member Function Documentation

◆ addObserver()

void SelectionObserverPython::addObserver ( const Py::Object &  obj,
ResolveMode  resolve = ResolveMode::OldStyleElement 
)
static

◆ removeObserver()

void SelectionObserverPython::removeObserver ( const Py::Object &  obj)
static

The documentation for this class was generated from the following files: