nil |
nil |
(car l))) |
(car l))) |
|
|
(defun draw-skelton-win (win prim (mode 'black)) |
(defun draw-skeleton-win (win prim (mode 'black)) |
(if (eq (car prim) 'joint) |
(if (eq (car prim) 'joint) |
(draw-jointed-primitive-win win prim) |
(draw-jointed-primitive-win win prim) |
(draw-simple-skelton-win win prim mode))) |
(draw-simple-skeleton-win win prim mode))) |
|
|
(defun draw-simple-skelton-win (win prim (mode 'black)) |
(defun draw-simple-skeleton-win (win prim (mode 'black)) |
(let ((points (get-points prim)) |
(let ((points (get-points prim)) |
(lines (get-lines prim))) |
(lines (get-lines prim))) |
(mapcar points |
(mapcar points |
(mapcar lines |
(mapcar lines |
#'(lambda (l) |
#'(lambda (l) |
(let ((elmname (first l))) |
(let ((elmname (first l))) |
(let ((draw-func (get elmname 'skelton-edit-draw-optional))) |
(let ((draw-func (get elmname 'skeleton-edit-draw-optional))) |
(if draw-func |
(if draw-func |
(funcall draw-func win l points)))))) |
(funcall draw-func win l points)))))) |
|
|
nil |
nil |
(third l))) |
(third l))) |
|
|
(defun move-skelton-point (win code x y prim) |
(defun move-skeleton-point (win code x y prim) |
(lets ((ret nil) |
(lets ((ret nil) |
(points (get-points prim)) |
(points (get-points prim)) |
(lines (get-lines prim)) |
(lines (get-lines prim)) |
(setq ret (cons points (cons lines aux-info))) |
(setq ret (cons points (cons lines aux-info))) |
(clear-win win) |
(clear-win win) |
(if grid (grid-win win)) |
(if grid (grid-win win)) |
(draw-skelton-win win ret) |
(draw-skeleton-win win ret) |
(redraw-win win) |
(redraw-win win) |
ret)) |
ret)) |