The python export class for MeshPoint. More...

#include <MeshPointPy.h>

Public Types

typedef MeshPointPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 

Public Member Functions

PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
MeshPointgetMeshPointPtr (void) const
 getter for the object handled by this class More...
 
virtual PyTypeObject * GetType (void)
 
 MeshPointPy (MeshPoint *pcObject, PyTypeObject *T=&Type)
 
virtual int PyInit (PyObject *args, PyObject *k)
 PyInit method Override this method to initialize a newly created instance of the class (Constuctor) More...
 
std::string representation (void) const
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
 ~MeshPointPy ()
 
- 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 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 setAttributeOf (const char *attr, const PyObjectBase *par)
 
void setConst ()
 
void setInvalid ()
 
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 MeshPointPy. More...
 
static PyMethodDef Methods []
 Methods structure of MeshPointPy. More...
 
static PyTypeObject Type
 Type structure of MeshPointPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

callbacks and implementers for the python object methods

PyObjectunbound (PyObject *args)
 implementer for the unbound() method More...
 
PyObjectmove (PyObject *args)
 implementer for the move() method More...
 
static PyObjectstaticCallback_unbound (PyObject *self, PyObject *args)
 callback for the unbound() method More...
 
static PyObjectstaticCallback_move (PyObject *self, PyObject *args)
 callback for the move() method More...
 

callbacks and implementers for the python object attributes

Py::Int getIndex (void) const
 getter for the Index attribute More...
 
Py::Boolean getBound (void) const
 getter for the Bound attribute More...
 
Py::Object getNormal (void) const
 getter for the Normal attribute More...
 
Py::Object getVector (void) const
 getter for the Vector attribute More...
 
Py::Float getx (void) const
 getter for the x attribute More...
 
void setx (Py::Float arg)
 setter for the x attribute More...
 
Py::Float gety (void) const
 getter for the y attribute More...
 
void sety (Py::Float arg)
 setter for the y attribute More...
 
Py::Float getz (void) const
 getter for the z attribute More...
 
void setz (Py::Float arg)
 setter for the z attribute More...
 
static PyObjectstaticCallback_getIndex (PyObject *self, void *closure)
 getter callback for the Index attribute More...
 
static int staticCallback_setIndex (PyObject *self, PyObject *value, void *closure)
 setter callback for the Index attribute More...
 
static PyObjectstaticCallback_getBound (PyObject *self, void *closure)
 getter callback for the Bound attribute More...
 
static int staticCallback_setBound (PyObject *self, PyObject *value, void *closure)
 setter callback for the Bound attribute More...
 
static PyObjectstaticCallback_getNormal (PyObject *self, void *closure)
 getter callback for the Normal attribute More...
 
static int staticCallback_setNormal (PyObject *self, PyObject *value, void *closure)
 setter callback for the Normal attribute More...
 
static PyObjectstaticCallback_getVector (PyObject *self, void *closure)
 getter callback for the Vector attribute More...
 
static int staticCallback_setVector (PyObject *self, PyObject *value, void *closure)
 setter callback for the Vector attribute More...
 
static PyObjectstaticCallback_getx (PyObject *self, void *closure)
 getter callback for the x attribute More...
 
static int staticCallback_setx (PyObject *self, PyObject *value, void *closure)
 setter callback for the x attribute More...
 
static PyObjectstaticCallback_gety (PyObject *self, void *closure)
 getter callback for the y attribute More...
 
static int staticCallback_sety (PyObject *self, PyObject *value, void *closure)
 setter callback for the y attribute More...
 
static PyObjectstaticCallback_getz (PyObject *self, void *closure)
 getter callback for the z attribute More...
 
static int staticCallback_setz (PyObject *self, PyObject *value, void *closure)
 setter callback for the z attribute More...
 

Additional Inherited Members

- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 
- Protected Attributes inherited from Base::PyObjectBase
char * attribute
 
PyObjectBaseparent
 
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for MeshPoint.

Member Typedef Documentation

Constructor & Destructor Documentation

MeshPointPy::MeshPointPy ( MeshPoint pcObject,
PyTypeObject *  T = &Type 
)

Referenced by getMeshPointPtr(), and PyMake().

Member Function Documentation

Py::Boolean MeshPointPy::getBound ( void  ) const

getter for the Bound attribute

References getMeshPointPtr().

Referenced by getMeshPointPtr(), and staticCallback_getBound().

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

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

Referenced by getMeshPointPtr(), and ~MeshPointPy().

Py::Int MeshPointPy::getIndex ( void  ) const

getter for the Index attribute

References getMeshPointPtr().

Referenced by getMeshPointPtr(), and staticCallback_getIndex().

Py::Object MeshPointPy::getNormal ( void  ) const

getter for the Normal attribute

References Base::BaseExceptionFreeCADError, and getMeshPointPtr().

