The python export class for BaseType. More...
#include <TypePy.h>
Public Types | |
typedef BaseType * | 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 |
TypePy (BaseType *pcObject, PyTypeObject *T=&Type) | |
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::PyObjectBase | |
static void | PyDestructor (PyObject *P) |
Wrapper for the Python destructor. More... | |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of TypePy. More... | |
static PyMethodDef | Methods [] |
Methods structure of TypePy. More... | |
static PyTypeObject | Type |
Type structure of TypePy. More... | |
Static Public Attributes inherited from Base::PyObjectBase | |
static PyMethodDef | Methods [] |
static PyTypeObject | Type |
Py_Header struct from python.h. More... | |
Protected Member Functions | |
~TypePy () | |
Protected Member Functions inherited from Base::PyObjectBase | |
virtual | ~PyObjectBase () |
destructor More... | |
callbacks and implementers for the python object attributes | |
Py::String | getName (void) const |
getter for the Name attribute More... | |
Py::Long | getKey (void) const |
getter for the Key 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... | |
BaseType * | getBaseTypePtr (void) const |
getter for the object handled by this class More... | |
static PyObject * | staticCallback_getName (PyObject *self, void *closure) |
getter callback for the Name attribute More... | |
static int | staticCallback_setName (PyObject *self, PyObject *value, void *closure) |
setter callback for the Name attribute More... | |
static PyObject * | staticCallback_getKey (PyObject *self, void *closure) |
getter callback for the Key attribute More... | |
static int | staticCallback_setKey (PyObject *self, PyObject *value, void *closure) |
setter callback for the Key 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... | |
Additional Inherited Members | |
Protected Attributes inherited from Base::PyObjectBase | |
std::bitset< 32 > | StatusBits |
Detailed Description
The python export class for BaseType.
Member Typedef Documentation
◆ PointerType
typedef BaseType* Base::TypePy::PointerType |
Constructor & Destructor Documentation
◆ ~TypePy()
|
protected |
◆ TypePy()
Referenced by fromKey(), fromName(), getAllDerived(), getAllDerivedFrom(), getBadType(), and getParent().
Member Function Documentation
◆ fromKey()
implementer for the fromKey() method
References Base::Type::fromKey(), and TypePy().
Referenced by staticCallback_fromKey().
◆ fromName()
implementer for the fromName() method
References Base::Type::fromName(), and TypePy().
Referenced by staticCallback_fromName().
◆ getAllDerived()
implementer for the getAllDerived() method
References Base::Type::fromName(), Base::Type::getAllDerivedFrom(), getBaseTypePtr(), getName(), and TypePy().
Referenced by staticCallback_getAllDerived().
◆ getAllDerivedFrom()
implementer for the getAllDerivedFrom() method
References Base::Type::fromName(), Base::Type::getAllDerivedFrom(), getBaseTypePtr(), Type, and TypePy().
Referenced by staticCallback_getAllDerivedFrom().
◆ getBadType()
implementer for the getBadType() method
References Base::Type::badType(), and TypePy().
Referenced by staticCallback_getBadType().
◆ getBaseTypePtr()
BaseType * TypePy::getBaseTypePtr | ( | void | ) | const |
getter for the object handled by this class
Referenced by getAllDerived(), getAllDerivedFrom(), getKey(), getModule(), getName(), getParent(), isBad(), isDerivedFrom(), and representation().
◆ getCustomAttributes()
PyObject * TypePy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
◆ getKey()
Py::Long TypePy::getKey | ( | void | ) | const |
◆ getModule()
Py::String TypePy::getModule | ( | void | ) | const |
getter for the Module attribute
References getBaseTypePtr(), and getName().
Referenced by staticCallback_getModule().
◆ getName()
Py::String TypePy::getName | ( | void | ) | const |
getter for the Name attribute
References getBaseTypePtr().
Referenced by getAllDerived(), getModule(), and staticCallback_getName().
◆ getNumTypes()
implementer for the getNumTypes() method
References Base::Type::getNumTypes().
Referenced by staticCallback_getNumTypes().
◆ getParent()
implementer for the getParent() method
References getBaseTypePtr(), Base::Type::getParent(), and TypePy().
Referenced by staticCallback_getParent().
◆ GetType()
|
virtual |
Reimplemented from Base::PyObjectBase.
◆ isBad()
implementer for the isBad() method
References getBaseTypePtr(), and Base::Type::isBad().
Referenced by staticCallback_isBad().
◆ isDerivedFrom()
implementer for the isDerivedFrom() method
References Base::Type::badType(), Base::Type::fromName(), getBaseTypePtr(), Base::Type::isDerivedFrom(), and Type.
Referenced by staticCallback_isDerivedFrom().
◆ PyInit()
PyInit method Override this method to initialize a newly created instance of the class (Constructor)
Reimplemented from Base::PyObjectBase.
◆ PyMake()
◆ representation()
std::string TypePy::representation | ( | void | ) | const |
References getBaseTypePtr(), and Base::Type::getName().
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 TypePy::setCustomAttributes | ( | const char * | attr, |
PyObject * | obj | ||
) |
setter for special attributes (e.g.
dynamic ones) Output: Success=1, Failure=-1, Ignore=0
◆ staticCallback_fromKey()
callback for the fromKey() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, and fromKey().
◆ staticCallback_fromName()
callback for the fromName() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, and fromName().
◆ staticCallback_getAllDerived()
callback for the getAllDerived() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, getAllDerived(), and Base::PyObjectBase::isValid().
◆ staticCallback_getAllDerivedFrom()
callback for the getAllDerivedFrom() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, and getAllDerivedFrom().
◆ staticCallback_getBadType()
callback for the getBadType() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, and getBadType().
◆ staticCallback_getKey()
getter callback for the Key attribute
References Base::BaseExceptionFreeCADError, getKey(), and Base::PyObjectBase::isValid().
◆ staticCallback_getModule()
getter callback for the Module attribute
References Base::BaseExceptionFreeCADError, getModule(), and Base::PyObjectBase::isValid().
◆ staticCallback_getName()
getter callback for the Name attribute
References Base::BaseExceptionFreeCADError, getName(), and Base::PyObjectBase::isValid().
◆ staticCallback_getNumTypes()
callback for the getNumTypes() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, and getNumTypes().
◆ staticCallback_getParent()
callback for the getParent() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, getParent(), and Base::PyObjectBase::isValid().
◆ staticCallback_isBad()
callback for the isBad() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, isBad(), and Base::PyObjectBase::isValid().
◆ staticCallback_isDerivedFrom()
callback for the isDerivedFrom() method
References Base::BaseExceptionFreeCADAbort, Base::BaseExceptionFreeCADError, isDerivedFrom(), and Base::PyObjectBase::isValid().
◆ staticCallback_setKey()
setter callback for the Key attribute
References Base::PyObjectBase::isValid().
◆ staticCallback_setModule()
setter callback for the Module attribute
References Base::PyObjectBase::isValid().
◆ staticCallback_setName()
setter callback for the Name attribute
References Base::PyObjectBase::isValid().
Member Data Documentation
◆ GetterSetter
|
static |
Attribute structure of TypePy.
◆ Methods
|
static |
Methods structure of TypePy.
◆ Type
|
static |
Referenced by ArchPanel.CommandPanelSheet::Activated(), ArchStructure.StructSelectionObserver::addSelection(), ArchSite.Compass::buildCoordinates(), ArchComponent.Component::execute(), DraftLayer.LayerContainer::execute(), getAllDerivedFrom(), ArchSchedule.CommandArchSchedule::IsActive(), ArchAxis.CommandArchGrid::IsActive(), isDerivedFrom(), 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/Base/TypePy.h
- src/Base/TypePyImp.cpp
- build/webdoc/src/Base/TypePy.cpp