Public Member Functions | |
def | addProperty (self, typ, name='', group='', doc='', attr=0, readonly=False, hidden=False) |
def | Content (self) |
def | Document (self) |
def | execute (self) |
def | getAllDerivedFrom (self) |
def | getDocumentationOfProperty (self, attr) |
def | getGroupOfProperty (self, attr) |
def | getProperty (self, attr) |
def | getTypeOfProperty (self, attr) |
def | init (self) |
def | InList (self) |
def | isDerivedFrom (self, obj) |
def | MemSize (self) |
def | Module (self) |
def | Name (self) |
def | onChanged (self, prop) |
def | OutList (self) |
def | PropertiesList (self) |
def | propertyChanged (self, prop) |
def | purgeTouched (self) |
def | State (self) |
def | supportedProperties (self) |
def | touch (self) |
def | Type (self) |
def | ViewObject (self) |
def | ViewObject (self, value) |
Public Attributes | |
initialised | |
Detailed Description
The Document object is the base class for all FreeCAD objects.
Member Function Documentation
◆ addProperty()
def DocumentObject.DocumentObject.addProperty | ( | self, | |
typ, | |||
name = '' , |
|||
group = '' , |
|||
doc = '' , |
|||
attr = 0 , |
|||
readonly = False , |
|||
hidden = False |
|||
) |
References DocumentObject.DocumentObject.__object__.
Referenced by DocumentObject.Box.init(), and DocumentObject.DocumentObject.onChanged().
◆ Content()
def DocumentObject.DocumentObject.Content | ( | self | ) |
shows the contents of the properties of this object as an xml string. This is the content that is saved when the file is saved by FreeCAD
References DocumentObject.DocumentObject.__object__.
◆ Document()
def DocumentObject.DocumentObject.Document | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ execute()
def DocumentObject.DocumentObject.execute | ( | self | ) |
Reimplemented in DocumentObject.Box.
Referenced by ArchSite.Compass.buildCoordinates(), ArchSchedule.CommandArchSchedule.IsActive(), and FeaturePython.DistanceBolt.onChanged().
◆ getAllDerivedFrom()
def DocumentObject.DocumentObject.getAllDerivedFrom | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ getDocumentationOfProperty()
def DocumentObject.DocumentObject.getDocumentationOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.DocumentObject.__object__.
◆ getGroupOfProperty()
def DocumentObject.DocumentObject.getGroupOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.DocumentObject.__object__.
◆ getProperty()
def DocumentObject.DocumentObject.getProperty | ( | self, | |
attr | |||
) |
References DocumentObject.DocumentObject.__object__.
◆ getTypeOfProperty()
def DocumentObject.DocumentObject.getTypeOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.DocumentObject.__object__.
◆ init()
void App.DocumentObject.init | ( | self | ) |
Reimplemented in DocumentObject.Box.
Referenced by DocumentObject.DocumentObject.onChanged().
◆ InList()
def DocumentObject.DocumentObject.InList | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ isDerivedFrom()
def DocumentObject.DocumentObject.isDerivedFrom | ( | self, | |
obj | |||
) |
returns True if this object is derived from the given C++ class, for example Part::Feature
References DocumentObject.DocumentObject.__object__.
◆ MemSize()
def DocumentObject.DocumentObject.MemSize | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ Module()
def DocumentObject.DocumentObject.Module | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ Name()
def DocumentObject.DocumentObject.Name | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ onChanged()
def DocumentObject.DocumentObject.onChanged | ( | self, | |
prop | |||
) |
References DocumentObject.DocumentObject.__object__, PathTests.TestPathDressupDogbone.TestFeature.addProperty(), App::DocumentObjectPy.addProperty(), Gui::ViewProviderPy.addProperty(), DocumentObject.DocumentObject.addProperty(), App::DynamicProperty.addProperty(), App::PropertyData.addProperty(), PathScripts.PathSetupSheetOpPrototype.OpPrototype.addProperty(), DocumentObject.DocumentObject.init(), SMDS_VtkFace.init(), SMDS_VtkVolume.init(), SMDS_BallElement.init(), SMDS_VtkEdge.init(), zipios::DeflateOutputStreambuf.init(), Gui::SoFCDB.init(), Sandbox::DocumentProtector.init(), iisTaskBox.init(), Gui::Dialog::DlgPropertyLink.init(), Gui::ExpressionCompleter.init(), Base::Persistence.init(), SMDS_MeshNode.init(), MeshGui::SoFCMeshObjectElement.init(), MeshGui::SoFCMeshFacetElement.init(), zipios::ZipFile.init(), Py::ExtensionExceptionType.init(), PathGui::PathSelectionObserver.init(), PartDesignGui::WorkflowManager.init(), TechDrawGui::TileImage.init(), MeshGui::SoFCMeshVertexElement.init(), Gui::Dialog::DlgCustomizeSpNavSettings.init, Gui::SoFCInteractiveElement.init(), Gui::SoGLWidgetElement.init(), Base::Exception.init(), SMDS_SetIterator< VALUE, VALUE_SET_ITERATOR, ACCESOR, VALUE_FILTER >.init(), QSint::ActionLabel.init(), TechDraw::PATLineSpec.init(), MeshGui::ViewProviderMeshCurvature.init(), TechDraw::LineGroup.init(), SIM::Coin3D::Quarter::SoQTQuarterAdaptor.init(), SMESHDS_TSubMeshHolder< SUBMESH >::Iterator.init(), Gui::SoGLRenderActionElement.init(), Base::BaseClass.init(), SMESH_MAT2d::Branch.init(), Gui::View3DInventorViewer.init(), Base::Type.init(), Gui::Dialog::DownloadItem.init(), Gui::SoQtOffscreenRenderer.init(), femsolver.fenics.fenics_tools.CellExpressionFromXDMF.init(), Gui::SoGLVBOActivatedElement.init(), Base::AbortException.init(), QSint::ActionGroup.init(), Stats.init(), App::FeaturePythonImp.init(), CDxfWrite.init(), SMDS_MeshElement.init(), Gui::ViewProviderPythonFeatureImp.init(), ShapeCache.init(), QSint::ActionBox.init(), femsolver.fenics.fenics_tools.FacetFunctionFromXDMF.init(), Base::InterpreterSingleton.init(), SMESH_Block.init(), Gui::PythonDebuggerP.init, App::Application.init(), SMESH::Controls::BelongToGeom.init(), SMESH::Controls::LyingOnGeom.init(), App::DocInfo.init(), DocumentObject.DocumentObject.initialised, and DocumentObject.DocumentObject.propertyChanged().
Referenced by ArchSite.Compass.buildCoordinates(), and ArchAxis.CommandArchGrid.IsActive().
◆ OutList()
def DocumentObject.DocumentObject.OutList | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ PropertiesList()
def DocumentObject.DocumentObject.PropertiesList | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ propertyChanged()
def DocumentObject.DocumentObject.propertyChanged | ( | self, | |
prop | |||
) |
Reimplemented in DocumentObject.Box.
Referenced by DocumentObject.DocumentObject.onChanged().
◆ purgeTouched()
def DocumentObject.DocumentObject.purgeTouched | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ State()
def DocumentObject.DocumentObject.State | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ supportedProperties()
def DocumentObject.DocumentObject.supportedProperties | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ touch()
def DocumentObject.DocumentObject.touch | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
◆ Type()
def DocumentObject.DocumentObject.Type | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
Referenced by ArchPanel.CommandPanelSheet.Activated(), ArchStructure.StructSelectionObserver.addSelection(), ArchSite.Compass.buildCoordinates(), ArchSchedule.CommandArchSchedule.IsActive(), and ArchAxis.CommandArchGrid.IsActive().
◆ ViewObject() [1/2]
def DocumentObject.DocumentObject.ViewObject | ( | self | ) |
References DocumentObject.DocumentObject.__object__.
Referenced by DocumentObject.DocumentObject.ViewObject().
◆ ViewObject() [2/2]
def DocumentObject.DocumentObject.ViewObject | ( | self, | |
value | |||
) |
returns or sets the ViewObject associated with this object. Returns None if FreeCAD is running in console mode
References DocumentObject.DocumentObject.__object__, and DocumentObject.DocumentObject.ViewObject().
Member Data Documentation
◆ initialised
DocumentObject.DocumentObject.initialised |
Referenced by DocumentObject.DocumentObject.onChanged().
The documentation for this class was generated from the following files:
- src/Mod/TemplatePyMod/DocumentObject.py
- src/App/DocumentObject.cpp