Public Member Functions | |
def | Activated (self) |
def | drawArc (self, point, info) |
def | getPoint (self, point, info) |
def | GetResources (self) |
Public Member Functions inherited from draftguitools.gui_base.GuiCommandSimplest | |
def | IsActive (self) |
Public Attributes | |
normal | |
points | |
tracker | |
Public Attributes inherited from draftguitools.gui_base.GuiCommandSimplest | |
command_name | |
doc | |
Detailed Description
GuiCommand for the Draft_Arc_3Points tool.
Member Function Documentation
◆ Activated()
def draftguitools.gui_arcs.Arc_3Points.Activated | ( | self | ) |
Execute when the command is called.
Reimplemented from draftguitools.gui_base.GuiCommandSimplest.
Referenced by draftguitools.gui_rectangles.Rectangle.finish(), draftguitools.gui_ellipses.Ellipse.finish(), draftguitools.gui_texts.Text.finish(), draftguitools.gui_polygons.Polygon.finish(), draftguitools.gui_mirror.Mirror.finish(), draftguitools.gui_move.Move.finish(), draftguitools.gui_lines.Line.finish(), draftguitools.gui_splines.BSpline.finish(), draftguitools.gui_points.Point.finish(), draftguitools.gui_beziers.BezCurve.finish(), draftguitools.gui_shapestrings.ShapeString.finish(), draftguitools.gui_rotate.Rotate.finish(), and draftguitools.gui_beziers.CubicBezCurve.finish().
◆ drawArc()
def draftguitools.gui_arcs.Arc_3Points.drawArc | ( | self, | |
point, | |||
info | |||
) |
Draw preview arc when we move the pointer in the 3D view. It uses the `gui_trackers.arcTracker.setBy3Points` method. Parameters ---------- point: Base::Vector The dynamic point passed by the callback as we move the pointer in the 3D view. info: str Some information obtained from the point by the Snapper.
References Data::ComplexGeoData::Domain.points, ArchTruss.CommandArchTruss.points, ArchCurtainWall.CommandArchCurtainWall.points, ArchPanel.CommandPanel.points, ArchStructure._CommandStructure.points, ArchWall._CommandWall.points, draftguitools.gui_arcs.Arc_3Points.points, ArchPanel.CommandPanel.tracker, ArchWindow._CommandWindow.tracker, ArchStructure._CommandStructure.tracker, ArchWall._CommandWall.tracker, and draftguitools.gui_arcs.Arc_3Points.tracker.
Referenced by draftguitools.gui_arcs.Arc_3Points.getPoint().
◆ getPoint()
def draftguitools.gui_arcs.Arc_3Points.getPoint | ( | self, | |
point, | |||
info | |||
) |
Get the point by clicking on the 3D view. Every time the user clicks on the 3D view this method is run. In this case, a point is appended to the list of points, and the tracker is updated. The object is finally created when three points are picked. Parameters ---------- point: Base::Vector The point selected in the 3D view. info: str Some information obtained about the point passed by the Snapper.
References Gui::GraphvizView.doc, draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.doc, draftguitools.gui_base.GuiCommandSimplest.doc, ExpressionCompleterModel::Info.doc, App::RelabelDocumentExpressionVisitor.doc, App::DynamicProperty::PropData.doc, App::LinkBaseExtension::PropInfo.doc, ItemInfo.doc, ItemInfo2.doc, importIFClegacy.IfcEntity.doc, draftguitools.gui_arcs.Arc.drawArc(), draftguitools.gui_arcs.Arc_3Points.drawArc(), Base::BoundBoxPy.getPoint(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel.getPoint, Gui::View3DInventorViewerPy.getPoint(), Gui::View3DInventorPy.getPoint(), ArchTruss.CommandArchTruss.getPoint(), SMESH_MAT2d::Branch.getPoint(), ArchCurtainWall.CommandArchCurtainWall.getPoint(), ArchProfile.Arch_Profile.getPoint(), SMESH_MAT2d::Boundary.getPoint(), ArchPanel.CommandPanel.getPoint(), ArchWindow._CommandWindow.getPoint(), ArchStructure._CommandStructure.getPoint(), ArchWall._CommandWall.getPoint(), draftguitools.gui_arcs.Arc_3Points.getPoint(), PathScripts.PathOpGui.TaskPanelBaseLocationPage.getPoint, Data::ComplexGeoData::Domain.points, ArchTruss.CommandArchTruss.points, ArchCurtainWall.CommandArchCurtainWall.points, ArchPanel.CommandPanel.points, ArchStructure._CommandStructure.points, ArchWall._CommandWall.points, draftguitools.gui_arcs.Arc_3Points.points, ArchPanel.CommandPanel.tracker, ArchWindow._CommandWindow.tracker, ArchStructure._CommandStructure.tracker, ArchWall._CommandWall.tracker, and draftguitools.gui_arcs.Arc_3Points.tracker.
Referenced by draftguitools.gui_arcs.Arc_3Points.getPoint().
◆ GetResources()
def draftguitools.gui_arcs.Arc_3Points.GetResources | ( | self | ) |
Set icon, menu and tooltip.
Member Data Documentation
◆ normal
draftguitools.gui_arcs.Arc_3Points.normal |
◆ points
draftguitools.gui_arcs.Arc_3Points.points |
Referenced by draftguitools.gui_arcs.Arc_3Points.drawArc(), draftguitools.gui_arcs.Arc_3Points.getPoint(), shipHydrostatics.PlotAux.Plot.plotCoeffs(), shipHydrostatics.PlotAux.Plot.plotStability(), shipHydrostatics.PlotAux.Plot.plotVolume(), draftguitools.gui_trackers.bsplineTracker.recompute(), draftguitools.gui_trackers.bezcurveTracker.recompute(), shipHydrostatics.PlotAux.Plot.spreadSheet(), draftguitools.gui_trackers.bsplineTracker.update(), draftguitools.gui_trackers.bezcurveTracker.update(), config_control_design.advanced_face.wr10(), and automotive_design.advanced_face.wr10().
◆ tracker
draftguitools.gui_arcs.Arc_3Points.tracker |
Referenced by draftguitools.gui_arcs.Arc_3Points.drawArc(), draftguitools.gui_arcs.Arc_3Points.getPoint(), draftguitools.gui_snapper.Snapper.off(), draftguitools.gui_snapper.Snapper.setTrackers(), draftguitools.gui_snapper.Snapper.snapToCrossExtensions(), draftguitools.gui_snapper.Snapper.snapToExtensions(), draftguitools.gui_snapper.Snapper.snapToGrid(), draftguitools.gui_snapper.Snapper.snapToObject(), and draftguitools.gui_snapper.Snapper.snapToPolar().
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_arcs.py