The python export class for Workbench. More...
#include <WorkbenchPy.h>
Public Types | |
typedef Workbench * | PointerType |
Public Types inherited from Base::BaseClassPy | |
typedef BaseClass * | PointerType |
Public Types inherited from Base::PyObjectBase | |
typedef void * | PointerType |
enum | Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 } |
Public Member Functions | |
virtual PyTypeObject * | GetType (void) |
virtual int | PyInit (PyObject *args, PyObject *k) |
PyInit method Override this method to initialize a newly created instance of the class (Constructor) More... | |
std::string | representation (void) const |
WorkbenchPy (Workbench *pcObject, PyTypeObject *T=&Type) | |
callbacks and implementers for the python object attributes | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) More... | |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. More... | |
Workbench * | getWorkbenchPtr (void) const |
getter for the object handled by this class More... | |
Public Member Functions inherited from Base::BaseClassPy | |
BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type) | |
std::string | representation (void) const |
PyObject * | isDerivedFrom (PyObject *args) |
implementer for the isDerivedFrom() method More... | |
PyObject * | getAllDerivedFrom (PyObject *args) |
implementer for the getAllDerivedFrom() method More... | |
Py::String | getTypeId (void) const |
getter for the TypeId attribute More... | |
Py::String | getModule (void) const |
getter for the Module attribute More... | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) More... | |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. More... | |
BaseClass * | getBaseClassPtr (void) const |
getter for the object handled by this class More... | |
Public Member Functions inherited from Base::PyObjectBase | |
PyObjectBase * | DecRef (void) |
decref method wrapper (see python extending manual) More... | |
PyObjectBase * | IncRef (void) |
incref method wrapper (see python extending manual) More... | |
bool | isConst () |
bool | isNotTracking () const |
bool | isValid () |
PyObjectBase (void *, PyTypeObject *T) | |
Constructor Sets the Type of the object (for inheritance) and decrease the the reference count of the PyObject. More... | |
void | setConst () |
void | setInvalid () |
void | setNotTracking (bool on=true) |
void | setShouldNotify (bool on) |
bool | shouldNotify () const |
void | startNotify () |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Member Functions inherited from Base::BaseClassPy | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
static PyObject * | staticCallback_isDerivedFrom (PyObject *self, PyObject *args) |
callback for the isDerivedFrom() method More... | |
static PyObject * | staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args) |
callback for the getAllDerivedFrom() method More... | |
static PyObject * | staticCallback_getTypeId (PyObject *self, void *closure) |
getter callback for the TypeId attribute More... | |
static int | staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure) |
setter callback for the TypeId attribute More... | |
static PyObject * | staticCallback_getModule (PyObject *self, void *closure) |
getter callback for the Module attribute More... | |
static int | staticCallback_setModule (PyObject *self, PyObject *value, void *closure) |
setter callback for the Module attribute More... | |
Static Public Member Functions inherited from Base::PyObjectBase | |
static void | PyDestructor (PyObject *P) |
Wrapper for the Python destructor. More... | |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of WorkbenchPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of WorkbenchPy. More... | |
static PyTypeObject | Type |
Type structure of WorkbenchPy. More... | |
Static Public Attributes inherited from Base::BaseClassPy | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of BaseClassPy. More... | |
static PyMethodDef | Methods [] |
Methods structure of BaseClassPy. More... | |
static PyTypeObject | Type |
Type structure of BaseClassPy. More... | |
Static Public Attributes inherited from Base::PyObjectBase | |
static PyMethodDef | Methods [] |
static PyTypeObject | Type |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~WorkbenchPy () | |
Protected Member Functions inherited from Base::BaseClassPy | |
~BaseClassPy () | |
Protected Member Functions inherited from Base::PyObjectBase | |
virtual | ~PyObjectBase () |
destructor More... | |
callbacks and implementers for the python object methods | |
PyObject * | name (PyObject *args) |
implementer for the name() method More... | |
PyObject * | activate (PyObject *args) |
implementer for the activate() method More... | |
static PyObject * | staticCallback_name (PyObject *self, PyObject *args) |
callback for the name() method More... | |
static PyObject * | staticCallback_activate (PyObject *self, PyObject *args) |
callback for the activate() method More... | |
Additional Inherited Members | |
Protected Attributes inherited from Base::PyObjectBase | |
std::bitset< 32 > | StatusBits |
Detailed Description
The python export class for Workbench.
Member Typedef Documentation
◆ PointerType
typedef Workbench* Gui::WorkbenchPy::PointerType |
Constructor & Destructor Documentation
◆ ~WorkbenchPy()
|
protected |
◆ WorkbenchPy()
Member Function Documentation
◆ activate()
implementer for the activate() method
Activates the workbench object.
References Gui::WorkbenchManager::activate(), Base::BaseClassPy::getTypeId(), getWorkbenchPtr(), Gui::WorkbenchManager::instance(), and Gui::Workbench::name().
Referenced by ArchBuildingPart.ViewProviderBuildingPart::doubleClicked(), DraftLayer.ViewProviderLayer::setupContextMenu(), and staticCallback_activate().
◆ getCustomAttributes()
PyObject * WorkbenchPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ GetType()
|
virtual |
Reimplemented from Base::BaseClassPy.
Reimplemented in Gui::PythonWorkbenchPy.
◆ getWorkbenchPtr()
Workbench * WorkbenchPy::getWorkbenchPtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by activate(), and name().
◆ name()
implementer for the name() method
Retrieves the workbench name.
References getWorkbenchPtr().
Referenced by staticCallback_name().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::BaseClassPy.
Reimplemented in Gui::PythonWorkbenchPy.
◆ PyMake()
◆ representation()
std::string WorkbenchPy::representation | ( | void | ) | const |
Referenced by config_control_design.pcurve::wr1(), config_control_design.degenerate_pcurve::wr1(), automotive_design.motion_link_relationship::wr1(), automotive_design.pcurve::wr1(), automotive_design.degenerate_pcurve::wr1(), config_control_design.pcurve::wr2(), config_control_design.degenerate_pcurve::wr2(), automotive_design.pcurve::wr2(), and automotive_design.degenerate_pcurve::wr2().
◆ setCustomAttributes()
int WorkbenchPy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ staticCallback_activate()
◆ staticCallback_name()
callback for the name() method
References Base::BaseExceptionFreeCADError, Base::Console(), Base::ConsoleSingleton::Error(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), name(), Base::PyObjectBase::PyObjectBase(), and Base::PyObjectBase::startNotify().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of WorkbenchPy.
◆ Methods
|
static |
Methods structure of WorkbenchPy.
◆ Type
|
static |
Type structure of WorkbenchPy.
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), ArchComponent.Component::execute(), DraftLayer.LayerContainer::execute(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), draftobjects.draft_annotation.DraftAnnotation::onDocumentRestored(), ArchReference.ArchReference::setProperties(), and DraftLayer.Layer::setProperties().
The documentation for this class was generated from the following files:
- build/webdoc/src/Gui/WorkbenchPy.h
- src/Gui/WorkbenchPyImp.cpp
- build/webdoc/src/Gui/WorkbenchPy.cpp