draftguitools.gui_edit_draft_objects.DraftCircleGuiTools Class Reference

Public Member Functions

def arcInvert (self, obj)
 
def evaluate_context_menu_action (self, edit_command, obj, node_idx, action)
 
def get_edit_point_context_menu (self, obj, node_idx)
 
def get_edit_points (self, obj)
 
def getArcEnd (self, obj, global_placement=False)
 
def getArcMid (self, obj, global_placement=False)
 
def getArcStart (self, obj, global_placement=False)
 
def init_preview_object (self, obj)
 
def pointOnCircle (self, obj, angle, global_placement=False)
 
def update_object_from_edit_points (self, obj, node_idx, v, alt_edit_mode=0)
 
def update_preview_object (self, edit_command, obj, node_idx, v)
 
- Public Member Functions inherited from draftguitools.gui_edit_base_object.GuiTools
def get_object_style (self, obj)
 
def restore_object_style (self, obj, modes)
 
def set_object_editing_style (self, obj)
 

Member Function Documentation

◆ arcInvert()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.arcInvert (   self,
  obj 
)

◆ evaluate_context_menu_action()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.evaluate_context_menu_action (   self,
  edit_command,
  obj,
  node_idx,
  action 
)
 Do something when a Draft_Edit context menu action is triggered over a node.

Reimplemented from draftguitools.gui_edit_base_object.GuiTools.

◆ get_edit_point_context_menu()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.get_edit_point_context_menu (   self,
  obj,
  node_idx 
)
 Return a list of Draft_Edit context menu actions.

Reimplemented from draftguitools.gui_edit_base_object.GuiTools.

◆ get_edit_points()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.get_edit_points (   self,
  obj 
)
Return the list of edipoints for the given Draft Arc or Circle.

circle:
0 : Placement.Base or center
1 : radius

arc:
0 : Placement.Base or center
1 : first endpoint
2 : second endpoint
3 : midpoint

Reimplemented from draftguitools.gui_edit_base_object.GuiTools.

◆ getArcEnd()

◆ getArcMid()

◆ getArcStart()

◆ init_preview_object()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.init_preview_object (   self,
  obj 
)

◆ pointOnCircle()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.pointOnCircle (   self,
  obj,
  angle,
  global_placement = False 
)

◆ update_object_from_edit_points()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.update_object_from_edit_points (   self,
  obj,
  node_idx,
  v,
  alt_edit_mode = 0 
)
Update the object from modified Draft_Edit point.
No need to recompute at the end.

Parameters:
obj: the object
node_idx: number of the edited node
v: target vector of the node in object local coordinates system
alt_edit_mode: alternative edit mode to perform different operations
               (usually can be selected from the Draft_Edit context menu)
               default = 0

Reimplemented from draftguitools.gui_edit_base_object.GuiTools.

References DraftVecUtils.angle(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcEnd(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcMid(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcStart(), and DraftVecUtils.project().

◆ update_preview_object()

def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.update_preview_object (   self,
  edit_command,
  obj,
  node_idx,
  v 
)

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