Part::ConePy Class Reference

The python export class for GeomCone. More...

#include <ConePy.h>

Inheritance diagram for Part::ConePy:
Part::GeometrySurfacePy Part::GeometryPy Base::PyObjectBase

List of all members.

Public Types

typedef GeomConePointerType

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

Static Public Member Functions

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

Static Public Attributes

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

callbacks and implementers for the python object attributes



Py::Object getApex (void) const
 getter for the Apex attribute
Py::Object getAxis (void) const
 getter for the Axis attribute
Py::Object getCenter (void) const
 getter for the Center attribute
Py::Float getRadius (void) const
 getter for the Radius attribute
Py::Float getSemiAngle (void) const
 getter for the SemiAngle attribute
void setAxis (Py::Object arg)
 setter for the Axis attribute
void setCenter (Py::Object arg)
 setter for the Center attribute
void setRadius (Py::Float arg)
 setter for the Radius attribute
void setSemiAngle (Py::Float arg)
 setter for the SemiAngle attribute
static PyObjectstaticCallback_getApex (PyObject *self, void *closure)
 getter callback for the Apex attribute
static PyObjectstaticCallback_getAxis (PyObject *self, void *closure)
 getter callback for the Axis attribute
static PyObjectstaticCallback_getCenter (PyObject *self, void *closure)
 getter callback for the Center attribute
static PyObjectstaticCallback_getRadius (PyObject *self, void *closure)
 getter callback for the Radius attribute
static PyObjectstaticCallback_getSemiAngle (PyObject *self, void *closure)
 getter callback for the SemiAngle attribute
static int staticCallback_setApex (PyObject *self, PyObject *value, void *closure)
 setter callback for the Apex attribute
static int staticCallback_setAxis (PyObject *self, PyObject *value, void *closure)
 setter callback for the Axis attribute
static int staticCallback_setCenter (PyObject *self, PyObject *value, void *closure)
 setter callback for the Center attribute
static int staticCallback_setRadius (PyObject *self, PyObject *value, void *closure)
 setter callback for the Radius attribute
static int staticCallback_setSemiAngle (PyObject *self, PyObject *value, void *closure)
 setter callback for the SemiAngle attribute

callbacks and implementers for the python object methods



PyObjectuIso (PyObject *args)
 implementer for the uIso() method
PyObjectvIso (PyObject *args)
 implementer for the vIso() method
static PyObjectstaticCallback_uIso (PyObject *self, PyObject *args)
 callback for the uIso() method
static PyObjectstaticCallback_vIso (PyObject *self, PyObject *args)
 callback for the vIso() method

Detailed Description

The python export class for GeomCone.

Definition at line 20 of file ConePy.h.


Member Typedef Documentation

Reimplemented from Part::GeometrySurfacePy.

Definition at line 36 of file ConePy.h.


Constructor & Destructor Documentation

ConePy::ConePy ( GeomCone pcObject,
PyTypeObject *  T = &Type 
)

Definition at line 521 of file ConePy.cpp.

Referenced by PyMake().

ConePy::~ConePy (  ) 

Definition at line 530 of file ConePy.cpp.


Member Function Documentation

PyObject * ConePy::_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 Part::GeometrySurfacePy.

Definition at line 545 of file ConePy.cpp.

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

PyObject * ConePy::_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 Part::GeometrySurfacePy.

Definition at line 537 of file ConePy.cpp.

References representation().

int ConePy::_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 Part::GeometrySurfacePy.

Definition at line 613 of file ConePy.cpp.

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

Py::Object ConePy::getApex ( void   )  const

getter for the Apex attribute

Definition at line 217 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getApex().

Py::Object ConePy::getAxis ( void   )  const

getter for the Axis attribute

Definition at line 283 of file ConePyImp.cpp.

References Part::GeometryPy::getGeometryPtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getAxis().

Py::Object ConePy::getCenter ( void   )  const

getter for the Center attribute

Definition at line 253 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getCenter().

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

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 326 of file ConePyImp.cpp.

Referenced by _getattr().

GeomCone * ConePy::getGeomConePtr ( void   )  const

getter for the object handled by this class

Definition at line 672 of file ConePy.cpp.

References Base::PyObjectBase::_pcTwinPointer.

Referenced by getApex(), getCenter(), getRadius(), getSemiAngle(), setCenter(), setRadius(), setSemiAngle(), uIso(), and vIso().

virtual PyParentObject* Part::ConePy::GetParents ( void   )  [inline, virtual]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 28 of file ConePy.h.

Py::Float ConePy::getRadius ( void   )  const

