Base::BoundBoxPy Class Reference

The python export class for BoundBox. More...

#include <BoundBoxPy.h>

Inheritance diagram for Base::BoundBoxPy:
Base::PyObjectBase

List of all members.

Public Types

typedef BoundBox3dPointerType

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.
 BoundBoxPy (BoundBox3d *pcObject, PyTypeObject *T=&Type)
BoundBox3dgetBoundBoxPtr (void) const
 getter for the object handled by this class
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones)
virtual PyParentObjectGetParents (void)
virtual PyTypeObject * GetType (void)
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)
 ~BoundBoxPy ()

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)

Static Public Attributes

static PyGetSetDef GetterSetter []
 Attribute structure of BoundBoxPy.
static PyMethodDef Methods []
 Methods structure of BoundBoxPy.
static PyParentObject Parents [] = { PARENTSBaseBoundBoxPy }
static PyTypeObject Type
 Type structure of BoundBoxPy.

callbacks and implementers for the python object methods



PyObjectadd (PyObject *args)
 implementer for the add() method
PyObjectenlarge (PyObject *args)
 implementer for the enlarge() method
PyObjectgetIntersectionPoint (PyObject *args)
 implementer for the getIntersectionPoint() method
PyObjectisCutPlane (PyObject *args)
 implementer for the isCutPlane() method
PyObjectisInside (PyObject *args)
 implementer for the isInside() method
PyObjectisIntersection (PyObject *args)
 implementer for the isIntersection() method
PyObjectmove (PyObject *args)
 implementer for the move() method
static PyObjectstaticCallback_add (PyObject *self, PyObject *args)
 callback for the add() method
static PyObjectstaticCallback_enlarge (PyObject *self, PyObject *args)
 callback for the enlarge() method
static PyObjectstaticCallback_getIntersectionPoint (PyObject *self, PyObject *args)
 callback for the getIntersectionPoint() method
static PyObjectstaticCallback_isCutPlane (PyObject *self, PyObject *args)
 callback for the isCutPlane() method
static PyObjectstaticCallback_isInside (PyObject *self, PyObject *args)
 callback for the isInside() method
static PyObjectstaticCallback_isIntersection (PyObject *self, PyObject *args)
 callback for the isIntersection() method
static PyObjectstaticCallback_move (PyObject *self, PyObject *args)
 callback for the move() method

callbacks and implementers for the python object attributes



Py::Object getCenter (void) const
 getter for the Center attribute
Py::Float getDiagonalLength (void) const
 getter for the DiagonalLength attribute
Py::Float getXLength (void) const
 getter for the XLength attribute
Py::Float getXMax (void) const
 getter for the XMax attribute
Py::Float getXMin (void) const
 getter for the XMin attribute
Py::Float getYLength (void) const
 getter for the YLength attribute
Py::Float getYMax (void) const
 getter for the YMax attribute
Py::Float getYMin (void) const
 getter for the YMin attribute
Py::Float getZLength (void) const
 getter for the ZLength attribute
Py::Float getZMax (void) const
 getter for the ZMax attribute
Py::Float getZMin (void) const
 getter for the ZMin attribute
void setXMax (Py::Float arg)
 setter for the XMax attribute
void setXMin (Py::Float arg)
 setter for the XMin attribute
void setYMax (Py::Float arg)
 setter for the YMax attribute
void setYMin (Py::Float arg)
 setter for the YMin attribute
void setZMax (Py::Float arg)
 setter for the ZMax attribute
void setZMin (Py::Float arg)
 setter for the ZMin attribute
static PyObjectstaticCallback_getCenter (PyObject *self, void *closure)
 getter callback for the Center attribute
static PyObjectstaticCallback_getDiagonalLength (PyObject *self, void *closure)
 getter callback for the DiagonalLength attribute
static PyObjectstaticCallback_getXLength (PyObject *self, void *closure)
 getter callback for the XLength attribute
static PyObjectstaticCallback_getXMax (PyObject *self, void *closure)
 getter callback for the XMax attribute
static PyObjectstaticCallback_getXMin (PyObject *self, void *closure)
 getter callback for the XMin attribute
