The python export class for Area. More...

#include <AreaPy.h>

Public Types

typedef Area * 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

 AreaPy (Area *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::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 AreaPy. More...
 
static PyMethodDef Methods []
 Methods structure of AreaPy. More...
 
static PyTypeObject Type
 Type structure of AreaPy. 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

 ~AreaPy ()
 
- 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 * add (PyObject *args, PyObject *kwd)
 implementer for the add() method More...
 
PyObject * setPlane (PyObject *args)
 implementer for the setPlane() method More...
 
PyObject * getShape (PyObject *args, PyObject *kwd)
 implementer for the getShape() method More...
 
PyObject * makeOffset (PyObject *args, PyObject *kwd)
 implementer for the makeOffset() method More...
 
PyObject * makePocket (PyObject *args, PyObject *kwd)
 implementer for the makePocket() method More...
 
PyObject * makeSections (PyObject *args, PyObject *kwd)
 implementer for the makeSections() method More...
 
PyObject * setParams (PyObject *args, PyObject *kwd)
 implementer for the setParams() method More...
 
PyObject * setDefaultParams (PyObject *args, PyObject *kwd)
 implementer for the setDefaultParams() method More...
 
PyObject * getDefaultParams (PyObject *args)
 implementer for the getDefaultParams() method More...
 
PyObject * getParamsDesc (PyObject *args, PyObject *kwd)
 implementer for the getParamsDesc() method More...
 
PyObject * getParams (PyObject *args)
 implementer for the getParams() method More...
 
PyObject * abort (PyObject *args, PyObject *kwd)
 implementer for the abort() method More...
 
static PyObject * staticCallback_add (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the add() method More...
 
static PyObject * staticCallback_setPlane (PyObject *self, PyObject *args)
 callback for the setPlane() method More...
 
static PyObject * staticCallback_getShape (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the getShape() method More...
 
static PyObject * staticCallback_makeOffset (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the makeOffset() method More...
 
static PyObject * staticCallback_makePocket (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the makePocket() method More...
 
static PyObject * staticCallback_makeSections (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the makeSections() method More...
 
static PyObject * staticCallback_setParams (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the setParams() method More...
 
static PyObject * staticCallback_setDefaultParams (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the setDefaultParams() method More...
 
static PyObject * staticCallback_getDefaultParams (PyObject *self, PyObject *args)
 callback for the getDefaultParams() method More...
 
static PyObject * staticCallback_getParamsDesc (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the getParamsDesc() method More...
 
static PyObject * staticCallback_getParams (PyObject *self, PyObject *args)
 callback for the getParams() method More...
 
static PyObject * staticCallback_abort (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the abort() method More...
 

callbacks and implementers for the python object attributes

Py::List getSections (void) const
 getter for the Sections attribute More...
 
Py::Object getWorkplane (void) const
 getter for the Workplane attribute More...
 
void setWorkplane (Py::Object arg)
 setter for the Workplane attribute More...
 
Py::List getShapes (void) const
 getter for the Shapes 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...
 
Area * getAreaPtr (void) const
 getter for the object handled by this class More...
 
static PyObject * staticCallback_getSections (PyObject *self, void *closure)
 getter callback for the Sections attribute More...
 
static int staticCallback_setSections (PyObject *self, PyObject *value, void *closure)
 setter callback for the Sections attribute More...
 
static PyObject * staticCallback_getWorkplane (PyObject *self, void *closure)
 getter callback for the Workplane attribute More...
 
static int staticCallback_setWorkplane (PyObject *self, PyObject *value, void *closure)
 setter callback for the Workplane attribute More...
 
static PyObject * staticCallback_getShapes (PyObject *self, void *closure)
 getter callback for the Shapes attribute More...
 
static int staticCallback_setShapes (PyObject *self, PyObject *value, void *closure)
 setter callback for the Shapes attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for Area.

Member Typedef Documentation

◆ PointerType

typedef Area* Path::AreaPy::PointerType

Constructor & Destructor Documentation

◆ ~AreaPy()

AreaPy::~AreaPy ( )
protected

◆ AreaPy()

AreaPy::AreaPy ( Area *  pcObject,
PyTypeObject *  T = &Type 
)

Referenced by makeSections(), and PyMake().

Member Function Documentation

◆ abort()

PyObject * AreaPy::abort ( PyObject *  args,
PyObject *  kwd 
)

implementer for the abort() method

Referenced by staticCallback_abort().

◆ add()

◆ getAreaPtr()

Area * AreaPy::getAreaPtr ( void  ) const

◆ getCustomAttributes()

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

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

◆ getDefaultParams()

PyObject * AreaPy::getDefaultParams ( PyObject *  args)

implementer for the getDefaultParams() method

Referenced by staticCallback_getDefaultParams().

◆ getParams()

PyObject * AreaPy::getParams ( PyObject *  args)

implementer for the getParams() method

References getAreaPtr(), Path::Area::getParams(), and PARAM_PY_DICT_SET_VALUE.

Referenced by staticCallback_getParams().

◆ getParamsDesc()

PyObject * AreaPy::getParamsDesc ( PyObject *  args,
PyObject *  kwd 
)

implementer for the getParamsDesc() method

Referenced by staticCallback_getParamsDesc().

◆ getSections()

Py::List AreaPy::getSections ( void  ) const

getter for the Sections attribute

References getAreaPtr(), Path::Area::getSectionCount(), getShape(), and Part::shape2pyshape().

Referenced by staticCallback_getSections().

◆ getShape()

PyObject * AreaPy::getShape ( PyObject *  args,
PyObject *  kwd 
)

implementer for the getShape() method

References Path::Area::clean(), getAreaPtr(), and Part::shape2pyshape().

Referenced by getSections(), and staticCallback_getShape().

◆ getShapes()

Py::List AreaPy::getShapes ( void  ) const

getter for the Shapes attribute

References getAreaPtr(), Path::Area::getChildren(), and Part::shape2pyshape().

Referenced by staticCallback_getShapes().

◆ GetType()

virtual PyTypeObject* Path::AreaPy::GetType ( void  )
virtual

Reimplemented from Base::BaseClassPy.

◆ getWorkplane()

Py::Object AreaPy::getWorkplane ( void  ) const

getter for the Workplane attribute

References getAreaPtr(), and Part::shape2pyshape().

Referenced by staticCallback_getWorkplane().

◆ makeOffset()

◆ makePocket()

◆ makeSections()

◆ PyInit()

int AreaPy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

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

Reimplemented from Base::BaseClassPy.

◆ PyMake()

PyObject * AreaPy::PyMake ( struct _typeobject *  ,
PyObject *  args,
PyObject *  kwd 
)
static

References AreaPy(), and setParams().

◆ representation()

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ setDefaultParams()

PyObject * AreaPy::setDefaultParams ( PyObject *  args,
PyObject *  kwd 
)

implementer for the setDefaultParams() method

Referenced by staticCallback_setDefaultParams().

◆ setParams()

◆ setPlane()

PyObject * AreaPy::setPlane ( PyObject *  args)

implementer for the setPlane() method

References getAreaPtr(), Path::Area::setPlane(), and Part::TopoShapePy::Type.

Referenced by staticCallback_setPlane().

◆ setWorkplane()

void AreaPy::setWorkplane ( Py::Object  arg)

setter for the Workplane attribute

References getAreaPtr(), Path::Area::setPlane(), and Part::TopoShapePy::Type.

Referenced by staticCallback_setWorkplane().

◆ staticCallback_abort()

◆ staticCallback_add()

◆ staticCallback_getDefaultParams()

◆ staticCallback_getParams()

◆ staticCallback_getParamsDesc()

◆ staticCallback_getSections()

PyObject * AreaPy::staticCallback_getSections ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getShape()

◆ staticCallback_getShapes()

PyObject * AreaPy::staticCallback_getShapes ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getWorkplane()

PyObject * AreaPy::staticCallback_getWorkplane ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_makeOffset()

◆ staticCallback_makePocket()

◆ staticCallback_makeSections()

◆ staticCallback_setDefaultParams()

◆ staticCallback_setParams()

◆ staticCallback_setPlane()

◆ staticCallback_setSections()

int AreaPy::staticCallback_setSections ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Sections attribute

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

◆ staticCallback_setShapes()

int AreaPy::staticCallback_setShapes ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Shapes attribute

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

◆ staticCallback_setWorkplane()

int AreaPy::staticCallback_setWorkplane ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

Member Data Documentation

◆ GetterSetter

PyGetSetDef AreaPy::GetterSetter
static
Initial value:
= {
{"Sections",
"List of sections in this area.",
NULL
},
{"Workplane",
"The current workplane. If no plane is set, it is derived from the added shapes.",
NULL
},
{"Shapes",
"A list of tuple: [(shape,op), ...] containing the added shapes together with their operation code",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of AreaPy.

◆ Methods

PyMethodDef AreaPy::Methods
static

Methods structure of AreaPy.

Referenced by AreaPyModifier::AreaPyModifier().

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Path/App/AreaPy.h
  • src/Mod/Path/App/AreaPyImp.cpp
  • build/webdoc/src/Mod/Path/App/AreaPy.cpp
static PyObject * staticCallback_getSections(PyObject *self, void *closure)
getter callback for the Sections attribute
Definition: AreaPy.cpp:1170
static int staticCallback_setSections(PyObject *self, PyObject *value, void *closure)
setter callback for the Sections attribute
Definition: AreaPy.cpp:1188
static PyObject * staticCallback_getShapes(PyObject *self, void *closure)
getter callback for the Shapes attribute
Definition: AreaPy.cpp:1246
static int staticCallback_setShapes(PyObject *self, PyObject *value, void *closure)
setter callback for the Shapes attribute
Definition: AreaPy.cpp:1264
static int staticCallback_setWorkplane(PyObject *self, PyObject *value, void *closure)
setter callback for the Workplane attribute
Definition: AreaPy.cpp:1220
static PyObject * staticCallback_getWorkplane(PyObject *self, void *closure)
getter callback for the Workplane attribute
Definition: AreaPy.cpp:1202