Public Member Functions | |
def | action (self, arg) |
def | Activated (self) |
def | drawUpdate (self, point) |
def | finish (self, closed=False, cont=False) |
def | GetResources (self) |
def | undolast (self) |
def | updateShape (self, pts) |
Public Member Functions inherited from draftguitools.gui_lines.Line | |
def | Activated (self, name=translate("draft", "Line")) |
def | drawSegment (self, point) |
def | numericInput (self, numx, numy, numz) |
def | orientWP (self) |
def | removeTemporaryObject (self) |
def | wipe (self) |
Public Member Functions inherited from draftguitools.gui_base_original.Creator | |
def | Activated (self, name="None", noplanesetup=False) |
Public Member Functions inherited from draftguitools.gui_base_original.DraftTool | |
def | Activated (self, name="None", noplanesetup=False, is_subtool=False) |
def | commit (self, name, func) |
def | finish (self, close=False) |
def | getStrings (self, addrot=None) |
def | IsActive (self) |
Public Attributes | |
bezcurvetrack | |
degree | |
node | |
pos | |
Public Attributes inherited from draftguitools.gui_lines.Line | |
call | |
featureName | |
isWire | |
node | |
obj | |
oldWP | |
point | |
pos | |
Public Attributes inherited from draftguitools.gui_base_original.Creator | |
support | |
Public Attributes inherited from draftguitools.gui_base_original.DraftTool | |
call | |
commitList | |
constrain | |
doc | |
extendedCopy | |
featureName | |
node | |
obj | |
planetrack | |
point | |
pos | |
support | |
ui | |
view | |
Detailed Description
Gui command for the 3rd degree Bezier Curve tool.
Member Function Documentation
◆ action()
def draftguitools.gui_beziers.CubicBezCurve.action | ( | self, | |
arg | |||
) |
Handle the 3D scene events. This is installed as an EventCallback in the Inventor view by the `Activated` method of the parent class. Parameters ---------- arg: dict Dictionary with strings that indicates the type of event received from the 3D view.
Reimplemented from draftguitools.gui_lines.Line.
References draftguitools.gui_beziers.BezCurve.bezcurvetrack, draftguitools.gui_beziers.CubicBezCurve.bezcurvetrack, SplineData.degree, draftguitools.gui_beziers.BezCurve.degree, draftguitools.gui_beziers.CubicBezCurve.degree, zipios::GZIPOutputStreambuf.finish(), zipios::GZIPOutputStream.finish(), Gui::SoFCDB.finish(), zipios::ZipOutputStreambuf.finish(), Gui::SoFCBackgroundGradient.finish(), Gui::SoFCColorLegend.finish(), zipios::ZipOutputStream.finish(), Gui::SoFCColorGradient.finish(), Gui::SoFCColorBarBase.finish(), Gui::SoFCHighlightAction.finish(), Gui::SoFCUnifiedSelection.finish(), Gui::SoFCSelection.finish(), Gui::SoFCSelectionAction.finish(), draftguitools.gui_arcs.Arc.finish(), Gui::SoFCBoundingBox.finish(), Gui::SoFCEnableSelectionAction.finish(), Gui::SoSkipBoundingGroup.finish(), Gui::SoFCEnableHighlightAction.finish(), Gui::SoFCColorBar.finish(), Gui::SoFCPathAnnotation.finish(), draftguitools.gui_base_original.DraftTool.finish(), Gui::SoFCSelectionColorAction.finish(), Gui::SoFCSeparator.finish(), Gui::SoFCHighlightColorAction.finish(), draftguitools.gui_base.GuiCommandBase.finish(), Gui::SoFCSelectionRoot.finish(), Gui::SoFCDocumentAction.finish(), Gui::ManualAlignment.finish(), Gui::SoFCDocumentObjectAction.finish(), Gui::SoUpdateVBOAction.finish(), DraftGui.DraftToolBar.finish(), ifc4.ifcworktime.finish, Gui::Dialog::Clipping::Private.node, draftguitools.gui_base_original.DraftTool.node, Gui::AxisOrigin.node, uvPtStruct.node, StdMeshers_Quadrangle_2D::ForcedPoint.node, draftguitools.gui_arcs.Arc.node, Gui::PickedPoint.point, FaceQuadStruct::Side::Contact.point, Gui::DAG::VertexProperty.point, draftguitools.gui_base_original.DraftTool.point, draftguitools.gui_arcs.Arc.point, Gui::DockWindowItem.pos, KwdSct.pos, GmfMshSct.pos, SoVectorizeText.pos, Gui::TaskView::TaskDialog.pos, SoVectorizeImage.pos, draftguitools.gui_base_original.DraftTool.pos, Gui::ToolTip.pos, Py::MapBase< T >::iterator.pos, and Py::MapBase< T >::const_iterator.pos.
◆ Activated()
def draftguitools.gui_beziers.CubicBezCurve.Activated | ( | self | ) |
Execute when the command is called. Activate the specific BezCurve tracker.
References Gui::GraphvizView.doc, draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.doc, draftguitools.gui_base.GuiCommandSimplest.doc, ExpressionCompleterModel::Info.doc, App::RelabelDocumentExpressionVisitor.doc, draftguitools.gui_base_original.DraftTool.doc, App::DynamicProperty::PropData.doc, draftguitools.gui_base.GuiCommandBase.doc, App::LinkBaseExtension::PropInfo.doc, ItemInfo.doc, ItemInfo2.doc, and importIFClegacy.IfcEntity.doc.
◆ drawUpdate()
def draftguitools.gui_beziers.CubicBezCurve.drawUpdate | ( | self, | |
point | |||
) |
Create shape for display during creation process.
References draftguitools.gui_beziers.BezCurve.bezcurvetrack, draftguitools.gui_beziers.CubicBezCurve.bezcurvetrack, SplineData.degree, draftguitools.gui_beziers.BezCurve.degree, draftguitools.gui_beziers.CubicBezCurve.degree, Gui::Dialog::Clipping::Private.node, draftguitools.gui_base_original.DraftTool.node, Gui::AxisOrigin.node, uvPtStruct.node, StdMeshers_Quadrangle_2D::ForcedPoint.node, draftguitools.gui_arcs.Arc.node, Gui::ActiveObjectList::ObjectInfo.obj, ExpressionCompleterModel::Info.obj, draftguitools.gui_base_original.DraftTool.obj, App::Origin::OriginExtension.obj, Base::ObjectStatusLocker< Status, Object >.obj, Info.obj, ArchProfile.ProfileTaskPanel.obj, ArchSchedule.ArchScheduleTaskPanel.obj, ArchMaterial._ArchMaterialTaskPanel.obj, ArchReference.ArchReferenceTaskPanel.obj, ArchAxis._AxisTaskPanel.obj, ArchMaterial._ArchMultiMaterialTaskPanel.obj, ArchRoof._RoofTaskPanel.obj, ArchAxis.AxisSystemTaskPanel.obj, UpdateLabelExpressionVisitor.obj, ArchWindow._ArchWindowTaskPanel.obj, ArchSectionPlane.SectionPlaneTaskPanel.obj, ArchAxis.ArchGridTaskPanel.obj, ArchPanel.SheetTaskPanel.obj, ItemInfo.obj, ItemInfo2.obj, ArchComponent.ComponentTaskPanel.obj, DraftGui.FacebinderTaskPanel.obj, draftguitools.gui_base_original.DraftTool.planetrack, draftguitools.gui_base.GuiCommandBase.planetrack, draftguitools.gui_beziers.BezCurve.updateShape(), and draftguitools.gui_beziers.CubicBezCurve.updateShape().
◆ finish()
def draftguitools.gui_beziers.CubicBezCurve.finish | ( | self, | |
closed = False , |
|||
cont = False |
|||
) |
Terminate the operation and close the curve if asked. Parameters ---------- closed: bool, optional Close the line if `True`.
Reimplemented from draftguitools.gui_lines.Line.
References ArchSchedule.CommandArchSchedule.Activated(), AddonManager.CommandAddonManager.Activated(), draftguitools.gui_arcs.Arc.Activated(), draftguitools.gui_array_simple.Array.Activated(), draftguitools.gui_base_original.DraftTool.Activated(), ArchCutPlane._CommandCutLine.Activated(), ArchFrame._CommandFrame.Activated(), ArchTruss.CommandArchTruss.Activated(), draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.Activated(), draftguitools.gui_base.GuiCommandSimplest.Activated(), ArchCutPlane._CommandCutPlane.Activated(), ArchProject._CommandProject.Activated(), ArchCurtainWall.CommandArchCurtainWall.Activated(), ArchMaterial._CommandArchMaterial.Activated(), ArchRebar._CommandRebar.Activated(), ArchPipe._CommandPipe.Activated(), ArchAxis._CommandAxis.Activated(), ArchFloor._CommandFloor.Activated(), ArchProfile.Arch_Profile.Activated(), draftguitools.gui_array_simple.LinkArray.Activated(), ArchRoof._CommandRoof.Activated(), ArchAxis._CommandAxisSystem.Activated(), ArchMaterial._CommandArchMultiMaterial.Activated(), InitGui.ArchWorkbench.Activated(), ArchPipe._CommandPipeConnector.Activated(), ArchPanel.CommandPanel.Activated(), ArchWindow._CommandWindow.Activated(), ArchEquipment._CommandEquipment.Activated(), ArchAxis.CommandArchGrid.Activated(), ArchStructure._CommandStructure.Activated(), ArchStairs._CommandStairs.Activated(), ArchBuilding._CommandBuilding.Activated(), ArchEquipment._Command3Views.Activated(), ArchSpace._CommandSpace.Activated(), ArchWall._CommandWall.Activated(), ArchBuildingPart.CommandBuildingPart.Activated(), ArchPanel.CommandPanelCut.Activated(), ArchFence._CommandFence.Activated(), ArchPanel.CommandPanelSheet.Activated(), draftguitools.gui_arcs.Arc_3Points.Activated(), ArchSite._CommandSite.Activated(), ArchWall._CommandMergeWalls.Activated(), ArchReference.ArchReferenceCommand.Activated(), ArchSectionPlane._CommandSectionPlane.Activated(), ArchCommands._CommandAdd.Activated(), ArchCommands._CommandRemove.Activated(), ArchCommands._CommandSplitMesh.Activated(), ArchCommands._CommandMeshToShape.Activated(), ArchCommands._CommandSelectNonSolidMeshes.Activated(), ArchCommands._CommandRemoveShape.Activated(), ArchPanel.CommandNest.Activated(), ArchCommands._CommandCloseHoles.Activated(), ArchCommands._CommandCheck.Activated(), ArchCommands._CommandSurvey.Activated(), ArchCommands._ToggleIfcBrepFlag.Activated(), ArchCommands._CommandComponent.Activated(), ArchCommands._CommandCloneComponent.Activated(), ArchCommands._CommandIfcSpreadsheet.Activated(), ArchCommands._ToggleSubs.Activated(), DraftGui.DraftToolBar.Activated(), draftguitools.gui_beziers.BezCurve.bezcurvetrack, draftguitools.gui_beziers.CubicBezCurve.bezcurvetrack, Gui::MacroManager.commit(), draftguitools.gui_base_original.DraftTool.commit(), draftguitools.gui_base.GuiCommandBase.commit(), draftguitools.gui_beziers.BezCurve.degree, SplineData.degree, draftguitools.gui_beziers.CubicBezCurve.degree, Gui::GraphvizView.doc, draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.doc, draftguitools.gui_base.GuiCommandSimplest.doc, ExpressionCompleterModel::Info.doc, App::RelabelDocumentExpressionVisitor.doc, draftguitools.gui_base_original.DraftTool.doc, App::DynamicProperty::PropData.doc, draftguitools.gui_base.GuiCommandBase.doc, App::LinkBaseExtension::PropInfo.doc, ItemInfo.doc, ItemInfo2.doc, importIFClegacy.IfcEntity.doc, Base::ParameterGrpPy.getStrings(), draftguitools.gui_base_original.DraftTool.getStrings(), Gui::Dialog::Clipping::Private.node, draftguitools.gui_base_original.DraftTool.node, Gui::AxisOrigin.node, uvPtStruct.node, StdMeshers_Quadrangle_2D::ForcedPoint.node, draftguitools.gui_arcs.Arc.node, Gui::ActiveObjectList::ObjectInfo.obj, ExpressionCompleterModel::Info.obj, draftguitools.gui_base_original.DraftTool.obj, App::Origin::OriginExtension.obj, Base::ObjectStatusLocker< Status, Object >.obj, Info.obj, ArchProfile.ProfileTaskPanel.obj, ArchSchedule.ArchScheduleTaskPanel.obj, ArchMaterial._ArchMaterialTaskPanel.obj, ArchReference.ArchReferenceTaskPanel.obj, ArchAxis._AxisTaskPanel.obj, ArchMaterial._ArchMultiMaterialTaskPanel.obj, ArchRoof._RoofTaskPanel.obj, ArchAxis.AxisSystemTaskPanel.obj, UpdateLabelExpressionVisitor.obj, ArchWindow._ArchWindowTaskPanel.obj, ArchSectionPlane.SectionPlaneTaskPanel.obj, ArchAxis.ArchGridTaskPanel.obj, ArchPanel.SheetTaskPanel.obj, ItemInfo.obj, ItemInfo2.obj, ArchComponent.ComponentTaskPanel.obj, DraftGui.FacebinderTaskPanel.obj, test.ui, Gui::Dialog::Clipping::Private.ui, Gui::Dialog::DlgAddProperty.ui, Gui::TaskBoxPosition.ui, Gui::Dialog::DlgProjectInformationImp.ui, Gui::Dialog::DlgGeneralImp.ui, Gui::Dialog::DlgSettings3DViewImp.ui, Gui::ElementColors::Private.ui, Gui::Dialog::TextureMapping.ui, Gui::Dialog::DlgSettingsNavigation.ui, Gui::Dialog::DlgCustomCommandsImp.ui, Gui::Dialog::DlgSettingsEditorImp.ui, Gui::Dialog::DlgDisplayPropertiesImp::Private.ui, Gui::Dialog::DlgParameterFind.ui, Gui::TaskBoxAngle.ui, Gui::Dialog::DlgCustomKeyboardImp.ui, Gui::Dialog::DlgWorkbenchesImp.ui, Gui::Dialog::DlgMacroExecuteImp.ui, Gui::TaskView::TaskAppearance.ui, Gui::Dialog::DlgMaterialPropertiesImp.ui, Gui::Dialog::DlgInputDialogImp.ui, Gui::Dialog::DlgExpressionInput.ui, Gui::Dialog::DlgMacroRecordImp.ui, Gui::Dialog::DemoMode.ui, Gui::Dialog::DlgSettingsColorGradientImp.ui, Gui::DlgObjectSelection.ui, Gui::Dialog::DlgCustomizeSpNavSettings.ui, Gui::Dialog::DlgProjectUtility.ui, Gui::Dialog::DlgInspector.ui, Gui::Dialog::DlgActivateWindowImp.ui, Gui::Dialog::DlgCustomActionsImp.ui, Gui::Dialog::DlgReportViewImp.ui, Gui::Dialog::DlgSettingsViewColor.ui, Gui::Dialog::DlgSettingsMacroImp.ui, Gui::Dialog::Placement.ui, Gui::Dialog::DlgSettingsUnitsImp.ui, Gui::Dialog::DownloadManager.ui, Gui::Dialog::DlgSettingsDocumentImp.ui, Gui::TaskView::TaskSelectLinkProperty.ui, Gui::Dialog::DlgOnlineHelpImp.ui, Gui::Dialog::DlgPropertyLink.ui, Gui::Dialog::DlgRunExternal.ui, Gui::Dialog::DlgUnitsCalculator.ui, Gui::Dialog::IconDialog.ui, Gui::Dialog::DlgParameterImp.ui, draftguitools.gui_base_original.DraftTool.ui, Gui::Dialog::DlgCustomToolbars.ui, Gui::Dialog::DlgSettingsImageImp.ui, Gui::Dialog::DlgCheckableMessageBoxPrivate.ui, Gui::Dialog::AboutDialog.ui, Gui::Dialog::Transform.ui, Gui::Dialog::DlgPreferencesImp.ui, Gui::Dialog::DocumentRecoveryPrivate.ui, Gui::CheckListDialog.ui, Gui::LocationDialogImp< Ui >.ui, Gui::LocationImpUi< Ui >.ui, and Gui::LocationDialogUiImp.ui.
Referenced by drafttaskpanels.task_polararray.TaskPanelPolarArray.accept(), drafttaskpanels.task_orthoarray.TaskPanelOrthoArray.accept(), drafttaskpanels.task_circulararray.TaskPanelCircularArray.accept(), draftguitools.gui_selectplane.Draft_SelectPlane.action(), draftguitools.gui_selectplane.Draft_SelectPlane.checkSelection(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickAlign(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickAuto(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickCenter(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickFront(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickMove(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickPrevious(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickSide(), draftguitools.gui_selectplane.Draft_SelectPlane.onClickTop(), draftguitools.gui_selectplane.Draft_SelectPlane.reject(), drafttaskpanels.task_orthoarray.TaskPanelOrthoArray.reject(), drafttaskpanels.task_polararray.TaskPanelPolarArray.reject(), and drafttaskpanels.task_circulararray.TaskPanelCircularArray.reject().
◆ GetResources()
def draftguitools.gui_beziers.CubicBezCurve.GetResources | ( | self | ) |
Set icon, menu and tooltip.
Reimplemented from draftguitools.gui_lines.Line.
◆ undolast()
def draftguitools.gui_beziers.CubicBezCurve.undolast | ( | self | ) |
Undo last line segment.
Reimplemented from draftguitools.gui_lines.Line.
References draftguitools.gui_beziers.BezCurve.bezcurvetrack, draftguitools.gui_beziers.CubicBezCurve.bezcurvetrack, SplineData.degree, draftguitools.gui_beziers.BezCurve.degree, draftguitools.gui_beziers.CubicBezCurve.degree, Gui::Dialog::Clipping::Private.node, draftguitools.gui_base_original.DraftTool.node, Gui::AxisOrigin.node, uvPtStruct.node, StdMeshers_Quadrangle_2D::ForcedPoint.node, draftguitools.gui_arcs.Arc.node, Gui::ActiveObjectList::ObjectInfo.obj, ExpressionCompleterModel::Info.obj, draftguitools.gui_base_original.DraftTool.obj, App::Origin::OriginExtension.obj, Base::ObjectStatusLocker< Status, Object >.obj, Info.obj, ArchProfile.ProfileTaskPanel.obj, ArchSchedule.ArchScheduleTaskPanel.obj, ArchMaterial._ArchMaterialTaskPanel.obj, ArchReference.ArchReferenceTaskPanel.obj, ArchAxis._AxisTaskPanel.obj, ArchMaterial._ArchMultiMaterialTaskPanel.obj, ArchRoof._RoofTaskPanel.obj, ArchAxis.AxisSystemTaskPanel.obj, UpdateLabelExpressionVisitor.obj, ArchWindow._ArchWindowTaskPanel.obj, ArchSectionPlane.SectionPlaneTaskPanel.obj, ArchAxis.ArchGridTaskPanel.obj, ArchPanel.SheetTaskPanel.obj, ItemInfo.obj, ItemInfo2.obj, ArchComponent.ComponentTaskPanel.obj, DraftGui.FacebinderTaskPanel.obj, draftguitools.gui_beziers.BezCurve.updateShape(), and draftguitools.gui_beziers.CubicBezCurve.updateShape().
◆ updateShape()
def draftguitools.gui_beziers.CubicBezCurve.updateShape | ( | self, | |
pts | |||
) |
Create shape for display during creation process.
References SplineData.degree, draftguitools.gui_beziers.BezCurve.degree, and draftguitools.gui_beziers.CubicBezCurve.degree.
Referenced by draftguitools.gui_beziers.CubicBezCurve.drawUpdate(), PathScripts.PathToolBitEdit.ToolBitEditor.selectShape(), PathScripts.PathToolBitEdit.ToolBitEditor.setupUI(), and draftguitools.gui_beziers.CubicBezCurve.undolast().
Member Data Documentation
◆ bezcurvetrack
draftguitools.gui_beziers.CubicBezCurve.bezcurvetrack |
◆ degree
draftguitools.gui_beziers.CubicBezCurve.degree |
Referenced by draftguitools.gui_beziers.CubicBezCurve.action(), ifc4.ifcbsplinecurvewithknots.consistentbspline(), draftguitools.gui_beziers.CubicBezCurve.drawUpdate(), draftguitools.gui_beziers.CubicBezCurve.finish(), draftguitools.gui_trackers.bezcurveTracker.recompute(), draftguitools.gui_beziers.CubicBezCurve.undolast(), draftguitools.gui_trackers.bezcurveTracker.update(), draftguitools.gui_beziers.CubicBezCurve.updateShape(), config_control_design.b_spline_curve_with_knots.wr1(), and automotive_design.b_spline_curve_with_knots.wr1().
◆ node
draftguitools.gui_beziers.CubicBezCurve.node |
Referenced by draftviewproviders.view_dimension.ViewProviderLinearDimension.draw_dim_arrows(), draftviewproviders.view_dimension.ViewProviderAngularDimension.draw_dim_arrows(), draftviewproviders.view_dimension.ViewProviderLinearDimension.draw_dim_overshoot(), draftviewproviders.view_dimension.ViewProviderLinearDimension.draw_ext_overshoot(), draftviewproviders.view_dimension.ViewProviderLinearDimension.remove_dim_arrows(), draftviewproviders.view_dimension.ViewProviderAngularDimension.remove_dim_arrows(), draftviewproviders.view_dimension.ViewProviderLinearDimension.remove_dim_overshoot(), and draftviewproviders.view_dimension.ViewProviderLinearDimension.remove_ext_overshoot().
◆ pos
draftguitools.gui_beziers.CubicBezCurve.pos |
Referenced by Mod.PartDesign.fcgear.svggear.SVGWireBuilder.arc(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder.arc(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder.arc(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder.curve(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder.curve(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder.curve(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder.line(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder.line(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder.line(), Mod.PartDesign.fcgear.svggear.SVGWireBuilder.move(), Mod.PartDesign.fcsprocket.fcsprocket.FCWireBuilder.move(), Mod.PartDesign.fcgear.fcgear.FCWireBuilder.move(), and draftguitools.gui_trackers.boxTracker.update().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_beziers.py