The python export class for MeshPoint. More...
#include <MeshPointPy.h>
Public Types | |
typedef MeshPoint * | PointerType |
Public Member Functions | |
PyObject * | _getattr (char *attr) |
GetAttribute implementation This method implements the retriavel of object attributes. | |
virtual PyObject * | _repr (void) |
_repr method Overide this method to return a string object with some invormation about the object. | |
int | _setattr (char *attr, PyObject *value) |
SetAttribute implementation This method implements the seting of object attributes. | |
PyObject * | getCustomAttributes (const char *attr) const |
getter method for special attributes (e.g. dynamic ones) | |
MeshPoint * | getMeshPointPtr (void) const |
getter for the object handled by this class | |
virtual PyParentObject * | GetParents (void) |
virtual PyTypeObject * | GetType (void) |
MeshPointPy (MeshPoint *pcObject, PyTypeObject *T=&Type) | |
virtual int | PyInit (PyObject *args, PyObject *k) |
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor). | |
std::string | representation (void) const |
int | setCustomAttributes (const char *attr, PyObject *obj) |
setter for special attributes (e.g. dynamic ones) | |
~MeshPointPy () | |
Static Public Member Functions | |
static PyObject * | PyMake (struct _typeobject *, PyObject *, PyObject *) |
Static Public Attributes | |
static PyGetSetDef | GetterSetter [] |
Attribute structure of MeshPointPy. | |
static PyMethodDef | Methods [] |
Methods structure of MeshPointPy. | |
static PyParentObject | Parents [] = { PARENTSMeshMeshPointPy } |
static PyTypeObject | Type |
Type structure of MeshPointPy. | |
callbacks and implementers for the python object attributes | |
| |
Py::Boolean | getBound (void) const |
getter for the Bound attribute | |
Py::Int | getIndex (void) const |
getter for the Index attribute | |
Py::Object | getNormal (void) const |
getter for the Normal attribute | |
Py::Object | getVector (void) const |
getter for the Vector attribute | |
Py::Float | getx (void) const |
getter for the x attribute | |
Py::Float | gety (void) const |
getter for the y attribute | |
Py::Float | getz (void) const |
getter for the z attribute | |
void | setx (Py::Float arg) |
setter for the x attribute | |
void | sety (Py::Float arg) |
setter for the y attribute | |
void | setz (Py::Float arg) |
setter for the z attribute | |
static PyObject * | staticCallback_getBound (PyObject *self, void *closure) |
getter callback for the Bound attribute | |
static PyObject * | staticCallback_getIndex (PyObject *self, void *closure) |
getter callback for the Index attribute | |
static PyObject * | staticCallback_getNormal (PyObject *self, void *closure) |
getter callback for the Normal attribute | |
static PyObject * | staticCallback_getVector (PyObject *self, void *closure) |
getter callback for the Vector attribute | |
static PyObject * | staticCallback_getx (PyObject *self, void *closure) |
getter callback for the x attribute | |
static PyObject * | staticCallback_gety (PyObject *self, void *closure) |
getter callback for the y attribute | |
static PyObject * | staticCallback_getz (PyObject *self, void *closure) |
getter callback for the z attribute | |
static int | staticCallback_setBound (PyObject *self, PyObject *value, void *closure) |
setter callback for the Bound attribute | |
static int | staticCallback_setIndex (PyObject *self, PyObject *value, void *closure) |
setter callback for the Index attribute | |
static int | staticCallback_setNormal (PyObject *self, PyObject *value, void *closure) |
setter callback for the Normal attribute | |
static int | staticCallback_setVector (PyObject *self, PyObject *value, void *closure) |
setter callback for the Vector attribute | |
static int | staticCallback_setx (PyObject *self, PyObject *value, void *closure) |
setter callback for the x attribute | |
static int | staticCallback_sety (PyObject *self, PyObject *value, void *closure) |
setter callback for the y attribute | |
static int | staticCallback_setz (PyObject *self, PyObject *value, void *closure) |
setter callback for the z attribute | |
callbacks and implementers for the python object methods | |
| |
PyObject * | move (PyObject *args) |
implementer for the move() method | |
PyObject * | unbound (PyObject *args) |
implementer for the unbound() method | |
static PyObject * | staticCallback_move (PyObject *self, PyObject *args) |
callback for the move() method | |
static PyObject * | staticCallback_unbound (PyObject *self, PyObject *args) |
callback for the unbound() method |
The python export class for MeshPoint.
Definition at line 20 of file MeshPointPy.h.
typedef MeshPoint* Mesh::MeshPointPy::PointerType |
Reimplemented from Base::PyObjectBase.
Definition at line 36 of file MeshPointPy.h.
Definition at line 565 of file MeshPointPy.cpp.
Referenced by PyMake().
MeshPointPy::~MeshPointPy | ( | ) |
Definition at line 574 of file MeshPointPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
PyObject * MeshPointPy::_getattr | ( | char * | attr | ) | [virtual] |
GetAttribute implementation This method implements the retriavel of object attributes.
If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class. Note: if you reimplement _gettattr() in a inheriting class you need to call the method of the base class! Otherwise even the methods of the object will disapiear!
Reimplemented from Base::PyObjectBase.
Definition at line 592 of file MeshPointPy.cpp.
References Base::Console(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().
PyObject * MeshPointPy::_repr | ( | void | ) | [virtual] |
_repr method Overide this method to return a string object with some invormation about the object.
PyObject *MeshFeaturePy::_repr(void) { std::stringstream a; a << "MeshFeature: [ "; a << "some realy important info about the object!"; a << "]" << std::endl; return Py_BuildValue("s", a.str().c_str()); }
Reimplemented from Base::PyObjectBase.
Definition at line 584 of file MeshPointPy.cpp.
References representation().
int MeshPointPy::_setattr | ( | char * | attr, | |
PyObject * | value | |||
) | [virtual] |
SetAttribute implementation This method implements the seting of object attributes.
If you want to implement attributes in your class, reimplement this method. You have to call the method of the base class.
Reimplemented from Base::PyObjectBase.
Definition at line 660 of file MeshPointPy.cpp.
References Base::Console(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().
Py::Boolean MeshPointPy::getBound | ( | void | ) | const |
getter for the Bound attribute
Definition at line 106 of file MeshPointPyImp.cpp.
References getMeshPointPtr().
Referenced by staticCallback_getBound().
PyObject * MeshPointPy::getCustomAttributes | ( | const char * | attr | ) | const |
getter method for special attributes (e.g. dynamic ones)
Definition at line 179 of file MeshPointPyImp.cpp.
Referenced by _getattr().
Py::Int MeshPointPy::getIndex | ( | void | ) | const |
getter for the Index attribute
Definition at line 101 of file MeshPointPyImp.cpp.
References getMeshPointPtr().
Referenced by staticCallback_getIndex().
MeshPoint * MeshPointPy::getMeshPointPtr | ( | void | ) | const |
getter for the object handled by this class
Definition at line 719 of file MeshPointPy.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by getBound(), getIndex(), getNormal(), move(), PyInit(), representation(), setx(), sety(), setz(), and unbound().
Py::Object MeshPointPy::getNormal | ( | void | ) | const |
getter for the Normal attribute
Definition at line 111 of file MeshPointPyImp.cpp.
References getMeshPointPtr().
Referenced by staticCallback_getNormal().
virtual PyParentObject* Mesh::MeshPointPy::GetParents | ( | void | ) | [inline, virtual] |
Reimplemented from Base::PyObjectBase.
Definition at line 28 of file MeshPointPy.h.
virtual PyTypeObject* Mesh::MeshPointPy::GetType | ( | void | ) | [inline, virtual] |
Reimplemented from Base::PyObjectBase.
Definition at line 27 of file MeshPointPy.h.
Py::Object MeshPointPy::getVector | ( | void | ) | const |
getter for the Vector attribute
Definition at line 122 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer, Base::PyObjectBase::setConst(), and draftlibs::fcgeo::vec().
Referenced by staticCallback_getVector().
Py::Float MeshPointPy::getx | ( | void | ) | const |
getter for the x attribute
Definition at line 131 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by staticCallback_getx().
Py::Float MeshPointPy::gety | ( | void | ) | const |
getter for the y attribute
Definition at line 147 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by staticCallback_gety().
Py::Float MeshPointPy::getz | ( | void | ) | const |
getter for the z attribute
Definition at line 163 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer.
Referenced by staticCallback_getz().
implementer for the move() method
Definition at line 77 of file MeshPointPyImp.cpp.
References getMeshPointPtr(), Mesh::MeshPoint::Mesh, Py_Return, Base::Vector3< _Precision >::Set(), Base::VectorPy::Type, draftlibs::fcgeo::vec(), MovieTool::x, and MovieTool::y.
PyInit method Overide this method to initialize a newly created instance of the class (Constuctor).
Reimplemented from Base::PyObjectBase.
Definition at line 60 of file MeshPointPyImp.cpp.
References getMeshPointPtr(), MovieTool::x, and MovieTool::y.
Definition at line 53 of file MeshPointPyImp.cpp.
References MeshPointPy().
std::string MeshPointPy::representation | ( | void | ) | const |
Definition at line 39 of file MeshPointPyImp.cpp.
References getMeshPointPtr(), Mesh::MeshPoint::Index, and Mesh::MeshPoint::isBound().
Referenced by _repr().
int MeshPointPy::setCustomAttributes | ( | const char * | attr, | |
PyObject * | obj | |||
) |
setter for special attributes (e.g. dynamic ones)
Definition at line 184 of file MeshPointPyImp.cpp.
Referenced by _setattr().
void MeshPointPy::setx | ( | Py::Float | arg | ) |
setter for the x attribute
Definition at line 137 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer, getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.
void MeshPointPy::sety | ( | Py::Float | arg | ) |
setter for the y attribute
Definition at line 153 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer, getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.
void MeshPointPy::setz | ( | Py::Float | arg | ) |
setter for the z attribute
Definition at line 169 of file MeshPointPyImp.cpp.
References Base::PyObjectBase::_pcTwinPointer, getMeshPointPtr(), Mesh::MeshPoint::isBound(), and Mesh::MeshPoint::Mesh.
getter callback for the Bound attribute
Definition at line 330 of file MeshPointPy.cpp.
References getBound(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Index attribute
Definition at line 298 of file MeshPointPy.cpp.
References getIndex(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Normal attribute
Definition at line 362 of file MeshPointPy.cpp.
References getNormal(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the Vector attribute
Definition at line 394 of file MeshPointPy.cpp.
References getVector(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the x attribute
Definition at line 426 of file MeshPointPy.cpp.
References getx(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the y attribute
Definition at line 470 of file MeshPointPy.cpp.
References gety(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
getter callback for the z attribute
Definition at line 514 of file MeshPointPy.cpp.
References getz(), Base::PyObjectBase::isValid(), Py::new_reference_to(), and Base::PyObjectBase::PyObjectBase().
callback for the move() method
Definition at line 222 of file MeshPointPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
int MeshPointPy::staticCallback_setBound | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Bound attribute
Definition at line 348 of file MeshPointPy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int MeshPointPy::staticCallback_setIndex | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Index attribute
Definition at line 316 of file MeshPointPy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int MeshPointPy::staticCallback_setNormal | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Normal attribute
Definition at line 380 of file MeshPointPy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
int MeshPointPy::staticCallback_setVector | ( | PyObject * | self, | |
PyObject * | value, | |||
void * | closure | |||
) | [static] |
setter callback for the Vector attribute
Definition at line 412 of file MeshPointPy.cpp.
References Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the x attribute
Definition at line 444 of file MeshPointPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the y attribute
Definition at line 488 of file MeshPointPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
setter callback for the z attribute
Definition at line 532 of file MeshPointPy.cpp.
References Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), and Base::PyObjectBase::PyObjectBase().
callback for the unbound() method
Definition at line 146 of file MeshPointPy.cpp.
References Base::Console(), Base::PyObjectBase::isConst(), Base::PyObjectBase::isValid(), Base::PyObjectBase::PyObjectBase(), Base::Exception::ReportException(), and Base::Exception::what().
implementer for the unbound() method
Definition at line 70 of file MeshPointPyImp.cpp.
References getMeshPointPtr(), Mesh::MeshPoint::Index, Mesh::MeshPoint::Mesh, and Py_Return.
PyGetSetDef MeshPointPy::GetterSetter [static] |
Attribute structure of MeshPointPy.
Definition at line 25 of file MeshPointPy.h.
PyMethodDef MeshPointPy::Methods [static] |
{ {"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.
Reimplemented from Base::PyObjectBase.
Definition at line 24 of file MeshPointPy.h.
Referenced by _getattr().
PyParentObject MeshPointPy::Parents = { PARENTSMeshMeshPointPy } [static] |
Reimplemented from Base::PyObjectBase.
Definition at line 26 of file MeshPointPy.h.
PyTypeObject MeshPointPy::Type [static] |
Type structure of MeshPointPy.
Reimplemented from Base::PyObjectBase.
Definition at line 23 of file MeshPointPy.h.
Referenced by initMesh().