static PyObjectstaticCallback_getYLength (PyObject *self, void *closure)
 getter callback for the YLength attribute
static PyObjectstaticCallback_getYMax (PyObject *self, void *closure)
 getter callback for the YMax attribute
static PyObjectstaticCallback_getYMin (PyObject *self, void *closure)
 getter callback for the YMin attribute
static PyObjectstaticCallback_getZLength (PyObject *self, void *closure)
 getter callback for the ZLength attribute
static PyObjectstaticCallback_getZMax (PyObject *self, void *closure)
 getter callback for the ZMax attribute
static PyObjectstaticCallback_getZMin (PyObject *self, void *closure)
 getter callback for the ZMin attribute
static int staticCallback_setCenter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Center attribute
static int staticCallback_setDiagonalLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the DiagonalLength attribute
static int staticCallback_setXLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the XLength attribute
static int staticCallback_setXMax (PyObject *self, PyObject *value, void *closure)
 setter callback for the XMax attribute
static int staticCallback_setXMin (PyObject *self, PyObject *value, void *closure)
 setter callback for the XMin attribute
static int staticCallback_setYLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the YLength attribute
static int staticCallback_setYMax (PyObject *self, PyObject *value, void *closure)
 setter callback for the YMax attribute
static int staticCallback_setYMin (PyObject *self, PyObject *value, void *closure)
 setter callback for the YMin attribute
static int staticCallback_setZLength (PyObject *self, PyObject *value, void *closure)
 setter callback for the ZLength attribute
static int staticCallback_setZMax (PyObject *self, PyObject *value, void *closure)
 setter callback for the ZMax attribute
static int staticCallback_setZMin (PyObject *self, PyObject *value, void *closure)
 setter callback for the ZMin attribute

Detailed Description

The python export class for BoundBox.

Definition at line 20 of file BoundBoxPy.h.


Member Typedef Documentation

Reimplemented from Base::PyObjectBase.

Definition at line 36 of file BoundBoxPy.h.


Constructor & Destructor Documentation