getter for the Radius attribute

Definition at line 225 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getRadius().

Py::Float ConePy::getSemiAngle ( void   )  const

getter for the SemiAngle attribute

Definition at line 239 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

Referenced by staticCallback_getSemiAngle().

virtual PyTypeObject* Part::ConePy::GetType ( void   )  [inline, virtual]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 27 of file ConePy.h.

int ConePy::PyInit ( PyObject ,
PyObject  
) [virtual]
PyObject * ConePy::PyMake ( struct _typeobject *  ,
PyObject ,
PyObject  
) [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 56 of file ConePyImp.cpp.

References ConePy().

std::string ConePy::representation ( void   )  const

Reimplemented from Part::GeometrySurfacePy.

Definition at line 51 of file ConePyImp.cpp.

Referenced by _repr().

void ConePy::setAxis ( Py::Object  arg  ) 
void ConePy::setCenter ( Py::Object  arg  ) 
int ConePy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

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

Reimplemented from Part::GeometrySurfacePy.

Definition at line 331 of file ConePyImp.cpp.

Referenced by _setattr().

void ConePy::setRadius ( Py::Float  arg  ) 

setter for the Radius attribute

Definition at line 232 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

void ConePy::setSemiAngle ( Py::Float  arg  ) 

setter for the SemiAngle attribute

Definition at line 246 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

PyObject * ConePy::staticCallback_getApex ( PyObject self,
void *  closure 
) [static]

getter callback for the Apex attribute

Definition at line 306 of file ConePy.cpp.

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

PyObject * ConePy::staticCallback_getAxis ( PyObject self,
void *  closure 
) [static]

getter callback for the Axis attribute

Definition at line 470 of file ConePy.cpp.

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

PyObject * ConePy::staticCallback_getCenter ( PyObject self,
void *  closure 
) [static]

getter callback for the Center attribute

Definition at line 426 of file ConePy.cpp.

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

PyObject * ConePy::staticCallback_getRadius ( PyObject self,
void *  closure 
) [static]

getter callback for the Radius attribute

Definition at line 338 of file ConePy.cpp.

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

PyObject * ConePy::staticCallback_getSemiAngle ( PyObject self,
void *  closure 
) [static]

getter callback for the SemiAngle attribute

Definition at line 382 of file ConePy.cpp.

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

int ConePy::staticCallback_setApex ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Apex attribute

Definition at line 324 of file ConePy.cpp.

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

int ConePy::staticCallback_setAxis ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Axis attribute

Definition at line 488 of file ConePy.cpp.

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

int ConePy::staticCallback_setCenter ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Center attribute

Definition at line 444 of file ConePy.cpp.

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

int ConePy::staticCallback_setRadius ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the Radius attribute

Definition at line 356 of file ConePy.cpp.

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

int ConePy::staticCallback_setSemiAngle ( PyObject self,
PyObject value,
void *  closure 
) [static]

setter callback for the SemiAngle attribute

Definition at line 400 of file ConePy.cpp.

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

PyObject * ConePy::staticCallback_uIso ( PyObject self,
PyObject args 
) [static]
PyObject * ConePy::staticCallback_vIso ( PyObject self,
PyObject args 
) [static]
PyObject * ConePy::uIso ( PyObject args  ) 

implementer for the uIso() method

Definition at line 173 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().

PyObject * ConePy::vIso ( PyObject args  ) 

implementer for the vIso() method

Definition at line 198 of file ConePyImp.cpp.

References getGeomConePtr(), and StartPage::StartPage::handle().


Member Data Documentation

PyGetSetDef ConePy::GetterSetter [static]

Attribute structure of ConePy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 25 of file ConePy.h.

PyMethodDef ConePy::Methods [static]
Initial value:
 {
    {"uIso",
        (PyCFunction) staticCallback_uIso,
        METH_VARARGS,
        "Builds the U isoparametric circle of this cone"
    },
    {"vIso",
        (PyCFunction) staticCallback_vIso,
        METH_VARARGS,
        "Builds the V isoparametric circle of this cone"
    },
    {NULL, NULL, 0, NULL}               
}

Methods structure of ConePy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 24 of file ConePy.h.

Referenced by _getattr().

PyParentObject ConePy::Parents = { PARENTSPartConePy } [static]

Reimplemented from Part::GeometrySurfacePy.

Definition at line 26 of file ConePy.h.

PyTypeObject ConePy::Type [static]

Type structure of ConePy.

Reimplemented from Part::GeometrySurfacePy.

Definition at line 23 of file ConePy.h.

Referenced by initPart(), and PyInit().


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

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