The python export class for PointKernel. More...

#include <PointsPy.h>

Public Types

typedef PointKernelPointerType
 
- Public Types inherited from Data::ComplexGeoDataPy
typedef ComplexGeoDataPointerType
 
- Public Types inherited from Base::PersistencePy
typedef PersistencePointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClassPointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

virtual PyTypeObject * GetType (void)
 
 PointsPy (PointKernel *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 (Constructor) More...
 
std::string representation (void) const
 
- Public Member Functions inherited from Data::ComplexGeoDataPy
 ComplexGeoDataPy (ComplexGeoData *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetFacesFromSubelement (PyObject *args)
 implementer for the getFacesFromSubelement() method More...
 
Py::Object getBoundBox (void) const
 getter for the BoundBox attribute More...
 
Py::Object getPlacement (void) const
 getter for the Placement attribute More...
 
void setPlacement (Py::Object arg)
 setter for the Placement attribute More...
 
Py::Object getMatrix (void) const
 getter for the Matrix attribute More...
 
void setMatrix (Py::Object arg)
 setter for the Matrix attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
ComplexGeoDatagetComplexGeoDataPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectdumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObjectrestoreContent (PyObject *args)
 implementer for the restoreContent() method More...
 
Py::String getContent (void) const
 getter for the Content attribute More...
 
Py::Int getMemSize (void) const
 getter for the MemSize attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
PersistencegetPersistencePtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::BaseClassPy
 BaseClassPy (BaseClass *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectisDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObjectgetAllDerivedFrom (PyObject *args)
 implementer for the getAllDerivedFrom() method More...
 
Py::String getTypeId (void) const
 getter for the TypeId attribute More...
 
Py::String getModule (void) const
 getter for the Module attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
BaseClassgetBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- 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 isNotTracking () const
 
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 setConst ()
 
void setInvalid ()
 
void setNotTracking (bool on=true)
 
void setShouldNotify (bool on)
 
bool shouldNotify () const
 
void startNotify ()
 

Static Public Member Functions

static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Data::ComplexGeoDataPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_getFacesFromSubelement (PyObject *self, PyObject *args)
 callback for the getFacesFromSubelement() method More...
 
static PyObjectstaticCallback_getBoundBox (PyObject *self, void *closure)
 getter callback for the BoundBox attribute More...
 
static int staticCallback_setBoundBox (PyObject *self, PyObject *value, void *closure)
 setter callback for the BoundBox attribute More...
 
static PyObjectstaticCallback_getPlacement (PyObject *self, void *closure)
 getter callback for the Placement attribute More...
 
static int staticCallback_setPlacement (PyObject *self, PyObject *value, void *closure)
 setter callback for the Placement attribute More...
 
static PyObjectstaticCallback_getMatrix (PyObject *self, void *closure)
 getter callback for the Matrix attribute More...
 
static int staticCallback_setMatrix (PyObject *self, PyObject *value, void *closure)
 setter callback for the Matrix attribute More...
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObjectstaticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObjectstaticCallback_getContent (PyObject *self, void *closure)
 getter callback for the Content attribute More...
 
static int staticCallback_setContent (PyObject *self, PyObject *value, void *closure)
 setter callback for the Content attribute More...
 
static PyObjectstaticCallback_getMemSize (PyObject *self, void *closure)
 getter callback for the MemSize attribute More...
 
static int staticCallback_setMemSize (PyObject *self, PyObject *value, void *closure)
 setter callback for the MemSize attribute More...
 
- Static Public Member Functions inherited from Base::BaseClassPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObjectstaticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObjectstaticCallback_getTypeId (PyObject *self, void *closure)
 getter callback for the TypeId attribute More...
 
static int staticCallback_setTypeId (PyObject *self, PyObject *value, void *closure)
 setter callback for the TypeId attribute More...
 
static PyObjectstaticCallback_getModule (PyObject *self, void *closure)
 getter callback for the Module attribute More...
 
static int staticCallback_setModule (PyObject *self, PyObject *value, void *closure)
 setter callback for the Module attribute More...
 
- 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 PointsPy. More...
 
static PyMethodDef Methods []
 Methods structure of PointsPy. More...
 
static PyTypeObject Type
 Type structure of PointsPy. More...
 
- Static Public Attributes inherited from Data::ComplexGeoDataPy
static PyGetSetDef GetterSetter []
 Attribute structure of ComplexGeoDataPy. More...
 
static PyMethodDef Methods []
 Methods structure of ComplexGeoDataPy. More...
 
static PyTypeObject Type
 Type structure of ComplexGeoDataPy. More...
 
- Static Public Attributes inherited from Base::PersistencePy
static PyGetSetDef GetterSetter []
 Attribute structure of PersistencePy. More...
 
static PyMethodDef Methods []
 Methods structure of PersistencePy. More...
 
static PyTypeObject Type
 Type structure of PersistencePy. More...
 
- Static Public Attributes inherited from Base::BaseClassPy
static PyGetSetDef GetterSetter []
 Attribute structure of BaseClassPy. More...
 
static PyMethodDef Methods []
 Methods structure of BaseClassPy. More...
 
static PyTypeObject Type
 Type structure of BaseClassPy. More...
 
- Static Public Attributes inherited from Base::PyObjectBase
static PyMethodDef Methods []
 
static PyTypeObject Type
 Py_Header struct from python.h. More...
 

Protected Member Functions

 ~PointsPy ()
 
- Protected Member Functions inherited from Data::ComplexGeoDataPy
 ~ComplexGeoDataPy ()
 
- Protected Member Functions inherited from Base::PersistencePy
 ~PersistencePy ()
 
- Protected Member Functions inherited from Base::BaseClassPy
 ~BaseClassPy ()
 
- Protected Member Functions inherited from Base::PyObjectBase
virtual ~PyObjectBase ()
 destructor More...
 

callbacks and implementers for the python object methods

PyObjectcopy (PyObject *args)
 implementer for the copy() method More...
 
PyObjectread (PyObject *args)
 implementer for the read() method More...
 
PyObjectwrite (PyObject *args)
 implementer for the write() method More...
 
PyObjectwriteInventor (PyObject *args)
 implementer for the writeInventor() method More...
 
PyObjectaddPoints (PyObject *args)
 implementer for the addPoints() method More...
 
PyObjectfromSegment (PyObject *args)
 implementer for the fromSegment() method More...
 
PyObjectfromValid (PyObject *args)
 implementer for the fromValid() method More...
 
static PyObjectstaticCallback_copy (PyObject *self, PyObject *args)
 callback for the copy() method More...
 
static PyObjectstaticCallback_read (PyObject *self, PyObject *args)
 callback for the read() method More...
 
static PyObjectstaticCallback_write (PyObject *self, PyObject *args)
 callback for the write() method More...
 
static PyObjectstaticCallback_writeInventor (PyObject *self, PyObject *args)
 callback for the writeInventor() method More...
 
static PyObjectstaticCallback_addPoints (PyObject *self, PyObject *args)
 callback for the addPoints() method More...
 
static PyObjectstaticCallback_fromSegment (PyObject *self, PyObject *args)
 callback for the fromSegment() method More...
 
static PyObjectstaticCallback_fromValid (PyObject *self, PyObject *args)
 callback for the fromValid() method More...
 

callbacks and implementers for the python object attributes

Py::Long getCountPoints (void) const
 getter for the CountPoints attribute More...
 
Py::List getPoints (void) const
 getter for the Points attribute More...
 
PyObjectgetCustomAttributes (const char *attr) const
 getter method for special attributes (e.g. dynamic ones) More...
 
int setCustomAttributes (const char *attr, PyObject *obj)
 setter for special attributes (e.g. More...
 
PointKernelgetPointKernelPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getCountPoints (PyObject *self, void *closure)
 getter callback for the CountPoints attribute More...
 
static int staticCallback_setCountPoints (PyObject *self, PyObject *value, void *closure)
 setter callback for the CountPoints attribute More...
 
static PyObjectstaticCallback_getPoints (PyObject *self, void *closure)
 getter callback for the Points attribute More...
 
static int staticCallback_setPoints (PyObject *self, PyObject *value, void *closure)
 setter callback for the Points attribute More...
 

Additional Inherited Members

- Protected Attributes inherited from Base::PyObjectBase
std::bitset< 32 > StatusBits
 

Detailed Description

The python export class for PointKernel.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~PointsPy()

PointsPy::~PointsPy ( )
protected

◆ PointsPy()

PointsPy::PointsPy ( PointKernel pcObject,
PyTypeObject *  T = &Type 
)

Referenced by copy(), fromSegment(), fromValid(), and PyMake().

Member Function Documentation

◆ addPoints()

◆ copy()

PyObject * PointsPy::copy ( PyObject args)

implementer for the copy() method

References getPointKernelPtr(), and PointsPy().

Referenced by staticCallback_copy().

◆ fromSegment()

◆ fromValid()

◆ getCountPoints()

Py::Long PointsPy::getCountPoints ( void  ) const

getter for the CountPoints attribute

References getPointKernelPtr().

Referenced by staticCallback_getCountPoints().

◆ getCustomAttributes()

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

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

◆ getPointKernelPtr()

PointKernel * PointsPy::getPointKernelPtr ( void  ) const

◆ getPoints()

Py::List PointsPy::getPoints ( void  ) const

getter for the Points attribute

References getPointKernelPtr().

Referenced by staticCallback_getPoints().

◆ GetType()

virtual PyTypeObject* Points::PointsPy::GetType ( void  )
virtual

Reimplemented from Data::ComplexGeoDataPy.

◆ PyInit()

int PointsPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from Data::ComplexGeoDataPy.

References addPoints(), getPointKernelPtr(), Points::PointKernel::load(), and Type.

◆ PyMake()

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

References PointsPy().

◆ read()

PyObject * PointsPy::read ( PyObject args)

implementer for the read() method

References getPointKernelPtr(), and Points::PointKernel::load().

Referenced by staticCallback_read().

◆ representation()

◆ setCustomAttributes()

int PointsPy::setCustomAttributes ( const char *  attr,
PyObject obj 
)

setter for special attributes (e.g.

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

◆ staticCallback_addPoints()

◆ staticCallback_copy()

PyObject * PointsPy::staticCallback_copy ( PyObject self,
PyObject args 
)
static

◆ staticCallback_fromSegment()

PyObject * PointsPy::staticCallback_fromSegment ( PyObject self,
PyObject args 
)
static

◆ staticCallback_fromValid()

PyObject * PointsPy::staticCallback_fromValid ( PyObject self,
PyObject args 
)
static

◆ staticCallback_getCountPoints()

PyObject * PointsPy::staticCallback_getCountPoints ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getPoints()

PyObject * PointsPy::staticCallback_getPoints ( PyObject self,
void *  closure 
)
static

◆ staticCallback_read()

◆ staticCallback_setCountPoints()

int PointsPy::staticCallback_setCountPoints ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the CountPoints attribute

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

◆ staticCallback_setPoints()

int PointsPy::staticCallback_setPoints ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Points attribute

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

◆ staticCallback_write()

PyObject * PointsPy::staticCallback_write ( PyObject self,
PyObject args 
)
static

◆ staticCallback_writeInventor()

◆ write()

PyObject * PointsPy::write ( PyObject args)

implementer for the write() method

References getPointKernelPtr(), and Points::PointKernel::save().

Referenced by staticCallback_write().

◆ writeInventor()

Member Data Documentation

◆ GetterSetter

PyGetSetDef PointsPy::GetterSetter
static
Initial value:
= {
{"CountPoints",
"Return the number of vertices of the points object.",
NULL
},
{"Points",
"A collection of points\nWith this attribute it is possible to get access to the points of the object\n\nfor p in pnt.Points:\n print p\n\n ",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of PointsPy.

◆ Methods

PyMethodDef PointsPy::Methods
static

Methods structure of PointsPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Mod/Points/App/PointsPy.h
  • src/Mod/Points/App/PointsPyImp.cpp
  • build/webdoc/src/Mod/Points/App/PointsPy.cpp
static PyObject * staticCallback_getCountPoints(PyObject *self, void *closure)
getter callback for the CountPoints attribute
Definition: PointsPy.cpp:691
static PyObject * staticCallback_getPoints(PyObject *self, void *closure)
getter callback for the Points attribute
Definition: PointsPy.cpp:723
static int staticCallback_setCountPoints(PyObject *self, PyObject *value, void *closure)
setter callback for the CountPoints attribute
Definition: PointsPy.cpp:709
static int staticCallback_setPoints(PyObject *self, PyObject *value, void *closure)
setter callback for the Points attribute
Definition: PointsPy.cpp:741