Public Member Functions | |
def | arcInvert (self, obj) |
def | get_edit_obj_context_menu (self, edit_command, obj, position) |
def | get_edit_point_context_menu (self, edit_command, 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 | handle_move_arc (self, edit_command, obj, node_idx) |
def | handle_set_first_angle (self, edit_command, obj, node_idx) |
def | handle_set_last_angle (self, edit_command, obj, node_idx) |
def | handle_set_radius (self, edit_command, obj, node_idx) |
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_edit_obj_context_menu (self, edit_command, obj, position) |
def | get_edit_point_context_menu (self, edit_command, obj, node_idx) |
def | get_edit_points (self, obj) |
def | get_object_style (self, obj) |
def | init_preview_object (self, obj) |
def | restore_object_style (self, obj, modes) |
def | set_object_editing_style (self, obj) |
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) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.arcInvert | ( | self, | |
obj | |||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.get_edit_obj_context_menu | ( | self, | |
edit_command, | |||
obj, | |||
position | |||
) |
Get the context menu associated to edited object (user is over the object) Return a list of tuples containing menu labels and associated functions: return [ ("action label", lambda: self.handle_action_label(edit_command, obj, position)), ] Parameters: edit_command: running Draft_Edit command obj: the edited object position: position of the cursor on the screen (x, y)
Reimplemented from draftguitools.gui_edit_base_object.GuiTools.
References draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.arcInvert().
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.get_edit_point_context_menu | ( | self, | |
edit_command, | |||
obj, | |||
node_idx | |||
) |
Get the context menu associated to edit points (user is over an editpoint) Return a list of tuples containing menu labels and associated functions: return [ ("action label", lambda: self.handle_action_label(edit_command, obj, node_idx)), ] Parameters: edit_command: running Draft_Edit command obj: the edited object node_idx: number of the edited node
Reimplemented from draftguitools.gui_edit_base_object.GuiTools.
References draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_move_arc(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_first_angle(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_last_angle(), and draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_radius().
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.
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcEnd | ( | self, | |
obj, | |||
global_placement = False |
|||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcMid | ( | self, | |
obj, | |||
global_placement = False |
|||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcStart | ( | self, | |
obj, | |||
global_placement = False |
|||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_move_arc | ( | self, | |
edit_command, | |||
obj, | |||
node_idx | |||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_first_angle | ( | self, | |
edit_command, | |||
obj, | |||
node_idx | |||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_last_angle | ( | self, | |
edit_command, | |||
obj, | |||
node_idx | |||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.handle_set_radius | ( | self, | |
edit_command, | |||
obj, | |||
node_idx | |||
) |
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.init_preview_object | ( | self, | |
obj | |||
) |
Reimplemented from draftguitools.gui_edit_base_object.GuiTools.
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.pointOnCircle | ( | self, | |
obj, | |||
angle, | |||
global_placement = False |
|||
) |
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().
def draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.update_preview_object | ( | self, | |
edit_command, | |||
obj, | |||
node_idx, | |||
v | |||
) |
Reimplemented from draftguitools.gui_edit_base_object.GuiTools.
References draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcEnd(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcMid(), draftguitools.gui_edit_draft_objects.DraftCircleGuiTools.getArcStart(), and DraftVecUtils.project().