Referenced by getMeshPointPtr(), and staticCallback_getNormal().

virtual PyTypeObject* Mesh::MeshPointPy::GetType ( void  )
inlinevirtual

Reimplemented from Base::PyObjectBase.

Py::Object MeshPointPy::getVector ( void  ) const

getter for the Vector attribute

References Base::PyObjectBase::setConst(), and DraftGeomUtils::vec().

Referenced by getMeshPointPtr(), and staticCallback_getVector().

Py::Float MeshPointPy::getx ( void  ) const

getter for the x attribute

Referenced by getMeshPointPtr(), and staticCallback_getx().

Py::Float MeshPointPy::gety ( void  ) const

getter for the y attribute

Referenced by getMeshPointPtr(), and staticCallback_gety().

Py::Float MeshPointPy::getz ( void  ) const

getter for the z attribute

Referenced by getMeshPointPtr(), and staticCallback_getz().

int MeshPointPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from Base::PyObjectBase.

References getMeshPointPtr().

Referenced by getMeshPointPtr().

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

References MeshPointPy().

Referenced by getMeshPointPtr().

std::string MeshPointPy::representation ( void  ) const
int MeshPointPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

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

Referenced by getMeshPointPtr(), and ~MeshPointPy().

void MeshPointPy::setx ( Py::Float  arg)

setter for the x attribute

References getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.

Referenced by getMeshPointPtr(), and staticCallback_setx().

void MeshPointPy::sety ( Py::Float  arg)

setter for the y attribute

References getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.

Referenced by getMeshPointPtr(), and staticCallback_sety().

void MeshPointPy::setz ( Py::Float  arg)

setter for the z attribute

References getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.

Referenced by getMeshPointPtr(), and staticCallback_setz().

PyObject * MeshPointPy::staticCallback_getBound ( PyObject self,
void *  closure 
)
static

getter callback for the Bound attribute

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

PyObject * MeshPointPy::staticCallback_getIndex ( PyObject self,
void *  closure 
)
static

getter callback for the Index attribute

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

PyObject * MeshPointPy::staticCallback_getNormal ( PyObject self,
void *  closure 
)
static

getter callback for the Normal attribute

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

PyObject * MeshPointPy::staticCallback_getVector ( PyObject self,
void *  closure 
)
static

getter callback for the Vector attribute

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

PyObject * MeshPointPy::staticCallback_getx ( PyObject self,
void *  closure 
)
static

getter callback for the x attribute

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

PyObject * MeshPointPy::staticCallback_gety ( PyObject self,
void *  closure 
)
static

getter callback for the y attribute

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

PyObject * MeshPointPy::staticCallback_getz ( PyObject self,
void *  closure 
)
static

getter callback for the z attribute

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

int MeshPointPy::staticCallback_setBound ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Bound attribute

References Base::PyObjectBase::isValid().

int MeshPointPy::staticCallback_setIndex ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Index attribute

References Base::PyObjectBase::isValid().

int MeshPointPy::staticCallback_setNormal ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Normal attribute

References Base::PyObjectBase::isValid().

int MeshPointPy::staticCallback_setVector ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Vector attribute

References Base::PyObjectBase::isValid().

int MeshPointPy::staticCallback_setx ( PyObject self,
PyObject value,
void *  closure 
)
static
int MeshPointPy::staticCallback_sety ( PyObject self,
PyObject value,
void *  closure 
)
static
int MeshPointPy::staticCallback_setz ( PyObject self,
PyObject value,
void *  closure 
)
static
PyObject * MeshPointPy::unbound ( PyObject args)

Member Data Documentation

PyGetSetDef MeshPointPy::GetterSetter
static

Attribute structure of MeshPointPy.

PyMethodDef MeshPointPy::Methods
static
Initial value:
= {
{"unbound",
(PyCFunction) staticCallback_unbound,
METH_VARARGS,
" method unbound()\nCut the connection to a MeshObject. The point becomes\nfree and is more or less a simple vector/point.\nAfter calling unbound() no topological operation will\nwork!\n "
},
{"move",
(PyCFunction) staticCallback_move,
METH_VARARGS,
"method move(Vector)\nThis method moves the point in the mesh along the \ngiven vector. This affects the geometry of the mesh.\nBe aware that after moving point(s) the mesh can \nhave self intersections!\n "
},
{NULL, NULL, 0, NULL}
}

Methods structure of MeshPointPy.

Referenced by ~MeshPointPy().

PyTypeObject MeshPointPy::Type
static

The documentation for this class was generated from the following files:
  • builds/webdocs/src/Mod/Mesh/App/MeshPointPy.h
  • src/src/Mod/Mesh/App/MeshPointPyImp.cpp
  • builds/webdocs/src/Mod/Mesh/App/MeshPointPy.cpp