The python export class for SelectionObject. More...

#include <SelectionObjectPy.h>

Public Types

typedef SelectionObjectPointerType
 
- 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)
 
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
 
 SelectionObjectPy (SelectionObject *pcObject, PyTypeObject *T=&Type)
 
- 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 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 SelectionObjectPy. More...
 
static PyMethodDef Methods []
 Methods structure of SelectionObjectPy. More...
 
static PyTypeObject Type
 Type structure of SelectionObjectPy. 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

 ~SelectionObjectPy ()
 
- 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

PyObjectremove (PyObject *args)
 implementer for the remove() method More...
 
PyObjectisObjectTypeOf (PyObject *args)
 implementer for the isObjectTypeOf() method More...
 
static PyObjectstaticCallback_remove (PyObject *self, PyObject *args)
 callback for the remove() method More...
 
static PyObjectstaticCallback_isObjectTypeOf (PyObject *self, PyObject *args)
 callback for the isObjectTypeOf() method More...
 

callbacks and implementers for the python object attributes

Py::String getObjectName (void) const
 getter for the ObjectName attribute More...
 
Py::Tuple getSubElementNames (void) const
 getter for the SubElementNames attribute More...
 
Py::String getFullName (void) const
 getter for the FullName attribute More...
 
Py::String getTypeName (void) const
 getter for the TypeName attribute More...
 
Py::String getDocumentName (void) const
 getter for the DocumentName attribute More...
 
Py::Object getDocument (void) const
 getter for the Document attribute More...
 
Py::Object getObject (void) const
 getter for the Object attribute More...
 
Py::Tuple getSubObjects (void) const
 getter for the SubObjects attribute More...
 
Py::Tuple getPickedPoints (void) const
 getter for the PickedPoints attribute More...
 
Py::Boolean getHasSubObjects (void) const
 getter for the HasSubObjects 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...
 
SelectionObjectgetSelectionObjectPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getObjectName (PyObject *self, void *closure)
 getter callback for the ObjectName attribute More...
 
static int staticCallback_setObjectName (PyObject *self, PyObject *value, void *closure)
 setter callback for the ObjectName attribute More...
 
static PyObjectstaticCallback_getSubElementNames (PyObject *self, void *closure)
 getter callback for the SubElementNames attribute More...
 
static int staticCallback_setSubElementNames (PyObject *self, PyObject *value, void *closure)
 setter callback for the SubElementNames attribute More...
 
static PyObjectstaticCallback_getFullName (PyObject *self, void *closure)
 getter callback for the FullName attribute More...
 
static int staticCallback_setFullName (PyObject *self, PyObject *value, void *closure)
 setter callback for the FullName attribute More...
 
static PyObjectstaticCallback_getTypeName (PyObject *self, void *closure)
 getter callback for the TypeName attribute More...
 
static int staticCallback_setTypeName (PyObject *self, PyObject *value, void *closure)
 setter callback for the TypeName attribute More...
 
static PyObjectstaticCallback_getDocumentName (PyObject *self, void *closure)
 getter callback for the DocumentName attribute More...
 
static int staticCallback_setDocumentName (PyObject *self, PyObject *value, void *closure)
 setter callback for the DocumentName attribute More...
 
static PyObjectstaticCallback_getDocument (PyObject *self, void *closure)
 getter callback for the Document attribute More...
 
static int staticCallback_setDocument (PyObject *self, PyObject *value, void *closure)
 setter callback for the Document attribute More...
 
static PyObjectstaticCallback_getObject (PyObject *self, void *closure)
 getter callback for the Object attribute More...
 
static int staticCallback_setObject (PyObject *self, PyObject *value, void *closure)
 setter callback for the Object attribute More...
 
static PyObjectstaticCallback_getSubObjects (PyObject *self, void *closure)
 getter callback for the SubObjects attribute More...
 
static int staticCallback_setSubObjects (PyObject *self, PyObject *value, void *closure)
 setter callback for the SubObjects attribute More...
 
static PyObjectstaticCallback_getPickedPoints (PyObject *self, void *closure)
 getter callback for the PickedPoints attribute More...
 
static int staticCallback_setPickedPoints (PyObject *self, PyObject *value, void *closure)
 setter callback for the PickedPoints attribute More...
 
static PyObjectstaticCallback_getHasSubObjects (PyObject *self, void *closure)
 getter callback for the HasSubObjects attribute More...
 
static int staticCallback_setHasSubObjects (PyObject *self, PyObject *value, void *closure)
 setter callback for the HasSubObjects attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for SelectionObject.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~SelectionObjectPy()

SelectionObjectPy::~SelectionObjectPy ( )
protected

◆ SelectionObjectPy()

