The python export class for ViewProvider. More...

#include <ViewProviderPy.h>

Public Types

typedef ViewProviderPointerType
 
- Public Types inherited from App::ExtensionContainerPy
typedef ExtensionContainerPointerType
 
- Public Types inherited from App::PropertyContainerPy
typedef PropertyContainerPointerType
 
- 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)
 
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
 
 ViewProviderPy (ViewProvider *pcObject, PyTypeObject *T=&Type)
 
- Public Member Functions inherited from App::ExtensionContainerPy
 ExtensionContainerPy (ExtensionContainer *pcObject, PyTypeObject *T=&Type)
 
int finalization ()
 
int initialization ()
 
std::string representation (void) const
 
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...
 
ExtensionContainergetExtensionContainerPtr (void) const
 getter for the object handled by this class More...
 
PyObjectaddExtension (PyObject *args)
 implementer for the addExtension() method More...
 
PyObjecthasExtension (PyObject *args)
 implementer for the hasExtension() method More...
 
- Public Member Functions inherited from App::PropertyContainerPy
 PropertyContainerPy (PropertyContainer *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObjectgetPropertyByName (PyObject *args)
 implementer for the getPropertyByName() method More...
 
PyObjectgetTypeOfProperty (PyObject *args)
 implementer for the getTypeOfProperty() method More...
 
PyObjectgetTypeIdOfProperty (PyObject *args)
 implementer for the getTypeIdOfProperty() method More...
 
PyObjectsetEditorMode (PyObject *args)
 implementer for the setEditorMode() method More...
 
PyObjectgetEditorMode (PyObject *args)
 implementer for the getEditorMode() method More...
 
PyObjectgetGroupOfProperty (PyObject *args)
 implementer for the getGroupOfProperty() method More...
 
PyObjectgetDocumentationOfProperty (PyObject *args)
 implementer for the getDocumentationOfProperty() method More...
 
PyObjectdumpPropertyContent (PyObject *args, PyObject *kwd)
 implementer for the dumpPropertyContent() method More...
 
PyObjectrestorePropertyContent (PyObject *args)
 implementer for the restorePropertyContent() method More...
 
Py::List getPropertiesList (void) const
 getter for the PropertiesList 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...
 
PropertyContainergetPropertyContainerPtr (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 App::ExtensionContainerPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_addExtension (PyObject *self, PyObject *args)
 callback for the addExtension() method More...
 
static PyObjectstaticCallback_hasExtension (PyObject *self, PyObject *args)
 callback for the hasExtension() method More...
 
- Static Public Member Functions inherited from App::PropertyContainerPy
static PyObjectPyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObjectstaticCallback_getPropertyByName (PyObject *self, PyObject *args)
 callback for the getPropertyByName() method More...
 
static PyObjectstaticCallback_getTypeOfProperty (PyObject *self, PyObject *args)
 callback for the getTypeOfProperty() method More...
 
static PyObjectstaticCallback_getTypeIdOfProperty (PyObject *self, PyObject *args)
 callback for the getTypeIdOfProperty() method More...
 
static PyObjectstaticCallback_setEditorMode (PyObject *self, PyObject *args)
 callback for the setEditorMode() method More...
 
static PyObjectstaticCallback_getEditorMode (PyObject *self, PyObject *args)
 callback for the getEditorMode() method More...
 
static PyObjectstaticCallback_getGroupOfProperty (PyObject *self, PyObject *args)
 callback for the getGroupOfProperty() method More...
 
static PyObjectstaticCallback_getDocumentationOfProperty (PyObject *self, PyObject *args)
 callback for the getDocumentationOfProperty() method More...
 
static PyObjectstaticCallback_dumpPropertyContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpPropertyContent() method More...
 
static PyObjectstaticCallback_restorePropertyContent (PyObject *self, PyObject *args)
 callback for the restorePropertyContent() method More...
 
static PyObjectstaticCallback_getPropertiesList (PyObject *self, void *closure)
 getter callback for the PropertiesList attribute More...
 
static int staticCallback_setPropertiesList (PyObject *self, PyObject *value, void *closure)
 setter callback for the PropertiesList 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 ViewProviderPy. More...
 
static PyMethodDef Methods []
 Methods structure of ViewProviderPy. More...
 
static PyTypeObject Type
 Type structure of ViewProviderPy. More...
 
- Static Public Attributes inherited from App::ExtensionContainerPy
static PyGetSetDef GetterSetter []
 Attribute structure of ExtensionContainerPy. More...
 
static PyMethodDef Methods []
 Methods structure of ExtensionContainerPy. More...
 
static PyTypeObject Type
 Type structure of ExtensionContainerPy. More...
 
- Static Public Attributes inherited from App::PropertyContainerPy
static PyGetSetDef GetterSetter []
 Attribute structure of PropertyContainerPy. More...
 
static PyMethodDef Methods []
 Methods structure of PropertyContainerPy. More...
 
static PyTypeObject Type
 Type structure of PropertyContainerPy. 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

 ~ViewProviderPy ()
 
- Protected Member Functions inherited from App::ExtensionContainerPy
 ~ExtensionContainerPy ()
 
- Protected Member Functions inherited from App::PropertyContainerPy
 ~PropertyContainerPy ()
 
- 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

PyObjectaddProperty (PyObject *args)
 implementer for the addProperty() method More...
 
PyObjectremoveProperty (PyObject *args)
 implementer for the removeProperty() method More...
 
PyObjectsupportedProperties (PyObject *args)
 implementer for the supportedProperties() method More...
 
PyObjectshow (PyObject *args)
 implementer for the show() method More...
 
PyObjecthide (PyObject *args)
 implementer for the hide() method More...
 
PyObjectisVisible (PyObject *args)
 implementer for the isVisible() method More...
 
PyObjectaddDisplayMode (PyObject *args)
 implementer for the addDisplayMode() method More...
 
PyObjectlistDisplayModes (PyObject *args)
 implementer for the listDisplayModes() method More...
 
PyObjecttoString (PyObject *args)
 implementer for the toString() method More...
 
PyObjectsetTransformation (PyObject *args)
 implementer for the setTransformation() method More...
 
PyObjectclaimChildren (PyObject *args)
 implementer for the claimChildren() method More...
 
static PyObjectstaticCallback_addProperty (PyObject *self, PyObject *args)
 callback for the addProperty() method More...
 
static PyObjectstaticCallback_removeProperty (PyObject *self, PyObject *args)
 callback for the removeProperty() method More...
 
static PyObjectstaticCallback_supportedProperties (PyObject *self, PyObject *args)
 callback for the supportedProperties() method More...
 
static PyObjectstaticCallback_show (PyObject *self, PyObject *args)
 callback for the show() method More...
 
static PyObjectstaticCallback_hide (PyObject *self, PyObject *args)
 callback for the hide() method More...
 
static PyObjectstaticCallback_isVisible (PyObject *self, PyObject *args)
 callback for the isVisible() method More...
 
static PyObjectstaticCallback_addDisplayMode (PyObject *self, PyObject *args)
 callback for the addDisplayMode() method More...
 
static PyObjectstaticCallback_listDisplayModes (PyObject *self, PyObject *args)
 callback for the listDisplayModes() method More...
 
static PyObjectstaticCallback_toString (PyObject *self, PyObject *args)
 callback for the toString() method More...
 
static PyObjectstaticCallback_setTransformation (PyObject *self, PyObject *args)
 callback for the setTransformation() method More...
 
static PyObjectstaticCallback_claimChildren (PyObject *self, PyObject *args)
 callback for the claimChildren() method More...
 

callbacks and implementers for the python object attributes

Py::Object getAnnotation (void) const
 getter for the Annotation attribute More...
 
void setAnnotation (Py::Object arg)
 setter for the Annotation attribute More...
 
Py::Object getIcon (void) const
 getter for the Icon attribute More...
 
Py::Object getRootNode (void) const
 getter for the RootNode attribute More...
 
void setRootNode (Py::Object arg)
 setter for the RootNode attribute More...
 
Py::String getIV (void) const
 getter for the IV 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...
 
ViewProvidergetViewProviderPtr (void) const
 getter for the object handled by this class More...
 
static PyObjectstaticCallback_getAnnotation (PyObject *self, void *closure)
 getter callback for the Annotation attribute More...
 
static int staticCallback_setAnnotation (PyObject *self, PyObject *value, void *closure)
 setter callback for the Annotation attribute More...
 
static PyObjectstaticCallback_getIcon (PyObject *self, void *closure)
 getter callback for the Icon attribute More...
 
static int staticCallback_setIcon (PyObject *self, PyObject *value, void *closure)
 setter callback for the Icon attribute More...
 
static PyObjectstaticCallback_getRootNode (PyObject *self, void *closure)
 getter callback for the RootNode attribute More...
 
static int staticCallback_setRootNode (PyObject *self, PyObject *value, void *closure)
 setter callback for the RootNode attribute More...
 
static PyObjectstaticCallback_getIV (PyObject *self, void *closure)
 getter callback for the IV attribute More...
 
static int staticCallback_setIV (PyObject *self, PyObject *value, void *closure)
 setter callback for the IV attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for ViewProvider.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~ViewProviderPy()

ViewProviderPy::~ViewProviderPy ( )
protected

◆ ViewProviderPy()

ViewProviderPy::ViewProviderPy ( ViewProvider pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ addDisplayMode()

◆ addProperty()

◆ claimChildren()

◆ getAnnotation()

Py::Object ViewProviderPy::getAnnotation ( void  ) const

◆ getCustomAttributes()

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

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

References App::PropertyContainer::getDynamicPropertyByName(), Base::BaseClass::getPyObject(), and getViewProviderPtr().

◆ getIcon()

◆ getIV()

Py::String ViewProviderPy::getIV ( void  ) const

getter for the IV attribute

References getViewProviderPtr().

Referenced by staticCallback_getIV().

◆ getRootNode()

Py::Object ViewProviderPy::getRootNode ( void  ) const

◆ GetType()

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

◆ getViewProviderPtr()

◆ hide()

◆ isVisible()

PyObject * ViewProviderPy::isVisible ( PyObject args)

implementer for the isVisible() method

References getViewProviderPtr().

Referenced by ArchVRM.Renderer::removeHidden(), and staticCallback_isVisible().

◆ listDisplayModes()

PyObject * ViewProviderPy::listDisplayModes ( PyObject args)

◆ PyInit()

int ViewProviderPy::PyInit ( PyObject ,
PyObject  
)
virtual

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

Reimplemented from App::ExtensionContainerPy.

Reimplemented in Gui::ViewProviderLinkPy, Gui::ViewProviderDocumentObjectPy, FemGui::ViewProviderFemMeshPy, MeshGui::ViewProviderMeshPy, and PartDesignGui::ViewProviderPy.

◆ PyMake()

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

◆ removeProperty()

PyObject * ViewProviderPy::removeProperty ( PyObject args)

◆ representation()

◆ setAnnotation()

void ViewProviderPy::setAnnotation ( Py::Object  arg)

setter for the Annotation attribute

Referenced by staticCallback_setAnnotation().

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

References App::PropertyContainer::getDynamicPropertyByName(), getViewProviderPtr(), Base::BaseClass::setPyObject(), and Base::Exception::what().

◆ setRootNode()

void ViewProviderPy::setRootNode ( Py::Object  arg)

setter for the RootNode attribute

Referenced by staticCallback_setRootNode().

◆ setTransformation()

◆ show()

◆ staticCallback_addDisplayMode()

◆ staticCallback_addProperty()

◆ staticCallback_claimChildren()

PyObject * ViewProviderPy::staticCallback_claimChildren ( PyObject self,
PyObject args 
)
static

◆ staticCallback_getAnnotation()

PyObject * ViewProviderPy::staticCallback_getAnnotation ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getIcon()

PyObject * ViewProviderPy::staticCallback_getIcon ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getIV()

PyObject * ViewProviderPy::staticCallback_getIV ( PyObject self,
void *  closure 
)
static

◆ staticCallback_getRootNode()

PyObject * ViewProviderPy::staticCallback_getRootNode ( PyObject self,
void *  closure 
)
static

◆ staticCallback_hide()

◆ staticCallback_isVisible()

◆ staticCallback_listDisplayModes()

◆ staticCallback_removeProperty()

◆ staticCallback_setAnnotation()

int ViewProviderPy::staticCallback_setAnnotation ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setIcon()

int ViewProviderPy::staticCallback_setIcon ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the Icon attribute

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

◆ staticCallback_setIV()

int ViewProviderPy::staticCallback_setIV ( PyObject self,
PyObject value,
void *  closure 
)
static

setter callback for the IV attribute

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

◆ staticCallback_setRootNode()

int ViewProviderPy::staticCallback_setRootNode ( PyObject self,
PyObject value,
void *  closure 
)
static

◆ staticCallback_setTransformation()

◆ staticCallback_show()

◆ staticCallback_supportedProperties()

◆ staticCallback_toString()

◆ supportedProperties()

PyObject * ViewProviderPy::supportedProperties ( PyObject args)

◆ toString()

PyObject * ViewProviderPy::toString ( PyObject args)

implementer for the toString() method

References getViewProviderPtr(), and Gui::ViewProvider::toString().

Referenced by staticCallback_toString().

Member Data Documentation

◆ GetterSetter

PyGetSetDef ViewProviderPy::GetterSetter
static
Initial value:
= {
{"Annotation",
"A pivy Separator to add a custom scene graph to this ViewProvider",
NULL
},
{"Icon",
"The icon of this ViewProvider",
NULL
},
{"RootNode",
"A pivy Separator with the root of this ViewProvider",
NULL
},
{"IV",
"Represents the whole ViewProvider as an Inventor string.",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of ViewProviderPy.

◆ Methods

PyMethodDef ViewProviderPy::Methods
static

Methods structure of ViewProviderPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Gui/ViewProviderPy.h
  • src/Gui/ViewProviderPyImp.cpp
  • build/webdoc/src/Gui/ViewProviderPy.cpp
static int staticCallback_setRootNode(PyObject *self, PyObject *value, void *closure)
setter callback for the RootNode attribute
Definition: ViewProviderPy.cpp:1172
static int staticCallback_setIV(PyObject *self, PyObject *value, void *closure)
setter callback for the IV attribute
Definition: ViewProviderPy.cpp:1216
static int staticCallback_setAnnotation(PyObject *self, PyObject *value, void *closure)
setter callback for the Annotation attribute
Definition: ViewProviderPy.cpp:1096
static PyObject * staticCallback_getIcon(PyObject *self, void *closure)
getter callback for the Icon attribute
Definition: ViewProviderPy.cpp:1122
static PyObject * staticCallback_getRootNode(PyObject *self, void *closure)
getter callback for the RootNode attribute
Definition: ViewProviderPy.cpp:1154
static int staticCallback_setIcon(PyObject *self, PyObject *value, void *closure)
setter callback for the Icon attribute
Definition: ViewProviderPy.cpp:1140
static PyObject * staticCallback_getIV(PyObject *self, void *closure)
getter callback for the IV attribute
Definition: ViewProviderPy.cpp:1198
static PyObject * staticCallback_getAnnotation(PyObject *self, void *closure)
getter callback for the Annotation attribute
Definition: ViewProviderPy.cpp:1078