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, int resolve=1)
 Constructor. More...
 
virtual ~SelectionObserverPython ()
 
- Public Member Functions inherited from Gui::SelectionObserver
void attachSelection ()
 Attaches to the selection. More...
 
bool blockConnection (bool block)
 
void detachSelection ()
 Detaches from the selection. More...
 
bool isConnectionAttached () const
 
bool isConnectionBlocked () const
 
 SelectionObserver (bool attach=true, int resolve=1)
 Constructor. More...
 
 SelectionObserver (const Gui::ViewProviderDocumentObject *vp, bool attach=true, int resolve=1)
 Constructor. More...
 
virtual ~SelectionObserver ()
 

Static Public Member Functions

static void addObserver (const Py::Object &obj, int resolve=1)
 
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,
int  resolve = 1 
)

Constructor.

Referenced by addObserver().

◆ ~SelectionObserverPython()

SelectionObserverPython::~SelectionObserverPython ( )
virtual

Member Function Documentation

◆ addObserver()

void SelectionObserverPython::addObserver ( const Py::Object &  obj,
int  resolve = 1 
)
static

◆ removeObserver()

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

The documentation for this class was generated from the following files:
  • src/Gui/Selection.h
  • src/Gui/Selection.cpp