Public Member Functions | |
def | attach (self, obj) |
def | execute (self, obj) |
def | linkSetup (self, obj) |
def | onChanged (self, obj, prop) |
def | set_circular_properties (self, obj) |
def | set_general_properties (self, obj) |
def | set_link_properties (self, obj) |
def | set_ortho_properties (self, obj) |
def | set_polar_circular_properties (self, obj) |
def | set_polar_properties (self, obj) |
def | set_properties (self, obj) |
def | show_and_hide (self, obj, prop) |
Public Member Functions inherited from draftobjects.draftlink.DraftLink | |
def | attach (self, obj) |
def | buildShape (self, obj, pl, pls) |
def | canLinkProperties (self, _obj) |
def | getViewProviderName (self, _obj) |
def | linkSetup (self, obj) |
def | migrate_attributes (self, obj) |
def | onChanged (self, obj, prop) |
def | onDocumentRestored (self, obj) |
def | execute (self, obj) |
def | onChanged (self, obj, prop) |
Additional Inherited Members | |
Public Attributes inherited from draftobjects.draftlink.DraftLink | |
use_link | |
Public Attributes inherited from draftobjects.base.DraftObject | |
Type | |
The Draft Array object. To Do ----- The `Array` class currently handles three types of arrays, orthogonal, polar, and circular. In the future, probably they should be split in separate classes so that they are easier to manage.
def draftobjects.array.Array.attach | ( | self, | |
obj | |||
) |
Set up the properties when the object is attached.
Reimplemented from draftobjects.draftlink.DraftLink.
References draftobjects.array.Array.attach(), draftobjects.array.Array.set_properties(), draftobjects.dimension.DimensionBase.set_properties(), draftobjects.dimension.LinearDimension.set_properties(), draftobjects.dimension.AngularDimension.set_properties(), draftobjects.label.Label.set_properties(), draftobjects.layer.Layer.set_properties(), draftobjects.patharray.PathArray.set_properties(), draftobjects.pathtwistedarray.PathTwistedArray.set_properties(), draftobjects.pointarray.PointArray.set_properties(), draftobjects.text.Text.set_properties(), draftviewproviders.view_dimension.ViewProviderDimensionBase.set_properties(), draftviewproviders.view_draft_annotation.ViewProviderDraftAnnotation.set_properties(), draftviewproviders.view_label.ViewProviderLabel.set_properties(), draftviewproviders.view_layer.ViewProviderLayer.set_properties(), and draftviewproviders.view_text.ViewProviderText.set_properties().
Referenced by draftobjects.array.Array.attach().
def draftobjects.array.Array.execute | ( | self, | |
obj | |||
) |
Execute when the object is created or recomputed.
Reimplemented from draftobjects.base.DraftObject.
References draftobjects.draftlink.DraftLink.buildShape(), draftobjects.array.circ_placements(), draftobjects.array.polar_placements(), and draftobjects.array.rect_placements().
Referenced by draftobjects.facebinder.Facebinder.addSubobjects(), PathScripts.PathDressupDogbone.ObjectDressup.boneStateList(), ArchSite.Compass.buildCoordinates(), PathScripts.PathDressupHoldingTags.ObjectTagDressup.generateTags(), ArchPanel.PanelCut.getWires(), ArchSchedule.CommandArchSchedule.IsActive(), Mod.PartDesign.Scripts.DistanceBolt.DistanceBolt.onChanged(), Mod.PartDesign.Scripts.Epitrochoid.Epitrochoid.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.Parallelepiped.onChanged(), Mod.PartDesign.Scripts.Parallelepiped.BoxCylinder.onChanged(), Mod.PartDesign.Scripts.Spring.MySpring.onChanged(), FeaturePython.DistanceBolt.onChanged(), PathScripts.PathStock.StockFromBase.onChanged(), PathScripts.PathStock.StockCreateBox.onChanged(), PathScripts.PathStock.StockCreateCylinder.onChanged(), draftobjects.draftlink.DraftLink.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored().
def draftobjects.array.Array.linkSetup | ( | self, | |
obj | |||
) |
Set up the object as a link object.
Reimplemented from draftobjects.draftlink.DraftLink.
References draftobjects.array.Array.linkSetup().
Referenced by draftobjects.draftlink.DraftLink.attach(), draftobjects.array.Array.linkSetup(), draftobjects.draftlink.DraftLink.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), and draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored().
def draftobjects.array.Array.onChanged | ( | self, | |
obj, | |||
prop | |||
) |
Execute when a property is changed.
Reimplemented from draftobjects.draftlink.DraftLink.
References draftobjects.array.Array.onChanged(), draftobjects.array.Array.show_and_hide(), draftobjects.label.Label.show_and_hide(), and draftobjects.patharray.PathArray.show_and_hide().
Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), draftobjects.wire.Wire.execute(), draftobjects.array.Array.onChanged(), ArchBuildingPart.ViewProviderBuildingPart.updateData(), ArchPanel.ViewProviderPanelCut.updateData(), ArchPanel.ViewProviderPanelSheet.updateData(), draftviewproviders.view_label.ViewProviderLabel.updateData(), draftviewproviders.view_layer.ViewProviderLayer.updateData(), and draftviewproviders.view_wpproxy.ViewProviderWorkingPlaneProxy.updateData().
def draftobjects.array.Array.set_circular_properties | ( | self, | |
obj | |||
) |
Set circular properties only if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by draftobjects.array.Array.set_properties().
def draftobjects.array.Array.set_general_properties | ( | self, | |
obj | |||
) |
Set general properties only if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by draftobjects.array.Array.set_properties(), and draftobjects.patharray.PathArray.set_properties().
def draftobjects.array.Array.set_link_properties | ( | self, | |
obj | |||
) |
Set link properties only if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP, draftguitools.gui_array_simple.Array.use_link, draftguitools.gui_patharray.PathArray.use_link, draftguitools.gui_pathtwistedarray.PathTwistedArray.use_link, draftguitools.gui_pointarray.PointArray.use_link, draftobjects.draftlink.DraftLink.use_link, drafttaskpanels.task_circulararray.TaskPanelCircularArray.use_link, drafttaskpanels.task_orthoarray.TaskPanelOrthoArray.use_link, and drafttaskpanels.task_polararray.TaskPanelPolarArray.use_link.
Referenced by draftobjects.array.Array.set_properties().
def draftobjects.array.Array.set_ortho_properties | ( | self, | |
obj | |||
) |
Set orthogonal properties only if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by draftobjects.array.Array.set_properties().
def draftobjects.array.Array.set_polar_circular_properties | ( | self, | |
obj | |||
) |
Set general polar and circular properties if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by draftobjects.array.Array.set_properties().
def draftobjects.array.Array.set_polar_properties | ( | self, | |
obj | |||
) |
Set polar properties only if they don't exist.
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by draftobjects.array.Array.set_properties().
def draftobjects.array.Array.set_properties | ( | self, | |
obj | |||
) |
Set properties only if they don't exist.
References draftobjects.array.Array.set_circular_properties(), draftobjects.array.Array.set_general_properties(), draftobjects.patharray.PathArray.set_general_properties(), draftobjects.array.Array.set_link_properties(), draftobjects.array.Array.set_ortho_properties(), draftobjects.array.Array.set_polar_circular_properties(), and draftobjects.array.Array.set_polar_properties().
Referenced by draftobjects.array.Array.attach(), draftobjects.patharray.PathArray.attach(), draftobjects.pathtwistedarray.PathTwistedArray.attach(), draftobjects.pointarray.PointArray.attach(), draftobjects.layer.Layer.onDocumentRestored(), draftobjects.patharray.PathArray.onDocumentRestored(), draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored(), and draftobjects.pointarray.PointArray.onDocumentRestored().
def draftobjects.array.Array.show_and_hide | ( | self, | |
obj, | |||
prop | |||
) |
Show and hide the properties depending on the touched property.
Referenced by draftobjects.array.Array.onChanged(), draftobjects.label.Label.onChanged(), and draftobjects.patharray.PathArray.onChanged().