draftguitools.gui_arcs.Arc_3Points Class Reference

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()

◆ 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, ArchCurtainWall.CommandArchCurtainWall.points, ArchPanel.CommandPanel.points, ArchStructure._CommandStructure.points, ArchTruss.CommandArchTruss.points, ArchWall._CommandWall.points, draftguitools.gui_arcs.Arc_3Points.points, draftguitools.gui_trackers.bsplineTracker.points, draftguitools.gui_trackers.bezcurveTracker.points, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.polyline.points, automotive_design.polyline.points, config_control_design.polyline.points, ifc2x3.ifcpolyline.points, ifc4.ifcpolyline.points, Inspection::InspectActualShape.points, MeshGui::FitParameter::Points.points, MeshPart::MeshProjection::PolyLine.points, PartGui::CircleFromThreePoints.points, PartGui::ArcEngine.points, WireInfo.points, Path::Voronoi::diagram_type.points, VisualPathSegmentVisitor.points, Triangle3D.points, Points::Reader.points, Points::Writer.points, shipHydrostatics.PlotAux.Plot.points, TechDraw::Generic.points, ArchPanel.CommandPanel.tracker, ArchStructure._CommandStructure.tracker, ArchWall._CommandWall.tracker, ArchWindow._CommandWindow.tracker, draftguitools.gui_arcs.Arc_3Points.tracker, and draftguitools.gui_snapper.Snapper.tracker.

Referenced by draftguitools.gui_arcs.Arc_3Points.getPoint(), and draftguitools.gui_arcs.Arc.numericRadius().

