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, 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

◆ points

◆ tracker


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