The python export class for GeometryExtension. More...

#include <GeometryExtensionPy.h>

Public Types

typedef GeometryExtensionPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

 GeometryExtensionPy (GeometryExtension *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 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 Base::PyObjectBase
static void PyDestructor (PyObject *P)
 Wrapper for the Python destructor. More...
 

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of GeometryExtensionPy. More...
 
static PyMethodDef Methods []
 Methods structure of GeometryExtensionPy. More...
 
static PyTypeObject Type
 Type structure of GeometryExtensionPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~GeometryExtensionPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 

callbacks and implementers for the python object attributes

Py::String getName (void) const
 getter for the Name attribute More...
 
void setName (Py::String arg)
 setter for the Name 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...
 
GeometryExtensiongetGeometryExtensionPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_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...
 

Additional Inherited Members

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

Detailed Description

The python export class for GeometryExtension.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~GeometryExtensionPy()

GeometryExtensionPy::~GeometryExtensionPy ( )
protected

◆ GeometryExtensionPy()

GeometryExtensionPy::GeometryExtensionPy ( GeometryExtension pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ copy()

PyObject * GeometryExtensionPy::copy ( PyObject args)

implementer for the copy() method

References getGeometryExtensionPtr(), and GetType().

Referenced by staticCallback_copy().

◆ getCustomAttributes()

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

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

◆ getGeometryExtensionPtr()

GeometryExtension * GeometryExtensionPy::getGeometryExtensionPtr ( void  ) const

getter for the object handled by this class

Referenced by copy(), getName(), and setName().

◆ getName()

◆ GetType()

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

◆ PyInit()

int GeometryExtensionPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from Base::PyObjectBase.

Reimplemented in Part::GeometryBoolExtensionPy, Part::GeometryDoubleExtensionPy, Part::GeometryIntExtensionPy, Part::GeometryStringExtensionPy, Sketcher::ExternalGeometryExtensionPy, and Sketcher::SketchGeometryExtensionPy.

◆ PyMake()

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

◆ representation()

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ setName()

void GeometryExtensionPy::setName ( Py::String  arg)

setter for the Name attribute

References getGeometryExtensionPtr(), and Part::GeometryExtension::setName().

Referenced by staticCallback_setName().

◆ staticCallback_copy()

PyObject * GeometryExtensionPy::staticCallback_copy ( PyObject self,
PyObject args 
)
static

◆ staticCallback_getName()

PyObject * GeometryExtensionPy::staticCallback_getName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_setName()

int GeometryExtensionPy::staticCallback_setName ( PyObject self,
PyObject value,
void *  closure 
)
static

Member Data Documentation

◆ GetterSetter

PyGetSetDef GeometryExtensionPy::GetterSetter
static
Initial value:
= {
{"Name",
"Sets/returns the name of this extension.",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of GeometryExtensionPy.

◆ Methods

PyMethodDef GeometryExtensionPy::Methods
static
Initial value:
= {
{"copy",
reinterpret_cast<PyCFunction>( staticCallback_copy ),
METH_VARARGS,
"Create a copy of this geometry extension."
},
{NULL, NULL, 0, NULL}
}

Methods structure of GeometryExtensionPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Part/App/GeometryExtensionPy.h
  • src/Mod/Part/App/GeometryExtensionPyImp.cpp
  • build/webdoc/src/Mod/Part/App/GeometryExtensionPy.cpp
static PyObject * staticCallback_copy(PyObject *self, PyObject *args)
callback for the copy() method
Definition: GeometryExtensionPy.cpp:104
static PyObject * staticCallback_getName(PyObject *self, void *closure)
getter callback for the Name attribute
Definition: GeometryExtensionPy.cpp:180
static int staticCallback_setName(PyObject *self, PyObject *value, void *closure)
setter callback for the Name attribute
Definition: GeometryExtensionPy.cpp:198