Mesh::MeshPointPy Class Reference

The python export class for MeshPoint. More...

#include <MeshPointPy.h>

Inheritance diagram for Mesh::MeshPointPy:
Base::PyObjectBase

List of all members.

Public Types

typedef MeshPointPointerType

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.
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
MeshPointgetMeshPointPtr (void) const
 getter for the object handled by this class
virtual PyParentObjectGetParents (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 PyObjectPyMake (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 PyObjectstaticCallback_getBound (PyObject *self, void *closure)
 getter callback for the Bound attribute
static PyObjectstaticCallback_getIndex (PyObject *self, void *closure)
 getter callback for the Index attribute
static PyObjectstaticCallback_getNormal (PyObject *self, void *closure)
 getter callback for the Normal attribute
static PyObjectstaticCallback_getVector (PyObject *self, void *closure)
 getter callback for the Vector attribute
static PyObjectstaticCallback_getx (PyObject *self, void *closure)
 getter callback for the x attribute
static PyObjectstaticCallback_gety (PyObject *self, void *closure)
 getter callback for the y attribute
static PyObjectstaticCallback_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



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

Detailed Description

The python export class for MeshPoint.

Definition at line 20 of file MeshPointPy.h.


Member Typedef Documentation

Reimplemented from Base::PyObjectBase.

Definition at line 36 of file MeshPointPy.h.


Constructor & Destructor Documentation

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

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.


Member Function Documentation

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().

PyObject * MeshPointPy::move ( PyObject args  ) 
int MeshPointPy::PyInit ( PyObject ,
PyObject  
) [virtual]

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.

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

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.

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

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().

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

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().

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

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().

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

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().

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

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().

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

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().

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

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().

PyObject * MeshPointPy::staticCallback_move ( PyObject self,
PyObject args 
) [static]
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().

int MeshPointPy::staticCallback_setx ( PyObject self,
PyObject value,
void *  closure 
) [static]

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().

int MeshPointPy::staticCallback_sety ( PyObject self,
PyObject value,
void *  closure 
) [static]

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().

int MeshPointPy::staticCallback_setz ( PyObject self,
PyObject value,
void *  closure 
) [static]

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().

PyObject * MeshPointPy::staticCallback_unbound ( PyObject self,
PyObject args 
) [static]
PyObject * MeshPointPy::unbound ( PyObject args  ) 

implementer for the unbound() method

Definition at line 70 of file MeshPointPyImp.cpp.

References getMeshPointPtr(), Mesh::MeshPoint::Index, Mesh::MeshPoint::Mesh, and Py_Return.


Member Data Documentation

PyGetSetDef MeshPointPy::GetterSetter [static]

Attribute structure of MeshPointPy.

Definition at line 25 of file MeshPointPy.h.

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.

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().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:21 2011 for FreeCAD by  doxygen 1.6.1