BoundBoxPy::BoundBoxPy ( BoundBox3d pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 1163 of file BoundBoxPy.cpp.

Referenced by PyMake().

BoundBoxPy::~BoundBoxPy (  ) 

Definition at line 1172 of file BoundBoxPy.cpp.

References Base::PyObjectBase::_pcTwinPointer.


Member Function Documentation

PyObject * BoundBoxPy::_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 1190 of file BoundBoxPy.cpp.

References Base::Console(), Base::ConsoleSingleton::Error(), getCustomAttributes(), Methods, Base::Exception::ReportException(), and Base::Exception::what().

PyObject * BoundBoxPy::_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 1182 of file BoundBoxPy.cpp.

References representation().

int BoundBoxPy::_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 1258 of file BoundBoxPy.cpp.

References Base::Console(), Base::ConsoleSingleton::Error(), Base::Exception::ReportException(), setCustomAttributes(), and Base::Exception::what().

PyObject * BoundBoxPy::add ( PyObject args  ) 
PyObject * BoundBoxPy::enlarge ( PyObject args  ) 

implementer for the enlarge() method

Definition at line 174 of file BoundBoxPyImp.cpp.

References Base::BoundBox3< _Precision >::Enlarge(), getBoundBoxPtr(), and Py_Return.

BoundBox3d * BoundBoxPy::getBoundBoxPtr ( void   )  const
Py::Object BoundBoxPy::getCenter ( void   )  const

getter for the Center attribute

Definition at line 276 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getCenter().

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

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

Definition at line 361 of file BoundBoxPyImp.cpp.

Referenced by _getattr().

Py::Float BoundBoxPy::getDiagonalLength ( void   )  const

getter for the DiagonalLength attribute

Definition at line 356 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getDiagonalLength().

PyObject * BoundBoxPy::getIntersectionPoint ( PyObject args  ) 
virtual PyParentObject* Base::BoundBoxPy::GetParents ( void   )  [inline, virtual]

Reimplemented from Base::PyObjectBase.

Definition at line 28 of file BoundBoxPy.h.

virtual PyTypeObject* Base::BoundBoxPy::GetType ( void   )  [inline, virtual]

Reimplemented from Base::PyObjectBase.

Definition at line 27 of file BoundBoxPy.h.

Py::Float BoundBoxPy::getXLength ( void   )  const

getter for the XLength attribute

Definition at line 341 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getXLength().

Py::Float BoundBoxPy::getXMax ( void   )  const

getter for the XMax attribute

Definition at line 281 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getXMax().

Py::Float BoundBoxPy::getXMin ( void   )  const

getter for the XMin attribute

Definition at line 311 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getXMin().

Py::Float BoundBoxPy::getYLength ( void   )  const

getter for the YLength attribute

Definition at line 346 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getYLength().

Py::Float BoundBoxPy::getYMax ( void   )  const

getter for the YMax attribute

Definition at line 291 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getYMax().

Py::Float BoundBoxPy::getYMin ( void   )  const

getter for the YMin attribute

Definition at line 321 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getYMin().

Py::Float BoundBoxPy::getZLength ( void   )  const

getter for the ZLength attribute

Definition at line 351 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getZLength().

Py::Float BoundBoxPy::getZMax ( void   )  const

getter for the ZMax attribute

Definition at line 301 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getZMax().

Py::Float BoundBoxPy::getZMin ( void   )  const

getter for the ZMin attribute

Definition at line 331 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr().

Referenced by staticCallback_getZMin().

PyObject * BoundBoxPy::isCutPlane ( PyObject args  ) 
PyObject * BoundBoxPy::isInside ( PyObject args  ) 
PyObject * BoundBoxPy::isIntersection ( PyObject args  ) 
PyObject * BoundBoxPy::move ( PyObject args  ) 
int BoundBoxPy::PyInit ( PyObject ,
PyObject  
) [virtual]
PyObject * BoundBoxPy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Definition at line 52 of file BoundBoxPyImp.cpp.

References BoundBoxPy().

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

setter for special attributes (e.g. dynamic ones)

Definition at line 366 of file BoundBoxPyImp.cpp.

Referenced by _setattr().

void BoundBoxPy::setXMax ( Py::Float  arg  ) 

setter for the XMax attribute

Definition at line 286 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MaxX.

void BoundBoxPy::setXMin ( Py::Float  arg  ) 

setter for the XMin attribute

Definition at line 316 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MinX.

void BoundBoxPy::setYMax ( Py::Float  arg  ) 

setter for the YMax attribute

Definition at line 296 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MaxY.

void BoundBoxPy::setYMin ( Py::Float  arg  ) 

setter for the YMin attribute

Definition at line 326 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MinY.

void BoundBoxPy::setZMax ( Py::Float  arg  ) 

setter for the ZMax attribute

Definition at line 306 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MaxZ.

void BoundBoxPy::setZMin ( Py::Float  arg  ) 

setter for the ZMin attribute

Definition at line 336 of file BoundBoxPyImp.cpp.

References getBoundBoxPtr(), and Base::BoundBox3< _Precision >::MinZ.

PyObject * BoundBoxPy::staticCallback_add ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_enlarge ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_getCenter ( PyObject self,
void *  closure 
) [static]

getter callback for the Center attribute

Definition at line 732 of file BoundBoxPy.cpp.

References getCenter(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getDiagonalLength ( PyObject self,
void *  closure 
) [static]

getter callback for the DiagonalLength attribute

Definition at line 1124 of file BoundBoxPy.cpp.

References getDiagonalLength(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getIntersectionPoint ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_getXLength ( PyObject self,
void *  closure 
) [static]

getter callback for the XLength attribute

Definition at line 1028 of file BoundBoxPy.cpp.

References getXLength(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getXMax ( PyObject self,
void *  closure 
) [static]

getter callback for the XMax attribute

Definition at line 764 of file BoundBoxPy.cpp.

References getXMax(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getXMin ( PyObject self,
void *  closure 
) [static]

getter callback for the XMin attribute

Definition at line 896 of file BoundBoxPy.cpp.

References getXMin(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getYLength ( PyObject self,
void *  closure 
) [static]

getter callback for the YLength attribute

Definition at line 1060 of file BoundBoxPy.cpp.

References getYLength(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getYMax ( PyObject self,
void *  closure 
) [static]

getter callback for the YMax attribute

Definition at line 808 of file BoundBoxPy.cpp.

References getYMax(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getYMin ( PyObject self,
void *  closure 
) [static]

getter callback for the YMin attribute

Definition at line 940 of file BoundBoxPy.cpp.

References getYMin(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getZLength ( PyObject self,
void *  closure 
) [static]

getter callback for the ZLength attribute

Definition at line 1092 of file BoundBoxPy.cpp.

References getZLength(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getZMax ( PyObject self,
void *  closure 
) [static]

getter callback for the ZMax attribute

Definition at line 852 of file BoundBoxPy.cpp.

References getZMax(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_getZMin ( PyObject self,
void *  closure 
) [static]

getter callback for the ZMin attribute

Definition at line 984 of file BoundBoxPy.cpp.

References getZMin(), Base::PyObjectBase::isValid(), and Py::new_reference_to().

PyObject * BoundBoxPy::staticCallback_isCutPlane ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_isInside ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_isIntersection ( PyObject self,
PyObject args 
) [static]
PyObject * BoundBoxPy::staticCallback_move ( PyObject self,
PyObject args 
) [static]
int BoundBoxPy::staticCallback_setCenter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Center attribute

Definition at line 750 of file BoundBoxPy.cpp.

References Base::PyObjectBase::isValid().

int BoundBoxPy::staticCallback_setDiagonalLength ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the DiagonalLength attribute

Definition at line 1142 of file BoundBoxPy.cpp.

References Base::PyObjectBase::isValid().

int BoundBoxPy::staticCallback_setXLength ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the XLength attribute

Definition at line 1046 of file BoundBoxPy.cpp.

References Base::PyObjectBase::isValid().

int BoundBoxPy::staticCallback_setXMax ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the XMax attribute

Definition at line 782 of file BoundBoxPy.cpp.

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

int BoundBoxPy::staticCallback_setXMin ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the XMin attribute

Definition at line 914 of file BoundBoxPy.cpp.

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

int BoundBoxPy::staticCallback_setYLength ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the YLength attribute

Definition at line 1078 of file BoundBoxPy.cpp.

References Base::PyObjectBase::isValid().

int BoundBoxPy::staticCallback_setYMax ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the YMax attribute

Definition at line 826 of file BoundBoxPy.cpp.

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

int BoundBoxPy::staticCallback_setYMin ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the YMin attribute

Definition at line 958 of file BoundBoxPy.cpp.

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

int BoundBoxPy::staticCallback_setZLength ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the ZLength attribute

Definition at line 1110 of file BoundBoxPy.cpp.

References Base::PyObjectBase::isValid().

int BoundBoxPy::staticCallback_setZMax ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the ZMax attribute

Definition at line 870 of file BoundBoxPy.cpp.

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

int BoundBoxPy::staticCallback_setZMin ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the ZMin attribute

Definition at line 1002 of file BoundBoxPy.cpp.

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


Member Data Documentation

PyGetSetDef BoundBoxPy::GetterSetter [static]

Attribute structure of BoundBoxPy.

Definition at line 25 of file BoundBoxPy.h.

PyMethodDef BoundBoxPy::Methods [static]

Methods structure of BoundBoxPy.

Reimplemented from Base::PyObjectBase.

Definition at line 24 of file BoundBoxPy.h.

Referenced by _getattr().

PyParentObject BoundBoxPy::Parents = { PARENTSBaseBoundBoxPy } [static]

Reimplemented from Base::PyObjectBase.

Definition at line 26 of file BoundBoxPy.h.

PyTypeObject BoundBoxPy::Type [static]

Type structure of BoundBoxPy.

Reimplemented from Base::PyObjectBase.

Definition at line 23 of file BoundBoxPy.h.

Referenced by add(), isInside(), isIntersection(), and PyInit().


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

Generated on Wed Nov 23 19:01:46 2011 for FreeCAD by  doxygen 1.6.1