◆ 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 App::DynamicProperty::PropData.doc, App::RelabelDocumentExpressionVisitor.doc, App::LinkBaseExtension::PropInfo.doc, Py::PythonType.doc(), ExpressionCompleterModel::Info.doc, Gui::GraphvizView.doc, ItemInfo.doc, ItemInfo2.doc, importIFClegacy.IfcEntity.doc, draftguitools.gui_annotationstyleeditor.AnnotationStyleEditor.doc, draftguitools.gui_base.GuiCommandSimplest.doc, draftguitools.gui_base.GuiCommandBase.doc, draftguitools.gui_base_original.DraftTool.doc, drafttests.test_airfoildat.DraftAirfoilDAT.doc, drafttests.test_creation.DraftCreation.doc, drafttests.test_dwg.DraftDWG.doc, drafttests.test_dxf.DraftDXF.doc, drafttests.test_modification.DraftModification.doc, drafttests.test_oca.DraftOCA.doc, drafttests.test_pivy.DraftPivy.doc, drafttests.test_svg.DraftSVG.doc, WorkingPlane.Plane.doc, Import::ImportOCAF.doc, Import::ImportXCAF.doc, Import::ImportOCAFAssembly.doc, MeshPartGui::Mesh2ShapeGmsh::Private.doc, PartGui::FaceColors::Private.doc, PartDesignGui::ComboLinks.doc, Mod.PartDesign.WizardShaft.Shaft.Shaft.doc, Mod.PartDesign.WizardShaft.WizardShaft.TaskWizardShaft.doc, PathTests.TestPathHelix.TestPathHelix.doc, PathTests.TestPathPost.PathPostTestCases.doc, PathTests.TestPathPropertyBag.TestPathPropertyBag.doc, PathTests.TestPathSetupSheet.TestPathSetupSheet.doc, PathTests.TestPathStock.TestPathStock.doc, PathTests.TestPathToolController.TestPathToolController.doc, PathTests.TestPathUtil.TestPathUtil.doc, Sandbox::CustomAddObjectEvent.doc, Sandbox::CustomRemoveObjectEvent.doc, Sandbox::CustomRecomputeEvent.doc, Sandbox::DocumentSaverThread.doc, Mod.Show.SceneDetail.SceneDetail.doc, Mod.Show.SceneDetails.Camera.Camera.doc, Mod.Show.SceneDetails.ClipPlane.ClipPlane.doc, Mod.Show.SceneDetails.ObjectClipPlane.ObjectClipPlane.doc, Mod.Show.SceneDetails.Pickability.Pickability.doc, Mod.Show.SceneDetails.VProperty.VProperty.doc, TestSpreadsheet.SpreadsheetCases.doc, Commands.TemplatePyMod_Cmd2.doc, draftguitools.gui_arcs.Arc.drawArc(), draftguitools.gui_arcs.Arc_3Points.drawArc(), PartDesign::Point.getPoint(), Points::PointKernel.getPoint(), Gui::View3DInventorPy.getPoint(), Gui::View3DInventorViewerPy.getPoint(), SMESH_MAT2d::Branch.getPoint(), Sketcher::Sketch.getPoint(), Sketcher::SketchObject.getPoint(), Base::BoundBoxPy.getPoint(), Sketcher::SketchObjectPy.getPoint(), draftguitools.gui_snapper.Snapper.getPoint(), draftguitools.gui_arcs.Arc_3Points.getPoint(), ArchCurtainWall.CommandArchCurtainWall.getPoint(), ArchPanel.CommandPanel.getPoint(), ArchProfile.Arch_Profile.getPoint(), ArchStructure._CommandStructure.getPoint(), ArchTruss.CommandArchTruss.getPoint(), ArchWall._CommandWall.getPoint(), ArchWindow._CommandWindow.getPoint(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel.getPoint, PathScripts.PathGetPoint.TaskPanel.getPoint(), SMESH_MAT2d::Boundary.getPoint(), Inspection::InspectActualMesh.getPoint(), Inspection::InspectActualPoints.getPoint(), Inspection::InspectActualShape.getPoint(), Mesh::MeshObject.getPoint(), Inspection::InspectActualGeometry.getPoint(), Part::TopoShapeVertexPy.getPoint(), TechDraw::CosmeticVertexPy.getPoint(), Part::GeomPoint.getPoint(), Part::Geom2dPoint.getPoint(), PathScripts.PathOpGui.TaskPanelBaseLocationPage.getPoint, Data::ComplexGeoData::Domain.points, ArchCurtainWall.CommandArchCurtainWall.points, ArchPanel.CommandPanel.points, ArchStructure._CommandStructure.points, ArchTruss.CommandArchTruss.points, ArchWall._CommandWall.points, draftguitools.gui_arcs.Arc_3Points.points, draftguitools.gui_trackers.bsplineTracker.points, draftguitools.gui_trackers.bezcurveTracker.points, ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf.polyline.points, automotive_design.polyline.points, config_control_design.polyline.points, ifc2x3.ifcpolyline.points, ifc4.ifcpolyline.points, Inspection::InspectActualShape.points, MeshGui::FitParameter::Points.points, MeshPart::MeshProjection::PolyLine.points, PartGui::CircleFromThreePoints.points, PartGui::ArcEngine.points, WireInfo.points, Path::Voronoi::diagram_type.points, VisualPathSegmentVisitor.points, Triangle3D.points, Points::Reader.points, Points::Writer.points, shipHydrostatics.PlotAux.Plot.points, TechDraw::Generic.points, ArchPanel.CommandPanel.tracker, ArchStructure._CommandStructure.tracker, ArchWall._CommandWall.tracker, ArchWindow._CommandWindow.tracker, draftguitools.gui_arcs.Arc_3Points.tracker, and draftguitools.gui_snapper.Snapper.tracker.

Referenced by PathScripts.PathOpGui.TaskPanelBaseLocationPage.addLocation(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel.addNewTag(), PathScripts.PathOpGui.TaskPanelBaseLocationPage.editLocation(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel.editTag(), draftguitools.gui_arcs.Arc_3Points.getPoint(), ArchCurtainWall.CommandArchCurtainWall.getPoint(), ArchTruss.CommandArchTruss.getPoint(), PathScripts.PathDressupTagGui.PathDressupTagTaskPanel.modifyStandardButtons(), and PathScripts.PathOpGui.TaskPanelBaseLocationPage.modifyStandardButtons().

◆ GetResources()

def draftguitools.gui_arcs.Arc_3Points.GetResources (   self)
Set icon, menu and tooltip.

References draftutils.translate.QT_TRANSLATE_NOOP.

Member Data Documentation

◆ normal

◆ points

◆ tracker


The documentation for this class was generated from the following file:
  • Sources/FreeCAD/src/Mod/Draft/draftguitools/gui_arcs.py