SelectionObjectPy::SelectionObjectPy ( SelectionObject pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ getCustomAttributes()

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

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

◆ getDocument()

Py::Object SelectionObjectPy::getDocument ( void  ) const

getter for the Document attribute

References getObject(), and getSelectionObjectPtr().

Referenced by staticCallback_getDocument().

◆ getDocumentName()

Py::String SelectionObjectPy::getDocumentName ( void  ) const

getter for the DocumentName attribute

References getSelectionObjectPtr().

Referenced by staticCallback_getDocumentName().

◆ getFullName()

Py::String SelectionObjectPy::getFullName ( void  ) const

getter for the FullName attribute

References getSelectionObjectPtr().

Referenced by staticCallback_getFullName().

◆ getHasSubObjects()

Py::Boolean SelectionObjectPy::getHasSubObjects ( void  ) const

getter for the HasSubObjects attribute

References getSelectionObjectPtr().

Referenced by staticCallback_getHasSubObjects().

◆ getObject()

Py::Object SelectionObjectPy::getObject ( void  ) const

getter for the Object attribute

References getSelectionObjectPtr().

Referenced by getDocument(), and staticCallback_getObject().

◆ getObjectName()

Py::String SelectionObjectPy::getObjectName ( void  ) const

getter for the ObjectName attribute

References getSelectionObjectPtr().

Referenced by staticCallback_getObjectName().

◆ getPickedPoints()

Py::Tuple SelectionObjectPy::getPickedPoints ( void  ) const

getter for the PickedPoints attribute

References Gui::SelectionObject::getPickedPoints(), and getSelectionObjectPtr().

Referenced by staticCallback_getPickedPoints().

◆ getSelectionObjectPtr()

SelectionObject * SelectionObjectPy::getSelectionObjectPtr ( void  ) const

◆ getSubElementNames()

Py::Tuple SelectionObjectPy::getSubElementNames ( void  ) const

getter for the SubElementNames attribute

References getSelectionObjectPtr(), and Gui::SelectionObject::getSubNames().

Referenced by staticCallback_getSubElementNames().

◆ getSubObjects()

Py::Tuple SelectionObjectPy::getSubObjects ( void  ) const

◆ GetType()

virtual PyTypeObject* Gui::SelectionObjectPy::GetType ( void  )
virtual

Reimplemented from Base::BaseClassPy.

◆ getTypeName()

Py::String SelectionObjectPy::getTypeName ( void  ) const

getter for the TypeName attribute

References getSelectionObjectPtr().

Referenced by staticCallback_getTypeName().

◆ isObjectTypeOf()

PyObject * SelectionObjectPy::isObjectTypeOf ( PyObject args)

◆ PyInit()

int SelectionObjectPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from Base::BaseClassPy.

◆ PyMake()

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

◆ remove()

PyObject * SelectionObjectPy::remove ( PyObject args)

◆ representation()

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

◆ staticCallback_getDocument()

PyObject * SelectionObjectPy::staticCallback_getDocument ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getDocumentName()

PyObject * SelectionObjectPy::staticCallback_getDocumentName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getFullName()

PyObject * SelectionObjectPy::staticCallback_getFullName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getHasSubObjects()

PyObject * SelectionObjectPy::staticCallback_getHasSubObjects ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getObject()

PyObject * SelectionObjectPy::staticCallback_getObject ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getObjectName()

PyObject * SelectionObjectPy::staticCallback_getObjectName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getPickedPoints()

PyObject * SelectionObjectPy::staticCallback_getPickedPoints ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSubElementNames()

PyObject * SelectionObjectPy::staticCallback_getSubElementNames ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getSubObjects()

PyObject * SelectionObjectPy::staticCallback_getSubObjects ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getTypeName()

PyObject * SelectionObjectPy::staticCallback_getTypeName ( PyObject self,
void *  closure 
)
static

◆ staticCallback_isObjectTypeOf()

◆ staticCallback_remove()

◆ staticCallback_setDocument()

int SelectionObjectPy::staticCallback_setDocument ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Document attribute

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

◆ staticCallback_setDocumentName()

int SelectionObjectPy::staticCallback_setDocumentName ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the DocumentName attribute

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

◆ staticCallback_setFullName()

int SelectionObjectPy::staticCallback_setFullName ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the FullName attribute

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

◆ staticCallback_setHasSubObjects()

int SelectionObjectPy::staticCallback_setHasSubObjects ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the HasSubObjects attribute

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

◆ staticCallback_setObject()

int SelectionObjectPy::staticCallback_setObject ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Object attribute

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

◆ staticCallback_setObjectName()

int SelectionObjectPy::staticCallback_setObjectName ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the ObjectName attribute

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

◆ staticCallback_setPickedPoints()

int SelectionObjectPy::staticCallback_setPickedPoints ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the PickedPoints attribute

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

◆ staticCallback_setSubElementNames()

int SelectionObjectPy::staticCallback_setSubElementNames ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the SubElementNames attribute

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

◆ staticCallback_setSubObjects()

int SelectionObjectPy::staticCallback_setSubObjects ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the SubObjects attribute

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

◆ staticCallback_setTypeName()

int SelectionObjectPy::staticCallback_setTypeName ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the TypeName attribute

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

Member Data Documentation

◆ GetterSetter

PyGetSetDef SelectionObjectPy::GetterSetter
static

Attribute structure of SelectionObjectPy.

◆ Methods

PyMethodDef SelectionObjectPy::Methods
static
Initial value:
= {
{"remove",
reinterpret_cast<PyCFunction>( staticCallback_remove ),
METH_VARARGS,
"Remove this selection item from the selection. This object becomes invalid."
},
{"isObjectTypeOf",
reinterpret_cast<PyCFunction>( staticCallback_isObjectTypeOf ),
METH_VARARGS,
"Test for a certain father class."
},
{NULL, NULL, 0, NULL}
}

Methods structure of SelectionObjectPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Gui/SelectionObjectPy.h
  • src/Gui/SelectionObjectPyImp.cpp
  • build/webdoc/src/Gui/SelectionObjectPy.cpp
static PyObject * staticCallback_remove(PyObject *self, PyObject *args)
callback for the remove() method
Definition: SelectionObjectPy.cpp:163
static PyObject * staticCallback_isObjectTypeOf(PyObject *self, PyObject *args)
callback for the isObjectTypeOf() method
Definition: SelectionObjectPy.cpp:246