The python export class for Document. More...

#include <DocumentPy.h>

Public Types

typedef Document * PointerType
 
- Public Types inherited from Base::PersistencePy
typedef Persistence * PointerType
 
- Public Types inherited from Base::BaseClassPy
typedef BaseClass * PointerType
 
- Public Types inherited from Base::PyObjectBase
typedef void * PointerType
 
enum  Status { Valid = 0, Immutable = 1, Notify = 2, NoTrack = 3 }
 

Public Member Functions

 DocumentPy (Document *pcObject, PyTypeObject *T=&Type)
 
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
 
- Public Member Functions inherited from Base::PersistencePy
 PersistencePy (Persistence *pcObject, PyTypeObject *T=&Type)
 
std::string representation (void) const
 
PyObject * dumpContent (PyObject *args, PyObject *kwd)
 implementer for the dumpContent() method More...
 
PyObject * restoreContent (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...
 
PyObject * getCustomAttributes (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...
 
Persistence * getPersistencePtr (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
 
PyObject * isDerivedFrom (PyObject *args)
 implementer for the isDerivedFrom() method More...
 
PyObject * getAllDerivedFrom (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...
 
PyObject * getCustomAttributes (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...
 
BaseClass * getBaseClassPtr (void) const
 getter for the object handled by this class More...
 
- Public Member Functions inherited from Base::PyObjectBase
PyObjectBase * DecRef (void)
 decref method wrapper (see python extending manual)
More...
 
PyObjectBase * IncRef (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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
- Static Public Member Functions inherited from Base::PersistencePy
static PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_dumpContent (PyObject *self, PyObject *args, PyObject *kwd)
 callback for the dumpContent() method More...
 
static PyObject * staticCallback_restoreContent (PyObject *self, PyObject *args)
 callback for the restoreContent() method More...
 
static PyObject * staticCallback_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 PyObject * staticCallback_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 PyObject * PyMake (struct _typeobject *, PyObject *, PyObject *)
 
static PyObject * staticCallback_isDerivedFrom (PyObject *self, PyObject *args)
 callback for the isDerivedFrom() method More...
 
static PyObject * staticCallback_getAllDerivedFrom (PyObject *self, PyObject *args)
 callback for the getAllDerivedFrom() method More...
 
static PyObject * staticCallback_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 PyObject * staticCallback_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 DocumentPy. More...
 
static PyMethodDef Methods []
 Methods structure of DocumentPy. More...
 
static PyTypeObject Type
 Type structure of DocumentPy. 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

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

PyObject * show (PyObject *args)
 implementer for the show() method More...
 
PyObject * hide (PyObject *args)
 implementer for the hide() method More...
 
PyObject * setPos (PyObject *args)
 implementer for the setPos() method More...
 
PyObject * setEdit (PyObject *args)
 implementer for the setEdit() method More...
 
PyObject * getInEdit (PyObject *args)
 implementer for the getInEdit() method More...
 
PyObject * resetEdit (PyObject *args)
 implementer for the resetEdit() method More...
 
PyObject * addAnnotation (PyObject *args)
 implementer for the addAnnotation() method More...
 
PyObject * update (PyObject *args)
 implementer for the update() method More...
 
PyObject * getObject (PyObject *args)
 implementer for the getObject() method More...
 
PyObject * activeObject (PyObject *args)
 implementer for the activeObject() method More...
 
PyObject * activeView (PyObject *args)
 implementer for the activeView() method More...
 
PyObject * mdiViewsOfType (PyObject *args)
 implementer for the mdiViewsOfType() method More...
 
PyObject * sendMsgToViews (PyObject *args)
 implementer for the sendMsgToViews() method More...
 
PyObject * mergeProject (PyObject *args)
 implementer for the mergeProject() method More...
 
PyObject * toggleTreeItem (PyObject *args)
 implementer for the toggleTreeItem() method More...
 
PyObject * scrollToTreeItem (PyObject *args)
 implementer for the scrollToTreeItem() method More...
 
static PyObject * staticCallback_show (PyObject *self, PyObject *args)
 callback for the show() method More...
 
static PyObject * staticCallback_hide (PyObject *self, PyObject *args)
 callback for the hide() method More...
 
static PyObject * staticCallback_setPos (PyObject *self, PyObject *args)
 callback for the setPos() method More...
 
static PyObject * staticCallback_setEdit (PyObject *self, PyObject *args)
 callback for the setEdit() method More...
 
static PyObject * staticCallback_getInEdit (PyObject *self, PyObject *args)
 callback for the getInEdit() method More...
 
static PyObject * staticCallback_resetEdit (PyObject *self, PyObject *args)
 callback for the resetEdit() method More...
 
static PyObject * staticCallback_addAnnotation (PyObject *self, PyObject *args)
 callback for the addAnnotation() method More...
 
static PyObject * staticCallback_update (PyObject *self, PyObject *args)
 callback for the update() method More...
 
static PyObject * staticCallback_getObject (PyObject *self, PyObject *args)
 callback for the getObject() method More...
 
static PyObject * staticCallback_activeObject (PyObject *self, PyObject *args)
 callback for the activeObject() method More...
 
static PyObject * staticCallback_activeView (PyObject *self, PyObject *args)
 callback for the activeView() method More...
 
static PyObject * staticCallback_mdiViewsOfType (PyObject *self, PyObject *args)
 callback for the mdiViewsOfType() method More...
 
static PyObject * staticCallback_sendMsgToViews (PyObject *self, PyObject *args)
 callback for the sendMsgToViews() method More...
 
static PyObject * staticCallback_mergeProject (PyObject *self, PyObject *args)
 callback for the mergeProject() method More...
 
static PyObject * staticCallback_toggleTreeItem (PyObject *self, PyObject *args)
 callback for the toggleTreeItem() method More...
 
static PyObject * staticCallback_scrollToTreeItem (PyObject *self, PyObject *args)
 callback for the scrollToTreeItem() method More...
 

callbacks and implementers for the python object attributes

Py::Object getActiveObject (void) const
 getter for the ActiveObject attribute More...
 
void setActiveObject (Py::Object arg)
 setter for the ActiveObject attribute More...
 
Py::Object getActiveView (void) const
 getter for the ActiveView attribute More...
 
void setActiveView (Py::Object arg)
 setter for the ActiveView attribute More...
 
Py::Object getDocument (void) const
 getter for the Document attribute More...
 
Py::Boolean getModified (void) const
 getter for the Modified attribute More...
 
PyObject * getCustomAttributes (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...
 
Document * getDocumentPtr (void) const
 getter for the object handled by this class More...
 
static PyObject * staticCallback_getActiveObject (PyObject *self, void *closure)
 getter callback for the ActiveObject attribute More...
 
static int staticCallback_setActiveObject (PyObject *self, PyObject *value, void *closure)
 setter callback for the ActiveObject attribute More...
 
static PyObject * staticCallback_getActiveView (PyObject *self, void *closure)
 getter callback for the ActiveView attribute More...
 
static int staticCallback_setActiveView (PyObject *self, PyObject *value, void *closure)
 setter callback for the ActiveView attribute More...
 
static PyObject * staticCallback_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 PyObject * staticCallback_getModified (PyObject *self, void *closure)
 getter callback for the Modified attribute More...
 
static int staticCallback_setModified (PyObject *self, PyObject *value, void *closure)
 setter callback for the Modified attribute More...
 

Additional Inherited Members

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

Detailed Description

The python export class for Document.

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~DocumentPy()

DocumentPy::~DocumentPy ( )
protected

◆ DocumentPy()

DocumentPy::DocumentPy ( Document *  pcObject,
PyTypeObject *  T = &Type 
)

Member Function Documentation

◆ activeObject()

◆ activeView()

PyObject * DocumentPy::activeView ( PyObject *  args)

◆ addAnnotation()

◆ getActiveObject()

Py::Object DocumentPy::getActiveObject ( void  ) const

◆ getActiveView()

Py::Object DocumentPy::getActiveView ( void  ) const

getter for the ActiveView attribute

References Gui::Document::getActiveView(), and getDocumentPtr().

Referenced by staticCallback_getActiveView().

◆ getCustomAttributes()

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

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

References getDocumentPtr(), and Gui::Document::getViewProviderByName().

◆ getDocument()

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

getter for the Document attribute

References Gui::Document::getDocument(), and getDocumentPtr().

Referenced by addAnnotation(), and staticCallback_getDocument().

◆ getDocumentPtr()

◆ getInEdit()

PyObject * DocumentPy::getInEdit ( PyObject *  args)

◆ getModified()

Py::Boolean DocumentPy::getModified ( void  ) const

getter for the Modified attribute

References getDocumentPtr().

Referenced by staticCallback_getModified().

◆ getObject()

PyObject * DocumentPy::getObject ( PyObject *  args)

◆ GetType()

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

Reimplemented from Base::PersistencePy.

◆ hide()

◆ mdiViewsOfType()

◆ mergeProject()

PyObject * DocumentPy::mergeProject ( PyObject *  args)

◆ PyInit()

int DocumentPy::PyInit ( PyObject *  ,
PyObject *   
)
virtual

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

Reimplemented from Base::PersistencePy.

◆ PyMake()

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

◆ representation()

◆ resetEdit()

PyObject * DocumentPy::resetEdit ( PyObject *  args)

implementer for the resetEdit() method

References getDocumentPtr(), and Gui::Document::resetEdit().

Referenced by staticCallback_resetEdit().

◆ scrollToTreeItem()

PyObject * DocumentPy::scrollToTreeItem ( PyObject *  args)

◆ sendMsgToViews()

PyObject * DocumentPy::sendMsgToViews ( PyObject *  args)

implementer for the sendMsgToViews() method

References getDocumentPtr(), and Gui::Document::sendMsgToViews().

Referenced by staticCallback_sendMsgToViews().

◆ setActiveObject()

void DocumentPy::setActiveObject ( Py::Object  arg)

setter for the ActiveObject attribute

Referenced by staticCallback_setActiveObject().

◆ setActiveView()

void DocumentPy::setActiveView ( Py::Object  arg)

setter for the ActiveView attribute

Referenced by staticCallback_setActiveView().

◆ setCustomAttributes()

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

setter for special attributes (e.g.

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

References getDocumentPtr(), and Gui::Document::getViewProviderByName().

◆ setEdit()

◆ setPos()

PyObject * DocumentPy::setPos ( PyObject *  args)

implementer for the setPos() method

References getDocumentPtr(), Gui::Document::setPos(), and Base::MatrixPy::Type.

Referenced by staticCallback_setPos().

◆ show()

◆ staticCallback_activeObject()

◆ staticCallback_activeView()

◆ staticCallback_addAnnotation()

◆ staticCallback_getActiveObject()

PyObject * DocumentPy::staticCallback_getActiveObject ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getActiveView()

PyObject * DocumentPy::staticCallback_getActiveView ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getDocument()

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

◆ staticCallback_getInEdit()

◆ staticCallback_getModified()

PyObject * DocumentPy::staticCallback_getModified ( PyObject *  self,
void *  closure 
)
static

◆ staticCallback_getObject()

◆ staticCallback_hide()

◆ staticCallback_mdiViewsOfType()

PyObject * DocumentPy::staticCallback_mdiViewsOfType ( PyObject *  self,
PyObject *  args 
)
static

◆ staticCallback_mergeProject()

◆ staticCallback_resetEdit()

◆ staticCallback_scrollToTreeItem()

◆ staticCallback_sendMsgToViews()

◆ staticCallback_setActiveObject()

int DocumentPy::staticCallback_setActiveObject ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setActiveView()

int DocumentPy::staticCallback_setActiveView ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

◆ staticCallback_setDocument()

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

setter callback for the Document attribute

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

◆ staticCallback_setEdit()

◆ staticCallback_setModified()

int DocumentPy::staticCallback_setModified ( PyObject *  self,
PyObject *  value,
void *  closure 
)
static

setter callback for the Modified attribute

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

◆ staticCallback_setPos()

◆ staticCallback_show()

◆ staticCallback_toggleTreeItem()

◆ staticCallback_update()

◆ toggleTreeItem()

◆ update()

Member Data Documentation

◆ GetterSetter

PyGetSetDef DocumentPy::GetterSetter
static
Initial value:
= {
{"ActiveObject",
"The active object of the document",
NULL
},
{"ActiveView",
"The active view of the document",
NULL
},
{"Document",
"The related App document to this Gui document",
NULL
},
{"Modified",
"Returns True if the document is marked as modified, and False otherwise",
NULL
},
{NULL, NULL, NULL, NULL, NULL}
}

Attribute structure of DocumentPy.

◆ Methods

PyMethodDef DocumentPy::Methods
static

Methods structure of DocumentPy.

◆ Type


The documentation for this class was generated from the following files:
  • build/webdoc/src/Gui/DocumentPy.h
  • src/Gui/DocumentPyImp.cpp
  • build/webdoc/src/Gui/DocumentPy.cpp
static int staticCallback_setActiveView(PyObject *self, PyObject *value, void *closure)
setter callback for the ActiveView attribute
Definition: DocumentPy.cpp:1580
static PyObject * staticCallback_getDocument(PyObject *self, void *closure)
getter callback for the Document attribute
Definition: DocumentPy.cpp:1606
static int staticCallback_setDocument(PyObject *self, PyObject *value, void *closure)
setter callback for the Document attribute
Definition: DocumentPy.cpp:1624
static int staticCallback_setModified(PyObject *self, PyObject *value, void *closure)
setter callback for the Modified attribute
Definition: DocumentPy.cpp:1656
static PyObject * staticCallback_getActiveObject(PyObject *self, void *closure)
getter callback for the ActiveObject attribute
Definition: DocumentPy.cpp:1518
static PyObject * staticCallback_getActiveView(PyObject *self, void *closure)
getter callback for the ActiveView attribute
Definition: DocumentPy.cpp:1562
static int staticCallback_setActiveObject(PyObject *self, PyObject *value, void *closure)
setter callback for the ActiveObject attribute
Definition: DocumentPy.cpp:1536
static PyObject * staticCallback_getModified(PyObject *self, void *closure)
getter callback for the Modified attribute
Definition: DocumentPy.cpp:1638