draftguitools.gui_tool_utils Namespace Reference

Functions

def format_unit (exp, unit="mm")
 
def get_point (target, args, mobile=False, sym=False, workingplane=True, noTracker=False)
 
def get_support (mouseEvent=None)
 
def has_mod (args, mod)
 
def redraw_3d_view ()
 
def select_object (arg)
 
def set_mod (args, mod, state)
 
def set_working_plane_to_object_under_cursor (mouseEvent)
 
def set_working_plane_to_selected_object ()
 

Variables

def formatUnit = format_unit
 
def getPoint = get_point
 
def getSupport = get_support
 
def hasMod = has_mod
 
list MODALT = MODS[utils.get_param("modalt", 2)]
 
list MODCONSTRAIN = MODS[utils.get_param("modconstrain", 0)]
 
list MODS = ["shift", "ctrl", "alt"]
 
list MODSNAP = MODS[utils.get_param("modsnap", 1)]
 
def redraw3DView = redraw_3d_view
 
def selectObject = select_object
 
def setMod = set_mod
 
def setWorkingPlaneToObjectUnderCursor = set_working_plane_to_object_under_cursor
 
def setWorkingPlaneToSelectedObject = set_working_plane_to_selected_object