Public Member Functions | |
def | addBase (self, obj, base, sub) |
def | addBaseProperty (self, obj) |
def | addOpValues (self, obj, values) |
def | applyExpression (self, obj, prop, expr) |
def | execute (self, obj) |
def | getCycleTimeEstimate (self, obj) |
def | getJob (self, obj) |
def | initOperation (self, obj) |
def | isToolSupported (self, obj, tool) |
def | onChanged (self, obj, prop) |
def | onDocumentRestored (self, obj) |
def | opExecute (self, obj) |
def | opFeatures (self, obj) |
def | opOnChanged (self, obj, prop) |
def | opOnDocumentRestored (self, obj) |
def | opPropertyEnumerations (self, dataType="data") |
def | opRejectAddBase (self, obj, base, sub) |
def | opSetDefaultValues (self, obj, job) |
def | opUpdateDepths (self, obj) |
def | sanitizeBase (self, obj) |
def | setDefaultValues (self, obj) |
def | setEditorModes (self, obj, features) |
def | updateDepths (self, obj, ignoreErrors=False) |
Public Attributes | |
addNewProps | |
commandlist | |
horizFeed | |
horizRapid | |
job | |
model | |
radius | |
stock | |
tool | |
vertFeed | |
vertRapid | |
Base class for proxy objects of all Path operations. Use this class as a base class for new operations. It provides properties and some functionality for the standard properties each operation supports. By OR'ing features from the feature list an operation can select which ones of the standard features it requires and/or supports. The currently supported features are: FeatureTool ... Use of a ToolController FeatureDepths ... Depths, for start, final FeatureHeights ... Heights, safe and clearance FeatureStartPoint ... Supports setting a start point FeatureFinishDepth ... Operation supports a finish depth FeatureStepDown ... Support for step down FeatureNoFinalDepth ... Disable support for final depth modifications FeatureBaseVertexes ... Base geometry support for vertexes FeatureBaseEdges ... Base geometry support for edges FeatureBaseFaces ... Base geometry support for faces FeatureLocations ... Base location support FeatureCoolant ... Support for operation coolant FeatureDiameters ... Support for turning operation diameters The base class handles all base API and forwards calls to subclasses with an op prefix. For instance, an op is not expected to overwrite onChanged(), but implement the function opOnChanged(). If a base class overwrites a base API function it should call the super's implementation - otherwise the base functionality might be broken.
def PathScripts.PathOp.ObjectOp.addBase | ( | self, | |
obj, | |||
base, | |||
sub | |||
) |
References PathScripts.PathOp.ObjectOp._setBaseAndStock(), PathScripts.PathCamoticsGui.CamoticsSimulation.job, PathScripts.PathJobDlg.JobTemplateExport.job, PathScripts.PathOp.ObjectOp.job, PathScripts.PathOpGui.TaskPanelPage.job, PathScripts.PathOpGui.CommandResources.job, PathScripts.PathSimulatorGui.PathSimulation.job, PathScripts.PathToolLibraryEditor.EditorPanel.job, PathTests.TestPathHelix.TestPathHelix.job, PathTests.TestPathPost.TestBuildPostList.job, PathTests.TestPathPost.TestOutputNameSubstitution.job, PathTests.TestPathStock.TestPathStock.job, PathScripts.PathDeburr.ObjectDeburr.opRejectAddBase(), and PathScripts.PathOp.ObjectOp.opRejectAddBase().
Referenced by PathScripts.PathOpGui.TaskPanelBaseGeometryPage.importBaseGeometry(), PathScripts.PathCircularHoleBaseGui.TaskPanelHoleGeometryPage.registerSignalHandlers(), and PathScripts.PathOpGui.TaskPanelBaseGeometryPage.registerSignalHandlers().
def PathScripts.PathOp.ObjectOp.addBaseProperty | ( | self, | |
obj | |||
) |
References draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by PathScripts.PathOp.ObjectOp.addOpValues(), and PathScripts.PathOp.ObjectOp.onDocumentRestored().
def PathScripts.PathOp.ObjectOp.addOpValues | ( | self, | |
obj, | |||
values | |||
) |
References PathScripts.PathOp.ObjectOp.addBaseProperty(), PathScripts.PathOp.ObjectOp.addOpValues(), PathScripts.PathAdaptive.PathAdaptive.opFeatures(), PathScripts.PathAreaOp.ObjectOp.opFeatures(), PathScripts.PathCircularHoleBase.ObjectOp.opFeatures(), PathScripts.PathCustom.ObjectCustom.opFeatures(), PathScripts.PathDeburr.ObjectDeburr.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opFeatures(), PathScripts.PathOp.ObjectOp.opFeatures(), PathScripts.PathProbe.ObjectProbing.opFeatures(), PathScripts.PathSlot.ObjectSlot.opFeatures(), PathScripts.PathSurface.ObjectSurface.opFeatures(), PathScripts.PathVcarve.ObjectVcarve.opFeatures(), PathScripts.PathWaterline.ObjectWaterline.opFeatures(), PathScripts.PathOp.ObjectOp.opPropertyEnumerations(), and draftutils.translate.QT_TRANSLATE_NOOP.
Referenced by PathScripts.PathOp.ObjectOp.addOpValues(), and PathScripts.PathOp.ObjectOp.onDocumentRestored().
def PathScripts.PathOp.ObjectOp.applyExpression | ( | self, | |
obj, | |||
prop, | |||
expr | |||
) |
applyExpression(obj, prop, expr) ... set expression expr on obj.prop if expr is set
Referenced by PathScripts.PathDrilling.ObjectDrilling.opSetDefaultValues(), and PathScripts.PathOp.ObjectOp.setDefaultValues().
def PathScripts.PathOp.ObjectOp.execute | ( | self, | |
obj | |||
) |
execute(obj) ... base implementation - do not overwrite! Verifies that the operation is assigned to a job and that the job also has a valid Base. It also sets the following instance variables that can and should be safely be used by implementation of opExecute(): self.model ... List of base objects of the Job itself self.stock ... Stock object for the Job itself self.vertFeed ... vertical feed rate of assigned tool self.vertRapid ... vertical rapid rate of assigned tool self.horizFeed ... horizontal feed rate of assigned tool self.horizRapid ... norizontal rapid rate of assigned tool self.tool ... the actual tool being used self.radius ... the main radius of the tool being used self.commandlist ... a list for collecting all commands produced by the operation Once everything is validated and above variables are set the implementation calls opExecute(obj) - which is expected to add the generated commands to self.commandlist Finally the base implementation adds a rapid move to clearance height and assigns the receiver's Path property from the command list.
References PathScripts.PathOp.ObjectOp._setBaseAndStock(), PathScripts.PathOp.ObjectOp.commandlist, PathScripts.PathVcarve.ObjectVcarve.commandlist, PathTests.TestPathHelpers.TestPathHelpers.commandlist, PathScripts.PathOp.ObjectOp.getCycleTimeEstimate(), PathScripts.PathOp.ObjectOp.horizFeed, PathScripts.PathToolControllerGui.ToolControllerEditor.horizFeed, PathScripts.PathOp.ObjectOp.horizRapid, PathScripts.PathToolControllerGui.ToolControllerEditor.horizRapid, PathScripts.PathCamoticsGui.CamoticsSimulation.job, PathScripts.PathJobDlg.JobTemplateExport.job, PathScripts.PathOp.ObjectOp.job, PathScripts.PathOpGui.TaskPanelPage.job, PathScripts.PathOpGui.CommandResources.job, PathScripts.PathSimulatorGui.PathSimulation.job, PathScripts.PathToolLibraryEditor.EditorPanel.job, PathTests.TestPathHelix.TestPathHelix.job, PathTests.TestPathPost.TestBuildPostList.job, PathTests.TestPathPost.TestOutputNameSubstitution.job, PathTests.TestPathStock.TestPathStock.job, Gui::VectorListEditor.model, ArchMaterial._ArchMultiMaterialTaskPanel.model, PartGui::TaskCheckGeometryResults.model, PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.model, PathScripts.PathJobDlg.JobCreate.model, PathScripts.PathOp.ObjectOp.model, PathScripts.PathPropertyBagGui.TaskPanel.model, PathScripts.PathSetupSheetGui.OpTaskPanel.model, PathScripts.PathToolBitEdit.ToolBitEditor.model, SpreadsheetGui::SheetView.model, PathScripts.PathAdaptive.PathAdaptive.opExecute(), PathScripts.PathCircularHoleBase.ObjectOp.opExecute(), PathScripts.PathCustom.ObjectCustom.opExecute(), PathScripts.PathDeburr.ObjectDeburr.opExecute(), PathScripts.PathEngrave.ObjectEngrave.opExecute(), PathScripts.PathOp.ObjectOp.opExecute(), PathScripts.PathProbe.ObjectProbing.opExecute(), PathScripts.PathSlot.ObjectSlot.opExecute(), PathScripts.PathSurface.ObjectSurface.opExecute(), PathScripts.PathVcarve.ObjectVcarve.opExecute(), PathScripts.PathWaterline.ObjectWaterline.opExecute(), PathScripts.PathAreaOp.ObjectOp.opExecute(), PathScripts.PathAdaptive.PathAdaptive.opFeatures(), PathScripts.PathAreaOp.ObjectOp.opFeatures(), PathScripts.PathCircularHoleBase.ObjectOp.opFeatures(), PathScripts.PathCustom.ObjectCustom.opFeatures(), PathScripts.PathDeburr.ObjectDeburr.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opFeatures(), PathScripts.PathOp.ObjectOp.opFeatures(), PathScripts.PathProbe.ObjectProbing.opFeatures(), PathScripts.PathSlot.ObjectSlot.opFeatures(), PathScripts.PathSurface.ObjectSurface.opFeatures(), PathScripts.PathVcarve.ObjectVcarve.opFeatures(), PathScripts.PathWaterline.ObjectWaterline.opFeatures(), Ui_SphereWidget.radius, PartGui::Ui_DlgPartCylinder.radius, e57::CylindricalRepresentation.radius, DraftGui.DraftToolBar.radius, draftguitools.gui_snapper.Snapper.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.polar_complex_number_literal.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.spherical_surface.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.swept_disk_solid.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.right_circular_cylinder.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.circle.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.right_circular_cone.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.sphere.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.cylindrical_surface.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.solid_with_constant_radius_edge_blend.radius, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.conical_surface.radius, automotive_design.spherical_surface.radius, automotive_design.swept_disk_solid.radius, automotive_design.right_circular_cylinder.radius, automotive_design.circle.radius, automotive_design.right_circular_cone.radius, automotive_design.sphere.radius, automotive_design.cylindrical_surface.radius, automotive_design.conical_surface.radius, config_control_design.spherical_surface.radius, config_control_design.circle.radius, config_control_design.cylindrical_surface.radius, config_control_design.conical_surface.radius, ifc2x3.ifccranerailashapeprofiledef.radius, ifc2x3.ifcroundededgefeature.radius, ifc2x3.ifcrightcircularcylinder.radius, ifc2x3.ifccircleprofiledef.radius, ifc2x3.ifccranerailfshapeprofiledef.radius, ifc2x3.ifclightsourcepositional.radius, ifc2x3.ifcsweptdisksolid.radius, ifc2x3.ifccircle.radius, ifc2x3.ifcsphere.radius, ifc4.ifcsweptdisksolid.radius, ifc4.ifcrightcircularcylinder.radius, ifc4.ifccircleprofiledef.radius, ifc4.ifclightsourcepositional.radius, ifc4.ifccircle.radius, ifc4.ifccylindricalsurface.radius, ifc4.ifcsphere.radius, Inspection::DistanceInspection.radius, Measure::Measurement.radius(), MeshCore::CylinderSurfaceFit.radius, MeshCore::SphereSurfaceFit.radius, Part::TangentialArc.radius(), PartGui::DimensionAngular.radius, PartGui::ArcEngine.radius, geoff_geometry::Circle.radius, geoff_geometry::Span.radius, PathScripts.PathDressupAxisMap.TaskPanel.radius, PathScripts.PathDressupHoldingTags.Tag.radius, PathScripts.PathDressupTag.TagSolid.radius, PathScripts.PathOp.ObjectOp.radius, PathScripts.PathSurface.ObjectSurface.radius, PathScripts.PathSurfaceSupport.ProcessSelectedFaces.radius, PathScripts.PathWaterline.ObjectWaterline.radius, cSimTool.radius, KDL::Path_Circle.radius, KDL::Path_RoundedComposite.radius, ObjectObserver.radius, SketcherGui::DrawSketchHandler3PointArc.radius, SketcherGui::DrawSketchHandler3PointCircle.radius, SketcherGui::DrawSketchHandlerOblong.radius, TechDraw::arcPoints.radius, TechDraw::Circle.radius, PathScripts.PathOp.ObjectOp.sanitizeBase(), PathScripts.PathOp.ObjectOp.stock, PathScripts.PathSimulatorGui.PathSimulation.stock, cVolSim.stock, PathScripts.PathInspect.GCodeEditorDialog.tool, PathScripts.PathOp.ObjectOp.tool, PathScripts.PathSimulatorGui.PathSimulation.tool, PathScripts.PathSurfaceSupport.OCL_Tool.tool, PathScripts.PathToolBitEdit.ToolBitEditor.tool, PathScripts.PathToolEdit.ToolEditor.tool, PathScripts.PathToolLibraryManager.FreeCADTooltableHandler.tool, PathScripts.PathToolLibraryManager.HeeksTooltableHandler.tool, PathScripts.PathOp.ObjectOp.updateDepths(), PathScripts.PathOp.ObjectOp.vertFeed, PathScripts.PathToolControllerGui.ToolControllerEditor.vertFeed, PathScripts.PathOp.ObjectOp.vertRapid, and PathScripts.PathToolControllerGui.ToolControllerEditor.vertRapid.
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(), draftobjects.pathtwistedarray.PathTwistedArray.onDocumentRestored(), PathScripts.PathAdaptive.PathAdaptive.opExecute(), and PathScripts.PathOp.ObjectOp.opExecute().
def PathScripts.PathOp.ObjectOp.getCycleTimeEstimate | ( | self, | |
obj | |||
) |
Referenced by PathScripts.PathOp.ObjectOp.execute().
def PathScripts.PathOp.ObjectOp.getJob | ( | self, | |
obj | |||
) |
getJob(obj) ... return the job this operation is part of.
References PathScripts.PathOp.ObjectOp._setBaseAndStock(), PathScripts.PathCamoticsGui.CamoticsSimulation.job, PathScripts.PathJobDlg.JobTemplateExport.job, PathScripts.PathOp.ObjectOp.job, PathScripts.PathOpGui.TaskPanelPage.job, PathScripts.PathOpGui.CommandResources.job, PathScripts.PathSimulatorGui.PathSimulation.job, PathScripts.PathToolLibraryEditor.EditorPanel.job, PathTests.TestPathHelix.TestPathHelix.job, PathTests.TestPathPost.TestBuildPostList.job, PathTests.TestPathPost.TestOutputNameSubstitution.job, and PathTests.TestPathStock.TestPathStock.job.
Referenced by PathScripts.PathCircularHoleBase.ObjectOp.findAllHoles().
def PathScripts.PathOp.ObjectOp.initOperation | ( | self, | |
obj | |||
) |
initOperation(obj) ... implement to create additional properties. Should be overwritten by subclasses.
Reimplemented in PathScripts.PathAdaptive.PathAdaptive, PathScripts.PathAreaOp.ObjectOp, PathScripts.PathCircularHoleBase.ObjectOp, PathScripts.PathCustom.ObjectCustom, PathScripts.PathDeburr.ObjectDeburr, PathScripts.PathEngrave.ObjectEngrave, PathScripts.PathProbe.ObjectProbing, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathVcarve.ObjectVcarve, and PathScripts.PathWaterline.ObjectWaterline.
def PathScripts.PathOp.ObjectOp.isToolSupported | ( | self, | |
obj, | |||
tool | |||
) |
toolSupported(obj, tool) ... Returns true if the op supports the given tool. This function can safely be overwritten by subclasses.
Reimplemented in PathScripts.PathThreadMilling.ObjectThreadMilling, and PathScripts.PathVcarve.ObjectVcarve.
Referenced by PathScripts.PathThreadMilling.ObjectThreadMilling.circularHoleExecute().
def PathScripts.PathOp.ObjectOp.onChanged | ( | self, | |
obj, | |||
prop | |||
) |
onChanged(obj, prop) ... base implementation of the FC notification framework. Do not overwrite, overwrite opOnChanged() instead.
Reimplemented in PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, and PathScripts.PathWaterline.ObjectWaterline.
References PathScripts.PathAreaOp.ObjectOp.opOnChanged(), PathScripts.PathOp.ObjectOp.opOnChanged(), PathScripts.PathOp.ObjectOp.sanitizeBase(), and PathScripts.PathOp.ObjectOp.updateDepths().
Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftviewproviders.view_base.ViewProviderDraft.attach(), ArchSite.Compass.buildCoordinates(), draftobjects.wire.Wire.execute(), 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 PathScripts.PathOp.ObjectOp.onDocumentRestored | ( | self, | |
obj | |||
) |
References PathScripts.PathOp.ObjectOp.addBaseProperty(), PathScripts.PathOp.ObjectOp.addOpValues(), PathScripts.PathAdaptive.PathAdaptive.opFeatures(), PathScripts.PathAreaOp.ObjectOp.opFeatures(), PathScripts.PathCircularHoleBase.ObjectOp.opFeatures(), PathScripts.PathCustom.ObjectCustom.opFeatures(), PathScripts.PathDeburr.ObjectDeburr.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opFeatures(), PathScripts.PathOp.ObjectOp.opFeatures(), PathScripts.PathProbe.ObjectProbing.opFeatures(), PathScripts.PathSlot.ObjectSlot.opFeatures(), PathScripts.PathSurface.ObjectSurface.opFeatures(), PathScripts.PathVcarve.ObjectVcarve.opFeatures(), PathScripts.PathWaterline.ObjectWaterline.opFeatures(), PathScripts.PathAdaptive.PathAdaptive.opOnDocumentRestored(), PathScripts.PathAreaOp.ObjectOp.opOnDocumentRestored(), PathScripts.PathDeburr.ObjectDeburr.opOnDocumentRestored(), PathScripts.PathEngrave.ObjectEngrave.opOnDocumentRestored(), PathScripts.PathHelix.ObjectHelix.opOnDocumentRestored(), PathScripts.PathOp.ObjectOp.opOnDocumentRestored(), PathScripts.PathPocket.ObjectPocket.opOnDocumentRestored(), PathScripts.PathPocketBase.ObjectPocket.opOnDocumentRestored(), PathScripts.PathSlot.ObjectSlot.opOnDocumentRestored(), PathScripts.PathSurface.ObjectSurface.opOnDocumentRestored(), PathScripts.PathVcarve.ObjectVcarve.opOnDocumentRestored(), PathScripts.PathWaterline.ObjectWaterline.opOnDocumentRestored(), PathScripts.PathOp.ObjectOp.opPropertyEnumerations(), draftutils.translate.QT_TRANSLATE_NOOP, PathScripts.PathArray.ObjectArray.setEditorModes(), and PathScripts.PathOp.ObjectOp.setEditorModes().
def PathScripts.PathOp.ObjectOp.opExecute | ( | self, | |
obj | |||
) |
opExecute(obj) ... called whenever the receiver needs to be recalculated. See documentation of execute() for a list of base functionality provided. Should be overwritten by subclasses.
Reimplemented in PathScripts.PathAdaptive.PathAdaptive, PathScripts.PathCircularHoleBase.ObjectOp, PathScripts.PathCustom.ObjectCustom, PathScripts.PathDeburr.ObjectDeburr, PathScripts.PathEngrave.ObjectEngrave, PathScripts.PathProbe.ObjectProbing, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathVcarve.ObjectVcarve, PathScripts.PathWaterline.ObjectWaterline, and PathScripts.PathAreaOp.ObjectOp.
References PathScripts.PathOp.ObjectOp.execute().
Referenced by PathScripts.PathOp.ObjectOp.execute().
def PathScripts.PathOp.ObjectOp.opFeatures | ( | self, | |
obj | |||
) |
opFeatures(obj) ... returns the OR'ed list of features used and supported by the operation. The default implementation returns "FeatureTool | FeatureDepths | FeatureHeights | FeatureStartPoint" Should be overwritten by subclasses.
Reimplemented in PathScripts.PathAdaptive.PathAdaptive, PathScripts.PathAreaOp.ObjectOp, PathScripts.PathCircularHoleBase.ObjectOp, PathScripts.PathCustom.ObjectCustom, PathScripts.PathDeburr.ObjectDeburr, PathScripts.PathEngrave.ObjectEngrave, PathScripts.PathProbe.ObjectProbing, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathVcarve.ObjectVcarve, and PathScripts.PathWaterline.ObjectWaterline.
Referenced by PathScripts.PathOp.ObjectOp.addOpValues(), PathScripts.PathAreaOp.ObjectOp.areaOpSetDefaultValues(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathOp.ObjectOp.onDocumentRestored(), PathScripts.PathCircularHoleBase.ObjectOp.opExecute(), PathScripts.PathAreaOp.ObjectOp.opSetDefaultValues(), PathScripts.PathEngraveBase.ObjectOp.opSetDefaultValues(), PathScripts.PathVcarve.ObjectVcarve.opSetDefaultValues(), PathScripts.PathOp.ObjectOp.setDefaultValues(), and PathScripts.PathOp.ObjectOp.updateDepths().
def PathScripts.PathOp.ObjectOp.opOnChanged | ( | self, | |
obj, | |||
prop | |||
) |
opOnChanged(obj, prop) ... overwrite to process property changes. This is a callback function that is invoked each time a property of the receiver is assigned a value. Note that the FC framework does not distinguish between assigning a different value and assigning the same value again. Can safely be overwritten by subclasses.
Reimplemented in PathScripts.PathAreaOp.ObjectOp.
Referenced by PathScripts.PathOp.ObjectOp.onChanged().
def PathScripts.PathOp.ObjectOp.opOnDocumentRestored | ( | self, | |
obj | |||
) |
opOnDocumentRestored(obj) ... implement if an op needs special handling like migrating the data model. Should be overwritten by subclasses.
Reimplemented in PathScripts.PathAdaptive.PathAdaptive, PathScripts.PathAreaOp.ObjectOp, PathScripts.PathDeburr.ObjectDeburr, PathScripts.PathEngrave.ObjectEngrave, PathScripts.PathHelix.ObjectHelix, PathScripts.PathPocket.ObjectPocket, PathScripts.PathPocketBase.ObjectPocket, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathVcarve.ObjectVcarve, and PathScripts.PathWaterline.ObjectWaterline.
Referenced by PathScripts.PathOp.ObjectOp.onDocumentRestored().
def PathScripts.PathOp.ObjectOp.opPropertyEnumerations | ( | self, | |
dataType = "data" |
|||
) |
opPropertyEnumerations(dataType="data")... return property enumeration lists of specified dataType. Args: dataType = 'data', 'raw', 'translated' Notes: 'data' is list of internal string literals used in code 'raw' is list of (translated_text, data_string) tuples 'translated' is list of translated string literals
Referenced by PathScripts.PathOp.ObjectOp.addOpValues(), and PathScripts.PathOp.ObjectOp.onDocumentRestored().
def PathScripts.PathOp.ObjectOp.opRejectAddBase | ( | self, | |
obj, | |||
base, | |||
sub | |||
) |
opRejectAddBase(base, sub) ... if op returns True the addition of the feature is prevented. Should be overwritten by subclasses.
Reimplemented in PathScripts.PathDeburr.ObjectDeburr.
Referenced by PathScripts.PathOp.ObjectOp.addBase().
def PathScripts.PathOp.ObjectOp.opSetDefaultValues | ( | self, | |
obj, | |||
job | |||
) |
opSetDefaultValues(obj, job) ... overwrite to set initial default values. Called after the receiver has been fully created with all properties. Can safely be overwritten by subclasses.
Reimplemented in PathScripts.PathAdaptive.PathAdaptive, PathScripts.PathAreaOp.ObjectOp, PathScripts.PathDeburr.ObjectDeburr, PathScripts.PathDrilling.ObjectDrilling, PathScripts.PathEngraveBase.ObjectOp, PathScripts.PathProbe.ObjectProbing, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathThreadMilling.ObjectThreadMilling, PathScripts.PathVcarve.ObjectVcarve, and PathScripts.PathWaterline.ObjectWaterline.
Referenced by PathScripts.PathEngrave.ObjectEngrave.opUpdateDepths(), PathScripts.PathVcarve.ObjectVcarve.opUpdateDepths(), and PathScripts.PathOp.ObjectOp.setDefaultValues().
def PathScripts.PathOp.ObjectOp.opUpdateDepths | ( | self, | |
obj | |||
) |
opUpdateDepths(obj) ... overwrite to implement special depths calculation. Can safely be overwritten by subclass.
Reimplemented in PathScripts.PathEngrave.ObjectEngrave, PathScripts.PathPocket.ObjectPocket, PathScripts.PathProfile.ObjectProfile, PathScripts.PathSlot.ObjectSlot, PathScripts.PathSurface.ObjectSurface, PathScripts.PathWaterline.ObjectWaterline, and PathScripts.PathVcarve.ObjectVcarve.
Referenced by PathScripts.PathOp.ObjectOp.updateDepths().
def PathScripts.PathOp.ObjectOp.sanitizeBase | ( | self, | |
obj | |||
) |
sanitizeBase(obj) ... check if Base is valid and clear on errors.
Referenced by PathScripts.PathOp.ObjectOp.execute(), and PathScripts.PathOp.ObjectOp.onChanged().
def PathScripts.PathOp.ObjectOp.setDefaultValues | ( | self, | |
obj | |||
) |
setDefaultValues(obj) ... base implementation. Do not overwrite, overwrite opSetDefaultValues() instead.
References PathScripts.PathOp.ObjectOp.applyExpression(), PathScripts.PathCamoticsGui.CamoticsSimulation.job, PathScripts.PathJobDlg.JobTemplateExport.job, PathScripts.PathOp.ObjectOp.job, PathScripts.PathOpGui.TaskPanelPage.job, PathScripts.PathOpGui.CommandResources.job, PathScripts.PathSimulatorGui.PathSimulation.job, PathScripts.PathToolLibraryEditor.EditorPanel.job, PathTests.TestPathHelix.TestPathHelix.job, PathTests.TestPathPost.TestBuildPostList.job, PathTests.TestPathPost.TestOutputNameSubstitution.job, PathTests.TestPathStock.TestPathStock.job, Gui::VectorListEditor.model, ArchMaterial._ArchMultiMaterialTaskPanel.model, PartGui::TaskCheckGeometryResults.model, PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.model, PathScripts.PathJobDlg.JobCreate.model, PathScripts.PathOp.ObjectOp.model, PathScripts.PathPropertyBagGui.TaskPanel.model, PathScripts.PathSetupSheetGui.OpTaskPanel.model, PathScripts.PathToolBitEdit.ToolBitEditor.model, SpreadsheetGui::SheetView.model, PathScripts.PathAdaptive.PathAdaptive.opFeatures(), PathScripts.PathAreaOp.ObjectOp.opFeatures(), PathScripts.PathCircularHoleBase.ObjectOp.opFeatures(), PathScripts.PathCustom.ObjectCustom.opFeatures(), PathScripts.PathDeburr.ObjectDeburr.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opFeatures(), PathScripts.PathOp.ObjectOp.opFeatures(), PathScripts.PathProbe.ObjectProbing.opFeatures(), PathScripts.PathSlot.ObjectSlot.opFeatures(), PathScripts.PathSurface.ObjectSurface.opFeatures(), PathScripts.PathVcarve.ObjectVcarve.opFeatures(), PathScripts.PathWaterline.ObjectWaterline.opFeatures(), PathScripts.PathAdaptive.PathAdaptive.opSetDefaultValues(), PathScripts.PathAreaOp.ObjectOp.opSetDefaultValues(), PathScripts.PathDeburr.ObjectDeburr.opSetDefaultValues(), PathScripts.PathDrilling.ObjectDrilling.opSetDefaultValues(), PathScripts.PathEngraveBase.ObjectOp.opSetDefaultValues(), PathScripts.PathOp.ObjectOp.opSetDefaultValues(), PathScripts.PathProbe.ObjectProbing.opSetDefaultValues(), PathScripts.PathSlot.ObjectSlot.opSetDefaultValues(), PathScripts.PathSurface.ObjectSurface.opSetDefaultValues(), PathScripts.PathThreadMilling.ObjectThreadMilling.opSetDefaultValues(), PathScripts.PathVcarve.ObjectVcarve.opSetDefaultValues(), PathScripts.PathWaterline.ObjectWaterline.opSetDefaultValues(), PathScripts.PathOp.ObjectOp.stock, PathScripts.PathSimulatorGui.PathSimulation.stock, and cVolSim.stock.
def PathScripts.PathOp.ObjectOp.setEditorModes | ( | self, | |
obj, | |||
features | |||
) |
Editor modes are not preserved during document store/restore, set editor modes for all properties
Referenced by PathScripts.PathArray.ObjectArray.onChanged(), PathScripts.PathArray.ObjectArray.onDocumentRestored(), and PathScripts.PathOp.ObjectOp.onDocumentRestored().
def PathScripts.PathOp.ObjectOp.updateDepths | ( | self, | |
obj, | |||
ignoreErrors = False |
|||
) |
updateDepths(obj) ... base implementation calculating depths depending on base geometry. Should not be overwritten.
References PathScripts.PathOp.ObjectOp._setBaseAndStock(), PathScripts.PathAdaptive.PathAdaptive.opFeatures(), PathScripts.PathAreaOp.ObjectOp.opFeatures(), PathScripts.PathCircularHoleBase.ObjectOp.opFeatures(), PathScripts.PathCustom.ObjectCustom.opFeatures(), PathScripts.PathDeburr.ObjectDeburr.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opFeatures(), PathScripts.PathOp.ObjectOp.opFeatures(), PathScripts.PathProbe.ObjectProbing.opFeatures(), PathScripts.PathSlot.ObjectSlot.opFeatures(), PathScripts.PathSurface.ObjectSurface.opFeatures(), PathScripts.PathVcarve.ObjectVcarve.opFeatures(), PathScripts.PathWaterline.ObjectWaterline.opFeatures(), PathScripts.PathEngrave.ObjectEngrave.opUpdateDepths(), PathScripts.PathOp.ObjectOp.opUpdateDepths(), PathScripts.PathPocket.ObjectPocket.opUpdateDepths(), PathScripts.PathProfile.ObjectProfile.opUpdateDepths(), PathScripts.PathSlot.ObjectSlot.opUpdateDepths(), PathScripts.PathSurface.ObjectSurface.opUpdateDepths(), PathScripts.PathWaterline.ObjectWaterline.opUpdateDepths(), PathScripts.PathVcarve.ObjectVcarve.opUpdateDepths(), PathScripts.PathOp.ObjectOp.stock, PathScripts.PathSimulatorGui.PathSimulation.stock, and cVolSim.stock.
Referenced by PathScripts.PathOp.ObjectOp.execute(), and PathScripts.PathOp.ObjectOp.onChanged().
PathScripts.PathOp.ObjectOp.addNewProps |
Referenced by PathScripts.PathProfile.ObjectProfile.areaOpSetDefaultValues(), PathScripts.PathSlot.ObjectSlot.opOnDocumentRestored(), PathScripts.PathSurface.ObjectSurface.opOnDocumentRestored(), PathScripts.PathWaterline.ObjectWaterline.opOnDocumentRestored(), PathScripts.PathSlot.ObjectSlot.opSetDefaultValues(), PathScripts.PathSurface.ObjectSurface.opSetDefaultValues(), and PathScripts.PathWaterline.ObjectWaterline.opSetDefaultValues().
PathScripts.PathOp.ObjectOp.commandlist |
Referenced by PathScripts.PathEngraveBase.ObjectOp.appendCommand(), PathScripts.PathEngraveBase.ObjectOp.buildpathocc(), PathScripts.PathDrilling.ObjectDrilling.circularHoleExecute(), PathScripts.PathHelix.ObjectHelix.circularHoleExecute(), PathScripts.PathThreadMilling.ObjectThreadMilling.circularHoleExecute(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathThreadMilling.ObjectThreadMilling.executeThreadMill(), PathScripts.PathCustom.ObjectCustom.opExecute(), PathScripts.PathEngrave.ObjectEngrave.opExecute(), PathScripts.PathProbe.ObjectProbing.opExecute(), PathTests.TestPathHelpers.TestPathHelpers.test00(), and PathTests.TestPathHelpers.TestPathHelpers.test01().
PathScripts.PathOp.ObjectOp.horizFeed |
Referenced by PathScripts.PathAreaOp.ObjectOp.areaOpSetDefaultValues(), PathScripts.PathEngraveBase.ObjectOp.buildpathocc(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathThreadMilling.ObjectThreadMilling.executeThreadMill(), PathScripts.PathToolControllerGui.ToolControllerEditor.updateToolController(), and PathScripts.PathToolControllerGui.ToolControllerEditor.updateUi().
PathScripts.PathOp.ObjectOp.horizRapid |
Referenced by PathScripts.PathEngraveBase.ObjectOp.buildpathocc(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathSurface.ObjectSurface.holdStopCmds(), PathScripts.PathToolControllerGui.ToolControllerEditor.updateToolController(), and PathScripts.PathToolControllerGui.ToolControllerEditor.updateUi().
PathScripts.PathOp.ObjectOp.job |
Referenced by PathScripts.PathOp.ObjectOp.addBase(), PathScripts.PathDrilling.ObjectDrilling.circularHoleExecute(), PathScripts.PathToolLibraryEditor.EditorPanel.copyTools(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathOp.ObjectOp.getJob(), PathScripts.PathOpGui.TaskPanelBaseGeometryPage.modifyPanel(), PathScripts.PathSimulatorGui.PathSimulation.onJobChange(), PathScripts.PathPocket.ObjectPocket.opUpdateDepths(), PathScripts.PathSurface.ObjectSurface.opUpdateDepths(), PathScripts.PathWaterline.ObjectWaterline.opUpdateDepths(), PathScripts.PathOp.ObjectOp.setDefaultValues(), PathTests.TestPathStock.TestPathStock.test00(), PathTests.TestPathPost.TestOutputNameSubstitution.test000(), PathTests.TestPathStock.TestPathStock.test01(), PathTests.TestPathPost.TestBuildPostList.test010(), PathTests.TestPathPost.TestOutputNameSubstitution.test010(), PathTests.TestPathPost.TestOutputNameSubstitution.test015(), PathTests.TestPathHelix.TestPathHelix.test02(), PathTests.TestPathPost.TestBuildPostList.test020(), PathTests.TestPathPost.TestOutputNameSubstitution.test020(), PathTests.TestPathHelix.TestPathHelix.test03(), PathTests.TestPathPost.TestBuildPostList.test030(), PathTests.TestPathPost.TestOutputNameSubstitution.test030(), PathTests.TestPathHelix.TestPathHelix.test04(), PathTests.TestPathPost.TestBuildPostList.test040(), PathTests.TestPathPost.TestOutputNameSubstitution.test040(), PathTests.TestPathPost.TestBuildPostList.test050(), PathTests.TestPathPost.TestOutputNameSubstitution.test050(), PathTests.TestPathPost.TestBuildPostList.test060(), PathTests.TestPathPost.TestOutputNameSubstitution.test060(), PathTests.TestPathPost.TestOutputNameSubstitution.test070(), PathTests.TestPathPost.TestOutputNameSubstitution.test080(), PathTests.TestPathStock.TestPathStock.test10(), PathTests.TestPathStock.TestPathStock.test11(), PathTests.TestPathStock.TestPathStock.test12(), and PathScripts.PathJobDlg.JobTemplateExport.updateUI().
PathScripts.PathOp.ObjectOp.model |
Referenced by PathScripts.PathSetupSheetGui.OpTaskPanel.accept(), PathScripts.PathPocket.ObjectPocket.areaOpShapes(), PathScripts.PathVcarve.ObjectVcarve.buildPathMedial(), PathScripts.PathJobDlg.JobCreate.exec_(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.extensionsClear(), PathScripts.PathCircularHoleBase.ObjectOp.findAllHoles(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.forAllItemsCall(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.getFields(), PathScripts.PathJobDlg.JobCreate.item1ValueChanged(), PathScripts.PathEngrave.ObjectEngrave.opExecute(), PathScripts.PathVcarve.ObjectVcarve.opExecute(), PathScripts.PathDeburr.ObjectDeburr.opRejectAddBase(), PathScripts.PathPropertyBagGui.TaskPanel.propertyAdd(), PathScripts.PathPropertyBagGui.TaskPanel.propertyModifyIndex(), PathScripts.PathPropertyBagGui.TaskPanel.propertyRemove(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.registerSignalHandlers(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.restoreSelection(), PathScripts.PathOp.ObjectOp.setDefaultValues(), PathScripts.PathFeatureExtensionsGui.TaskPanelExtensionPage.setExtensions(), ArchMaterial.MultiMaterialDelegate.setModelData(), PathScripts.PathJobDlg.JobCreate.setupModel(), PathScripts.PathPropertyBagGui.TaskPanel.setupUi(), PathScripts.PathSetupSheetGui.OpTaskPanel.setupUi(), PathScripts.PathJobDlg.JobCreate.updateData(), and PathScripts.PathSetupSheetGui.OpTaskPanel.updateData().
PathScripts.PathOp.ObjectOp.radius |
Referenced by PathScripts.PathPocketBase.ObjectPocket.areaOpAreaParams(), PathScripts.PathProfile.ObjectProfile.areaOpAreaParams(), PathScripts.PathPocketBase.ObjectPocket.areaOpPathParams(), PathScripts.PathAreaOp.ObjectOp.areaOpSetDefaultValues(), DraftGui.DraftToolBar.changeRadiusValue(), PathScripts.PathDressupHoldingTags.Tag.createSolidsAt(), PathScripts.PathSurface.ObjectSurface.deleteOpVariables(), PathScripts.PathWaterline.ObjectWaterline.deleteOpVariables(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathDressupAxisMap.TaskPanel.getFields(), ifc4.ifcsweptdisksolid.innerradiussize(), draftguitools.gui_snapper.Snapper.off(), PathScripts.PathSurfaceSupport.ProcessSelectedFaces.preProcessModel(), DraftGui.DraftToolBar.reset_ui_values(), draftguitools.gui_snapper.Snapper.showradius(), draftguitools.gui_snapper.Snapper.snapToCrossExtensions(), draftguitools.gui_snapper.Snapper.snapToExtensions(), draftguitools.gui_snapper.Snapper.snapToGrid(), draftguitools.gui_snapper.Snapper.snapToHold(), draftguitools.gui_snapper.Snapper.snapToPolar(), PathScripts.PathDressupAxisMap.TaskPanel.updateUI(), DraftGui.DraftToolBar.validatePoint(), automotive_design.right_circular_cone.wr1(), automotive_design.conical_surface.wr1(), config_control_design.conical_surface.wr1(), automotive_design.swept_disk_solid.wr2(), and ifc2x3.ifcsweptdisksolid.wr2().
PathScripts.PathOp.ObjectOp.stock |
PathScripts.PathOp.ObjectOp.tool |
Referenced by PathScripts.PathToolBitEdit.ToolBitEditor.accept(), PathScripts.PathToolEdit.ToolEditor.accept(), PathScripts.PathDrilling.ObjectDrilling.circularHoleExecute(), PathScripts.PathThreadMilling.ObjectThreadMilling.circularHoleExecute(), PathScripts.PathToolLibraryManager.FreeCADTooltableHandler.endElement(), PathScripts.PathToolLibraryManager.HeeksTooltableHandler.endElement(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathThreadMilling.ObjectThreadMilling.executeThreadMill(), PathScripts.PathSurfaceSupport.OCL_Tool.getOclTool(), PathScripts.PathInspect.GCodeEditorDialog.highlightpath(), PathScripts.PathSimulatorGui.PathSimulation.InvalidOperation(), PathScripts.PathSimulatorGui.PathSimulation.PerformCutBoolean(), PathScripts.PathToolBitEdit.ToolBitEditor.reject(), PathScripts.PathToolEdit.ToolEditor.reject(), PathScripts.PathToolBitEdit.ToolBitEditor.selectShape(), PathScripts.PathToolLibraryManager.FreeCADTooltableHandler.startElement(), PathScripts.PathToolLibraryManager.HeeksTooltableHandler.startElement(), PathScripts.PathThreadMilling.ObjectThreadMilling.threadPassRadii(), PathScripts.PathToolBitEdit.ToolBitEditor.updateTool(), PathScripts.PathToolEdit.ToolEditor.updateTool(), PathScripts.PathToolEdit.ToolEditor.updateToolType(), PathScripts.PathToolBitEdit.ToolBitEditor.updateUI(), PathScripts.PathToolEdit.ToolEditor.updateUI(), and PathScripts.PathSurfaceSupport.OCL_Tool.useTiltCutter().
PathScripts.PathOp.ObjectOp.vertFeed |
Referenced by PathScripts.PathAreaOp.ObjectOp.areaOpSetDefaultValues(), PathScripts.PathEngraveBase.ObjectOp.buildpathocc(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathSurface.ObjectSurface.holdStopCmds(), PathScripts.PathToolControllerGui.ToolControllerEditor.updateToolController(), and PathScripts.PathToolControllerGui.ToolControllerEditor.updateUi().
PathScripts.PathOp.ObjectOp.vertRapid |
Referenced by PathScripts.PathEngraveBase.ObjectOp.buildpathocc(), PathScripts.PathOp.ObjectOp.execute(), PathScripts.PathThreadMilling.ObjectThreadMilling.executeThreadMill(), PathScripts.PathSurface.ObjectSurface.holdStopCmds(), PathScripts.PathEngrave.ObjectEngrave.opExecute(), PathScripts.PathToolControllerGui.ToolControllerEditor.updateToolController(), and PathScripts.PathToolControllerGui.ToolControllerEditor.updateUi().