The python export class for AttachExtension. More...

#include <AttachExtensionPy.h>

Public Types

typedef AttachExtensionPointerType
 
- Public Types inherited from App::DocumentObjectExtensionPy
typedef DocumentObjectExtensionPointerType
 
- Public Types inherited from App::ExtensionPy
typedef ExtensionPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

 AttachExtensionPy (AttachExtension *pcObject, PyTypeObject *T=&Type)
 
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
 
- Public Member Functions inherited from App::DocumentObjectExtensionPy
 DocumentObjectExtensionPy (DocumentObjectExtension *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetCustomAttributes (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...
 
DocumentObjectExtensiongetDocumentObjectExtensionPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from App::ExtensionPy
 ExtensionPy (Extension *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetCustomAttributes (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...
 
ExtensiongetExtensionPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBaseDecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBaseIncRef (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 PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from App::DocumentObjectExtensionPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from App::ExtensionPy
static PyObjectPyMake (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 AttachExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of AttachExtensionPy. More...
 
static PyTypeObject Type
 Type structure of AttachExtensionPy. More...
 
- Static Public Attributes inherited from App::DocumentObjectExtensionPy
static PyGetSetDef GetterSetter []
 Attribute structure of DocumentObjectExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of DocumentObjectExtensionPy. More...
 
static PyTypeObject Type
 Type structure of DocumentObjectExtensionPy. More...
 
- Static Public Attributes inherited from App::ExtensionPy
static PyGetSetDef GetterSetter []
 Attribute structure of ExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of ExtensionPy. More...
 
static PyTypeObject Type
 Type structure of ExtensionPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~AttachExtensionPy ()
 
- Protected Member Functions inherited from App::DocumentObjectExtensionPy
 ~DocumentObjectExtensionPy ()
 
- Protected Member Functions inherited from App::ExtensionPy
 ~ExtensionPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectpositionBySupport (PyObject *args)
 implementer for the positionBySupport() method More...
 
PyObjectchangeAttacherType (PyObject *args)
 implementer for the changeAttacherType() method More...
 
static PyObjectstaticCallback_positionBySupport (PyObject *self, PyObject *args)
 callback for the positionBySupport() method More...
 
static PyObjectstaticCallback_changeAttacherType (PyObject *self, PyObject *args)
 callback for the changeAttacherType() method More...
 

callbacks and implementers for the python object attributes

Py::Object getAttacher (void) const
 getter for the Attacher attribute More...
 
PyObjectgetCustomAttributes (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...
 
AttachExtensiongetAttachExtensionPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getAttacher (PyObject *self, void *closure)
 getter callback for the Attacher attribute More...
 
static int staticCallback_setAttacher (PyObject *self, PyObject *value, void *closure)
 setter callback for the Attacher attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for AttachExtension.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~AttachExtensionPy()

AttachExtensionPy::~AttachExtensionPy ( )
protected

◆ AttachExtensionPy()

AttachExtensionPy::AttachExtensionPy ( AttachExtension pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ changeAttacherType()

◆ getAttacher()

Py::Object AttachExtensionPy::getAttacher ( void  ) const

◆ getAttachExtensionPtr()

AttachExtension * AttachExtensionPy::getAttachExtensionPtr ( void  ) const

getter for the object handled by this class

Referenced by changeAttacherType(), getAttacher(), and positionBySupport().

◆ getCustomAttributes()

PyObject * AttachExtensionPy::getCustomAttributes ( const char *  attr) const

getter method for special attributes (e.g. dynamic ones)

◆ GetType()

virtual PyTypeObject* Part::AttachExtensionPy::GetType ( void  )
virtual

Reimplemented from App::DocumentObjectExtensionPy.

◆ positionBySupport()

◆ PyInit()

int AttachExtensionPy::PyInit ( PyObject ,
PyObject  
)
virtual

PyInit method Override this method to initialize a newly created instance of the class (Constructor)

Reimplemented from App::DocumentObjectExtensionPy.

◆ PyMake()

PyObject * AttachExtensionPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
)
static

◆ representation()

◆ setCustomAttributes()

int AttachExtensionPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

dynamic ones) Output: Success=1, Failure=-1, Ignore=0

◆ staticCallback_changeAttacherType()

◆ staticCallback_getAttacher()

PyObject * AttachExtensionPy::staticCallback_getAttacher ( PyObject self,
void *  closure 
)
static

◆ staticCallback_positionBySupport()

◆ staticCallback_setAttacher()

int AttachExtensionPy::staticCallback_setAttacher ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Attacher attribute

References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().

Member Data Documentation

◆ GetterSetter

PyGetSetDef AttachExtensionPy::GetterSetter
static
Initial value:
= {
{"Attacher",
"AttachEngine object driving this AttachableObject. Returns a copy.",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of AttachExtensionPy.

◆ Methods

PyMethodDef AttachExtensionPy::Methods
static
Initial value:
= {
{"positionBySupport",
reinterpret_cast<PyCFunction>( staticCallback_positionBySupport ),
METH_VARARGS,
"positionBySupport(): Reposition object based on Support, MapMode and MapPathParameter properties.\nReturns True if attachment calculation was successful, false if object is not attached and Placement wasn't updated,\nand raises an exception if attachment calculation fails."
},
{"changeAttacherType",
reinterpret_cast<PyCFunction>( staticCallback_changeAttacherType ),
METH_VARARGS,
"changeAttacherType(typename): Changes Attacher class of this object.\ntypename: string. The following are accepted so far:\n'Attacher::AttachEngine3D'\n'Attacher::AttachEnginePlane'\n'Attacher::AttachEngineLine'\n'Attacher::AttachEnginePoint'"
},
{NULL, NULL, 0, NULL}
}

Methods structure of AttachExtensionPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Part/App/AttachExtensionPy.h
  • src/Mod/Part/App/AttachExtensionPyImp.cpp
  • build/webdoc/src/Mod/Part/App/AttachExtensionPy.cpp
static int staticCallback_setAttacher(PyObject *self, PyObject *value, void *closure)
setter callback for the Attacher attribute
Definition: AttachExtensionPy.cpp:293
static PyObject * staticCallback_positionBySupport(PyObject *self, PyObject *args)
callback for the positionBySupport() method
Definition: AttachExtensionPy.cpp:109
static PyObject * staticCallback_getAttacher(PyObject *self, void *closure)
getter callback for the Attacher attribute
Definition: AttachExtensionPy.cpp:275
static PyObject * staticCallback_changeAttacherType(PyObject *self, PyObject *args)
callback for the changeAttacherType() method
Definition: AttachExtensionPy.cpp:192