draftobjects.wire.Wire Class Reference

Public Member Functions

def execute (self, obj)
 
def onChanged (self, obj, prop)
 

Additional Inherited Members

- Public Attributes inherited from draftobjects.base.DraftObject
 Type
 

Detailed Description

The Wire object

Member Function Documentation

◆ execute()

def draftobjects.wire.Wire.execute (   self,
  obj 
)
This method is run when the object is created or recomputed.

Override this method to produce effects when the object
is newly created, and whenever the document is recomputed.

By default it does nothing.

Parameters
----------
obj : the scripted object.
    This commonly may be of types `Part::Part2DObjectPython`,
    `Part::FeaturePython`, or `App::FeaturePython`.

Reimplemented from draftobjects.base.DraftObject.

References DraftVecUtils.equals(), Gui::ViewProviderTextDocument.onChanged(), ArchIFC.IfcRoot.onChanged(), Gui::ViewProviderOriginFeature.onChanged(), Gui::ViewProviderPlacement.onChanged(), Gui::ViewProviderAnnotation.onChanged(), Gui::ViewProviderPythonFeatureImp.onChanged(), App::FeaturePythonImp.onChanged(), App::TextDocument.onChanged(), Gui::ViewProviderPart.onChanged(), Gui::ViewProviderGeometryObject.onChanged(), App::MeasureDistance.onChanged(), Gui::ViewProviderMeasureDistance.onChanged(), Gui::ViewProviderOrigin.onChanged(), App::VRMLObject.onChanged(), App::FeatureCustomT< FeatureT >.onChanged(), ArchSchedule._ArchSchedule.onChanged(), Gui::ViewProviderAnnotationLabel.onChanged(), ArchReference.ArchReference.onChanged(), draftobjects.base.DraftObject.onChanged(), Gui::ViewProviderDocumentObject.onChanged(), Gui::ViewProviderLink.onChanged(), ArchTruss.Truss.onChanged(), App::ExtensionContainer.onChanged(), ArchFloor._Floor.onChanged(), App::PropertyContainer.onChanged(), DraftLayer.ViewProviderLayer.onChanged(), ArchCurtainWall.CurtainWall.onChanged(), ArchFence._ViewProviderFence.onChanged(), ArchMaterial._ArchMaterial.onChanged(), ArchRebar._Rebar.onChanged(), ArchComponent.Component.onChanged(), draftobjects.array.Array.onChanged(), ArchEquipment._Equipment.onChanged(), ArchSpace._Space.onChanged(), App::FeaturePythonT< FeatureT >.onChanged(), ArchBuildingPart.BuildingPart.onChanged(), ArchAxis._ViewProviderAxis.onChanged(), ArchReference.ViewProviderArchReference.onChanged(), ArchMaterial._ViewProviderArchMaterial.onChanged(), Gui::ViewProviderPythonFeatureT< ViewProviderT >.onChanged(), App::Document.onChanged(), Gui::ViewProvider.onChanged(), ArchRebar._ViewProviderRebar.onChanged(), ArchCurtainWall.ViewProviderCurtainWall.onChanged(), ArchWindow._Window.onChanged(), ArchSpace._ViewProviderSpace.onChanged(), App::DocumentObject.onChanged(), ArchBuildingPart.ViewProviderBuildingPart.onChanged(), ArchSite._Site.onChanged(), ArchAxis._AxisSystem.onChanged(), ArchStructure._Structure.onChanged(), ArchSectionPlane._SectionPlane.onChanged(), ArchPanel.PanelView.onChanged(), ArchAxis._ViewProviderAxisSystem.onChanged(), ArchStructure._ViewProviderStructure.onChanged(), ArchWall._Wall.onChanged(), ArchSite._ViewProviderSite.onChanged(), ArchWindow._ViewProviderWindow.onChanged(), ArchSectionPlane._ViewProviderSectionPlane.onChanged(), ArchPanel.ViewProviderPanelCut.onChanged(), ArchComponent.ViewProviderComponent.onChanged(), ArchPanel.ViewProviderPanelSheet.onChanged(), and DraftVecUtils.scaleTo().

Referenced by PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), and FeaturePython.DistanceBolt.onChanged().

◆ onChanged()

def draftobjects.wire.Wire.onChanged (   self,
  obj,
  prop 
)
This method is run when a property is changed.

Override this method to handle the behavior
of the object depending on changes that occur to its properties.

By default it does nothing.

Parameters
----------
obj : the scripted object.
    This commonly may be of types `Part::Part2DObjectPython`,
    `Part::FeaturePython`, or `App::FeaturePython`.

prop : str
    Name of the property that was modified.

Reimplemented from draftobjects.base.DraftObject.

References DraftVecUtils.scaleTo().

Referenced by draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), ArchAxis.CommandArchGrid.IsActive(), draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData(), and draftviewproviders.view_label.ViewProviderLabel.updateData().


The documentation for this class was generated from the following file:
  • src/Mod/Draft/draftobjects/wire.py