Public Member Functions | |
def | addDisplayMode (self, node, mode) |
def | addProperty (self, type, name='', group='', doc='', attr=0, readonly=False, hidden=False) |
def | Annotation (self) |
def | Content (self) |
def | DisplayModes (self) |
def | getAllDerivedFrom (self) |
def | getDocumentationOfProperty (self, attr) |
def | getGroupOfProperty (self, attr) |
def | getProperty (self, attr) |
def | getTypeOfProperty (self, attr) |
def | hide (self) |
def | isDerivedFrom (self, obj) |
def | isVisible (self) |
def | MemSize (self) |
def | Module (self) |
def | Object (self) |
def | PropertiesList (self) |
def | RootNode (self) |
def | setTransformation (self, trsf) |
def | show (self) |
def | supportedProperties (self) |
def | toString (self) |
def | Type (self) |
def | update (self) |
The ViewProvider is the counterpart of the DocumentObject in the GUI space. It is only present when FreeCAD runs in GUI mode. It contains all that is needed to represent the DocumentObject in the 3D view and the FreeCAD interface
def DocumentObject.ViewProvider.addDisplayMode | ( | self, | |
node, | |||
mode | |||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.addDisplayMode().
Referenced by DocumentObject.ViewProvider.addDisplayMode().
def DocumentObject.ViewProvider.addProperty | ( | self, | |
type, | |||
name = '' , |
|||
group = '' , |
|||
doc = '' , |
|||
attr = 0 , |
|||
readonly = False , |
|||
hidden = False |
|||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.addProperty().
Referenced by DocumentObject.ViewProvider.addProperty(), DocumentObject.Box.init(), and DocumentObject.DocumentObject.onChanged().
def DocumentObject.ViewProvider.Annotation | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.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.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.DisplayModes | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.getAllDerivedFrom | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.getAllDerivedFrom().
Referenced by DocumentObject.ViewProvider.getAllDerivedFrom().
def DocumentObject.ViewProvider.getDocumentationOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.getDocumentationOfProperty().
Referenced by DocumentObject.ViewProvider.getDocumentationOfProperty().
def DocumentObject.ViewProvider.getGroupOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.getGroupOfProperty().
Referenced by DocumentObject.ViewProvider.getGroupOfProperty().
def DocumentObject.ViewProvider.getProperty | ( | self, | |
attr | |||
) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.getTypeOfProperty | ( | self, | |
attr | |||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.getTypeOfProperty().
Referenced by DocumentObject.ViewProvider.getTypeOfProperty().
def DocumentObject.ViewProvider.hide | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.hide().
Referenced by ArchComponent.ArchSelectionObserver.addSelection(), DocumentObject.ViewProvider.hide(), Mod.Show.mTempoVis.TempoVis.hide_all_dependencies(), Mod.Show.mTempoVis.TempoVis.hide_all_dependent(), PathScripts.PathToolEdit.ToolEditorImage.setupUI(), and PathScripts.PathToolEdit.ToolEditorImage.updateTool().
def DocumentObject.ViewProvider.isDerivedFrom | ( | self, | |
obj | |||
) |
returns True if this object is derived from the given C++ class, for example Part::Feature
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.isDerivedFrom().
Referenced by DocumentObject.ViewProvider.isDerivedFrom().
def DocumentObject.ViewProvider.isVisible | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.isVisible().
Referenced by DocumentObject.ViewProvider.isVisible(), and ArchVRM.Renderer.removeHidden().
def DocumentObject.ViewProvider.MemSize | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.Module | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.Object | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
Referenced by draftviewproviders.view_layer.ViewProviderLayer.activate(), ArchPanel.CommandPanelSheet.Activated(), ArchStructure.CommandStructuralSystem.Activated(), OpenSCADFeatures.ViewProviderTree.attach(), ArchComponent.ViewProviderComponent.attach(), draftviewproviders.view_base.ViewProviderDraft.attach(), draftviewproviders.view_dimension.ViewProviderLinearDimension.attach(), draftviewproviders.view_dimension.ViewProviderAngularDimension.attach(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation.attach(), draftviewproviders.view_layer.ViewProviderLayer.attach(), draftviewproviders.view_layer.ViewProviderLayerContainer.attach(), PathScripts.PathArray.ViewProviderArray.attach(), PathScripts.PathCopy.ViewProviderPathCopy.attach(), PathScripts.PathDressupDragknife.ViewProviderDressup.attach(), PathScripts.PathHop.ViewProviderPathHop.attach(), PathScripts.PathOpGui.ViewProvider.attach(), ArchSite.Compass.buildCoordinates(), ArchReference.ViewProviderArchReference.checkChanges(), ArchComponent.ViewProviderComponent.claimChildren(), draftviewproviders.view_base.ViewProviderDraft.claimChildren(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation.claimChildren(), draftviewproviders.view_draftlink.ViewProviderDraftLink.claimChildren(), draftviewproviders.view_layer.ViewProviderLayer.claimChildren(), draftviewproviders.view_wire.ViewProviderWire.claimChildren(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.claimChildren(), femviewprovider.view_result_mechanical.VPResultMechanical.claimChildren(), OpenSCADFeatures.ViewProviderTree.claimChildren(), BOPTools.JoinFeatures.ViewProviderConnect.claimChildren(), BOPTools.JoinFeatures.ViewProviderEmbed.claimChildren(), BOPTools.JoinFeatures.ViewProviderCutout.claimChildren(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.claimChildren(), BOPTools.SplitFeatures.ViewProviderSlice.claimChildren(), BOPTools.SplitFeatures.ViewProviderXOR.claimChildren(), PathScripts.PathArray.ViewProviderArray.claimChildren(), PathScripts.PathDressupDragknife.ViewProviderDressup.claimChildren(), Spreadsheet_legacy.ViewProviderSpreadsheet.claimChildren(), PathScripts.PathOpGui.ViewProvider.clearTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart.cloneUp(), ArchStructure.StructureTaskPanel.connectNodes(), ArchBuildingPart.ViewProviderBuildingPart.createGroup(), draftviewproviders.view_text.ViewProviderText.createObject(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.doubleClicked(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.dragObject(), BOPTools.JoinFeatures.ViewProviderConnect.dragObject(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.dragObject(), BOPTools.SplitFeatures.ViewProviderXOR.dragObject(), femviewprovider.view_mesh_gmsh.VPMeshGmsh.dropObject(), BOPTools.JoinFeatures.ViewProviderConnect.dropObject(), BOPTools.SplitFeatures.ViewProviderBooleanFragments.dropObject(), BOPTools.SplitFeatures.ViewProviderXOR.dropObject(), ArchStructure.StructureTaskPanel.extendNodes(), draftviewproviders.view_wire.ViewProviderWire.flatten(), Mod.Show.Containers.Container.getCSChildren(), Mod.Show.Containers.Container.getDynamicChildren(), ArchBuildingPart.ViewProviderBuildingPart.getIcon(), ArchComponent.ViewProviderComponent.getIcon(), draftviewproviders.view_array.ViewProviderDraftArray.getIcon(), draftviewproviders.view_base.ViewProviderDraft.getIcon(), draftviewproviders.view_dimension.ViewProviderDimensionBase.getIcon(), draftviewproviders.view_draftlink.ViewProviderDraftLink.getIcon(), femviewprovider.view_base_femobject.VPBaseFemObject.getIcon(), femviewprovider.view_material_common.VPMaterialCommon.getIcon(), OpenSCADFeatures.ViewProviderTree.getIcon(), PathScripts.PathOpGui.ViewProvider.getIcon(), Mod.Show.Containers.Container.getStaticChildren(), Mod.Show.Containers.Container.getVisGroupChildren(), Mod.Show.Containers.Container.hasObjectRecursive(), draftviewproviders.view_dimension.ViewProviderLinearDimension.is_linked_to_circle(), Mod.Show.Containers.Container.isACS(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.Show.Containers.Container.isAVisGroup(), Mod.Show.Containers.Container.isChildVisible(), draftviewproviders.view_layer.ViewProviderLayerContainer.merge_by_name(), draftviewproviders.view_base.ViewProviderDraft.onChanged(), BOPTools.JoinFeatures.ViewProviderEmbed.onDelete(), BOPTools.JoinFeatures.ViewProviderCutout.onDelete(), ArchReference.ViewProviderArchReference.onOpen(), ArchReference.ViewProviderArchReference.onReload(), ArchBuildingPart.ViewProviderBuildingPart.reorder(), ArchStructure.StructureTaskPanel.resetNodes(), draftviewproviders.view_layer.ViewProviderLayer.select_contents(), Mod.Show.Containers.Container.self_check(), ArchComponent.ViewProviderComponent.setDisplayMode(), ArchComponent.ViewProviderComponent.setEdit(), Mod.PartDesign.SprocketFeature.ViewProviderSprocket.setEdit(), ArchStructure.StructureTaskPanel.setSelectionFromTool(), ArchStructure.StructureTaskPanel.setToolFromSelection(), PathScripts.PathOpGui.ViewProvider.setupTaskPanel(), ArchBuildingPart.ViewProviderBuildingPart.setWorkingPlane(), femviewprovider.view_result_mechanical.VPResultMechanical.unsetEdit(), ArchBuildingPart.ViewProviderBuildingPart.writeCamera(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.writeCamera(), ArchBuildingPart.ViewProviderBuildingPart.writeInventor(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.writeState().
def DocumentObject.ViewProvider.PropertiesList | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.RootNode | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
def DocumentObject.ViewProvider.setTransformation | ( | self, | |
trsf | |||
) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.setTransformation().
Referenced by DocumentObject.ViewProvider.setTransformation().
def DocumentObject.ViewProvider.show | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.show().
Referenced by DocumentObject.ViewProvider.show(), Mod.Show.mTempoVis.TempoVis.show_all_dependencies(), and Mod.Show.mTempoVis.TempoVis.show_all_dependent().
def DocumentObject.ViewProvider.supportedProperties | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.supportedProperties().
Referenced by DocumentObject.ViewProvider.supportedProperties().
def DocumentObject.ViewProvider.toString | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.toString().
Referenced by DocumentObject.ViewProvider.toString().
def DocumentObject.ViewProvider.Type | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__.
Referenced by ArchPanel.CommandPanelSheet.Activated(), ArchStructure.CommandStructuralSystem.Activated(), draftobjects.draft_annotation.DraftAnnotation.add_missing_properties_0v19(), ArchStructure.StructSelectionObserver.addSelection(), ArchSite.Compass.buildCoordinates(), ArchComponent.Component.execute(), draftobjects.layer.LayerContainer.execute(), ArchSchedule.CommandArchSchedule.IsActive(), draftobjects.layer.Layer.set_properties(), and ArchReference.ArchReference.setProperties().
def DocumentObject.ViewProvider.update | ( | self | ) |
References DocumentObject.ViewProvider.__vobject__, and DocumentObject.ViewProvider.update().
Referenced by ArchStructure.CommandStructuralSystem.Activated(), ArchAxisSystem.AxisSystemTaskPanel.addElement(), ArchComponent.ComponentTaskPanel.addElement(), ArchSectionPlane.SectionPlaneTaskPanel.addElement(), DraftGui.FacebinderTaskPanel.addElement(), femtaskpanels.task_result_mechanical._TaskPanel.calculate(), Spreadsheet_legacy.SpreadsheetView.changeCell(), draftguitools.gui_edit.Edit.endEditing(), draftguitools.gui_trackers.boxTracker.height(), draftguitools.gui_trackers.rectangleTracker.p3(), Plot.Plot.plot(), Spreadsheet_legacy.SpreadsheetView.recompute(), ArchAxisSystem.AxisSystemTaskPanel.removeElement(), ArchComponent.ComponentTaskPanel.removeElement(), ArchSectionPlane.SectionPlaneTaskPanel.removeElement(), DraftGui.FacebinderTaskPanel.removeElement(), draftguitools.gui_trackers.gridTracker.reset(), ArchNesting.Nester.run(), draftguitools.gui_trackers.gridTracker.setMainlines(), draftguitools.gui_trackers.gridTracker.setSize(), draftguitools.gui_trackers.gridTracker.setSpacing(), DocumentObject.ViewProvider.update(), and draftguitools.gui_edit_arch_objects.ArchWallGuiTools.update_object_from_edit_points().