[PD-cvs] pd/src desire.tk,1.1.2.600.2.180,1.1.2.600.2.181
chunlee
chunlee at users.sourceforge.net
Wed May 9 02:53:15 CEST 2007
- Previous message: [PD-cvs] externals/pidip configure.ac,1.13.2.2,1.13.2.3
- Next message: [PD-cvs] externals/pidip/doc pdp_aa-help.pd, NONE, 1.1.2.1 pdp_aging-help.pd, NONE, 1.1.2.1 pdp_ascii-help.pd, NONE, 1.1.2.1 pdp_background-help.pd, NONE, 1.1.2.1 pdp_baltan-help.pd, NONE, 1.1.2.1 pdp_binary-help.pd, NONE, 1.1.2.1 pdp_cache-help.pd, NONE, 1.1.2.1 pdp_canvas-help.pd, NONE, 1.1.2.1 pdp_capture-help.pd, NONE, 1.1.2.1 pdp_cmap-help.pd, NONE, 1.1.2.1 pdp_colorgrid-help.pd, NONE, 1.1.2.1 pdp_compose-help.pd, NONE, 1.1.2.1 pdp_cropper-help.pd, NONE, 1.1.2.1 pdp_ctrack-help.pd, NONE, 1.1.2.1 pdp_cycle-help.pd, NONE, 1.1.2.1 pdp_dice-help.pd, NONE, 1.1.2.1 pdp_dilate-help.pd, NONE, 1.1.2.1 pdp_disintegration-help.pd, NONE, 1.1.2.1 pdp_distance-help.pd, NONE, 1.1.2.1 pdp_edge-help.pd, NONE, 1.1.2.1 pdp_erode-help.pd, NONE, 1.1.2.1 pdp_fcqt-help.pd, NONE, 1.1.2.1 pdp_fdiff-help.pd, NONE, 1.1.2.1 pdp_ffmpeg~-help.pd, NONE, 1.1.2.1 pdp_form-help.pd, NONE, 1.1.2.1 pdp_fqt-help.pd, NONE, 1.1.2.1 pdp_hitandmiss-help.pd, NONE, 1.1.2.1 pdp_hue-help.pd, NONE, 1.1.2.1 pdp_icedthe~-help.pd, NONE, 1.1.2.1 pdp_ieee1394-help.pd, NONE, 1.1.2.1 pdp_imgloader-help.pd, NONE, 1.1.2.1 pdp_imgsaver-help.pd, NONE, 1.1.2.1 pdp_intrusion-help.pd, NONE, 1.1.2.1 pdp_juxta-help.pd, NONE, 1.1.2.1 pdp_lens-help.pd, NONE, 1.1.2.1 pdp_live~-help.pd, NONE, 1.1.2.1 pdp_lumafilt-help.pd, NONE, 1.1.2.1 pdp_mapper-help.pd, NONE, 1.1.2.1 pdp_mgrid-help.pd, NONE, 1.1.2.1 pdp_mosaic-help.pd, NONE, 1.1.2.1 pdp_mp4live~-help.pd, NONE, 1.1.2.1 pdp_mp4player~-help.pd, NONE, 1.1.2.1 pdp_nervous-help.pd, NONE, 1.1.2.1 pdp_noquark-help.pd, NONE, 1.1.2.1 pdp_ocanvas-help.pd, NONE, 1.1.2.1 pdp_pen-help.pd, NONE, 1.1.2.1 pdp_puzzle-help.pd, NONE, 1.1.2.1 pdp_qtext-help.pd, NONE, 1.1.2.1 pdp_quark-help.pd, NONE, 1.1.2.1 pdp_radioactiv-help.pd, NONE, 1.1.2.1 pdp_rec~-help.pd, NONE, 1.1.2.1 pdp_rev-help.pd, NONE, 1.1.2.1 pdp_ripple-help.pd, NONE, 1.1.2.1 pdp_segsnd~-help.pd, NONE, 1.1.2.1 pdp_shagadelic-help.pd, NONE, 1.1.2.1 pdp_shape-help.pd, NONE, 1.1.2.1 pdp_simura-help.pd, NONE, 1.1.2.1 pdp_smuck-help.pd, NONE, 1.1.2.1 pdp_spigot-help.pd, NONE, 1.1.2.1 pdp_spiral-help.pd, NONE, 1.1.2.1 pdp_spotlight-help.pd, NONE, 1.1.2.1 pdp_streaming-help.pd, NONE, 1.1.2.1 pdp_text-help.pd, NONE, 1.1.2.1 pdp_theonice~-help.pd, NONE, 1.1.2.1 pdp_theorin~-help.pd, NONE, 1.1.2.1 pdp_theorout~-help.pd, NONE, 1.1.2.1 pdp_transform-help.pd, NONE, 1.1.2.1 pdp_transition-help.pd, NONE, 1.1.2.1 pdp_underwatch-help.pd, NONE, 1.1.2.1 pdp_vertigo-help.pd, NONE, 1.1.2.1 pdp_warhol-help.pd, NONE, 1.1.2.1 pdp_warp-help.pd, NONE, 1.1.2.1 pdp_xcanvas-help.pd, NONE, 1.1.2.1 pdp_yqt-help.pd, NONE, 1.1.2.1 pdp_yvu2rgb-help.pd, NONE, 1.1.2.1 rs_pdp_icedthe~.pd, 1.2, 1.2.2.1 rs_pdp_live~.pd, 1.5, 1.5.2.1 rs_pdp_mp4player~.pd, 1.2, 1.2.2.1 rs_pdp_segsnd~.pd, 1.1, 1.1.2.1 rs_pdp_theonice~.pd, 1.2, 1.2.2.1 rs_pdp_theorin~.pd, 1.2, 1.2.2.1 help-pdp_aa.pd, 1.1, NONE help-pdp_aging.pd, 1.2, NONE help-pdp_ascii.pd, 1.3, NONE help-pdp_background.pd, 1.1, NONE help-pdp_baltan.pd, 1.2, NONE help-pdp_binary.pd, 1.1, NONE help-pdp_cache.pd, 1.1, NONE help-pdp_canvas.pd, 1.5, NONE help-pdp_capture.pd, 1.4, NONE help-pdp_cmap.pd, 1.1, NONE help-pdp_colorgrid.pd, 1.1, NONE help-pdp_compose.pd, 1.2, NONE help-pdp_cropper.pd, 1.1, NONE help-pdp_ctrack.pd, 1.3, NONE help-pdp_cycle.pd, 1.3, NONE help-pdp_dice.pd, 1.3, NONE help-pdp_dilate.pd, 1.1, NONE help-pdp_disintegration.pd, 1.1, NONE help-pdp_distance.pd, 1.2, NONE help-pdp_edge.pd, 1.2, NONE help-pdp_erode.pd, 1.1, NONE help-pdp_fcqt.pd, 1.1, NONE help-pdp_fdiff.pd, 1.1, NONE help-pdp_ffmpeg~.pd, 1.6, NONE help-pdp_form.pd, 1.2, NONE help-pdp_fqt.pd, 1.3, NONE help-pdp_hitandmiss.pd, 1.1, NONE help-pdp_hue.pd, 1.1, NONE help-pdp_icedthe~.pd, 1.1, NONE help-pdp_ieee1394.pd, 1.1, NONE help-pdp_imgloader.pd, 1.3, NONE help-pdp_imgsaver.pd, 1.1, NONE help-pdp_intrusion.pd, 1.1, NONE help-pdp_juxta.pd, 1.2, NONE help-pdp_lens.pd, 1.1, NONE help-pdp_live~.pd, 1.2, NONE help-pdp_lumafilt.pd, 1.2, NONE help-pdp_mapper.pd, 1.1, NONE help-pdp_mgrid.pd, 1.2, NONE help-pdp_mosaic.pd, 1.2, NONE help-pdp_mp4live~.pd, 1.2, NONE help-pdp_mp4player~.pd, 1.2, NONE help-pdp_nervous.pd, 1.2, NONE help-pdp_noquark.pd, 1.2, NONE help-pdp_ocanvas.pd, 1.4, NONE help-pdp_pen.pd, 1.5, NONE help-pdp_puzzle.pd, 1.2, NONE help-pdp_qtext.pd, 1.1, NONE help-pdp_quark.pd, 1.2, NONE help-pdp_radioactiv.pd, 1.3, NONE help-pdp_rec~.pd, 1.4, NONE help-pdp_rev.pd, 1.2, NONE help-pdp_ripple.pd, 1.2, NONE help-pdp_segsnd~.pd, 1.2, NONE help-pdp_shagadelic.pd, 1.2, NONE help-pdp_shape.pd, 1.4, NONE help-pdp_simura.pd, 1.2, NONE help-pdp_smuck.pd, 1.2, NONE help-pdp_spigot.pd, 1.1, NONE help-pdp_spiral.pd, 1.2, NONE help-pdp_spotlight.pd, 1.1, NONE help-pdp_streaming.pd, 1.3, NONE help-pdp_text.pd, 1.5, NONE help-pdp_theonice~.pd, 1.1, NONE help-pdp_theorin~.pd, 1.1, NONE help-pdp_theorout~.pd, 1.2, NONE help-pdp_transform.pd, 1.2, NONE help-pdp_transition.pd, 1.1, NONE help-pdp_underwatch.pd, 1.1, NONE help-pdp_vertigo.pd, 1.2, NONE help-pdp_warhol.pd, 1.2, NONE help-pdp_warp.pd, 1.2, NONE help-pdp_xcanvas.pd, 1.1, NONE help-pdp_yqt.pd, 1.4, NONE help-pdp_yvu2rgb.pd, 1.2, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pure-data/pd/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9755
Modified Files:
Tag: desiredata
desire.tk
Log Message:
first step in inlet/outlet approximate highlighting
Index: desire.tk
===================================================================
RCS file: /cvsroot/pure-data/pd/src/Attic/desire.tk,v
retrieving revision 1.1.2.600.2.180
retrieving revision 1.1.2.600.2.181
diff -C2 -d -r1.1.2.600.2.180 -r1.1.2.600.2.181
*** desire.tk 16 Apr 2007 14:24:02 -0000 1.1.2.600.2.180
--- desire.tk 9 May 2007 00:53:10 -0000 1.1.2.600.2.181
***************
*** 1537,1540 ****
--- 1537,1541 ----
set @cmd_hist {}
set @cmd_histi 0
+ set @motion_watch 0
}
***************
*** 2676,2681 ****
--- 2677,2700 ----
default {$@action motion $x $y $f $target}
}
+ if {$@editmode} {$self motion_iohilite2 $x $y $f}
if {$id == ""} {return}
$self motion_iohilite $target $x $y
+
+ }
+
+ def Canvas motion_watch {} {
+ if {$@oldpos != $@curpos2} {
+ after 100 $self motion_watch
+ if {$@anchorx != [lindex $@curpos2 0] && $@anchory != [lindex $@curpos2 1]} {
+ $@approx data= $@anchorx $@anchory [lindex $@curpos2 0] [lindex $@curpos2 1]
+ $@approx draw
+ puts "approx::: $@approx"
+ }
+ puts "watching.... from $@anchorx , $@anchory"
+ } else {
+ puts "end watching"
+ set @motion_watch 0
+ }
+ set @oldpos $@curpos2
}
***************
*** 2779,2782 ****
--- 2798,2826 ----
}
+ def Canvas motion_iohilite2 {x y f} {
+ set c [$self widget]
+ set obj [$self identify_closestobj $x $y $f]
+ if {$obj < 0} {return}
+ mset {cx cy} [rect_centre [$obj bbox]]
+ if {$y < $cy} {set io i} else {set io o}
+ switch $io {
+ i {set ports [$obj ninlets]}
+ o {set ports [$obj noutlets]}
+ }
+ if {!$ports} {set io i; set ports [$obj ninlets]}
+ set mindist 66666
+ set idx 0
+ for {set i 0} {$i < $ports} {incr i} {
+ set point2 [rect_centre [$c bbox ${obj}$io${i}]]
+ set point1 [list $x $y]
+ set dist [distance $point1 $point2]
+ if {$dist < $mindist} {set mindist $dist; set idx $i; mset {iox ioy} $point2}
+ }
+ $obj hilite_io $io $iox $ioy
+ set @dehighlight [list $c delete ${obj}$io${idx}b]
+ #puts "obj:: $obj :: [$obj text] :: hilite $io :: $idx"
+
+ }
+
def Canvas motion_iohilite {target x y} {
set c [$self widget]
***************
*** 2870,2873 ****
--- 2914,2951 ----
}
+ def Canvas identify_closestobj {x y f} {
+ set c [$self widget]
+ set cx [expr $x*$@zoom]
+ set cy [expr $y*$@zoom]
+ set offset 100
+ set stack [$c find overlapping [expr $cx-$offset] [expr $cy-$offset] [expr $cx+$offset] [expr $cy+$offset]]
+ set stack [lreverse $stack]
+ set objs {}
+ foreach tag $stack {
+ set tags [$c gettags $tag]
+ if {[regexp {^[xo][0-9a-f]{6,8}} $tags id]} {
+ set class [$id class]
+ switch $class {
+ Wire {} Crosshair {} Tooltip {} Comment {} SelRect {}
+ default {lappend objs $id}
+ }
+ }
+ }
+ set objs [lsort -unique $objs]
+ if {![llength $objs]} {return -1}
+ set mindist 66666
+ set idx 0; set i 0
+ foreach obj $objs {
+ set point2 [rect_centre [$obj bbox]]
+ set point1 [list $x $y]
+ set dist [distance $point2 $point1]
+ if {$dist < $mindist} {set mindist $dist; set idx $i}
+ incr i;
+ }
+ return [lindex $objs $idx]
+ #puts " mindist:: $mindist || idx:: $idx || [[lindex $objs $idx] text]"
+ }
+
+
#-----------------------------------------------------------------------------------#
class_new StatusBar {View} ;# no, using View is wrong here. View is for tk canvas item collections.
***************
*** 6241,6245 ****
}
-
#def Crosshair erase {} {$self item_delete VHAIR1; $self item_delete HHAIR1}
--- 6319,6322 ----
- Previous message: [PD-cvs] externals/pidip configure.ac,1.13.2.2,1.13.2.3
- Next message: [PD-cvs] externals/pidip/doc pdp_aa-help.pd, NONE, 1.1.2.1 pdp_aging-help.pd, NONE, 1.1.2.1 pdp_ascii-help.pd, NONE, 1.1.2.1 pdp_background-help.pd, NONE, 1.1.2.1 pdp_baltan-help.pd, NONE, 1.1.2.1 pdp_binary-help.pd, NONE, 1.1.2.1 pdp_cache-help.pd, NONE, 1.1.2.1 pdp_canvas-help.pd, NONE, 1.1.2.1 pdp_capture-help.pd, NONE, 1.1.2.1 pdp_cmap-help.pd, NONE, 1.1.2.1 pdp_colorgrid-help.pd, NONE, 1.1.2.1 pdp_compose-help.pd, NONE, 1.1.2.1 pdp_cropper-help.pd, NONE, 1.1.2.1 pdp_ctrack-help.pd, NONE, 1.1.2.1 pdp_cycle-help.pd, NONE, 1.1.2.1 pdp_dice-help.pd, NONE, 1.1.2.1 pdp_dilate-help.pd, NONE, 1.1.2.1 pdp_disintegration-help.pd, NONE, 1.1.2.1 pdp_distance-help.pd, NONE, 1.1.2.1 pdp_edge-help.pd, NONE, 1.1.2.1 pdp_erode-help.pd, NONE, 1.1.2.1 pdp_fcqt-help.pd, NONE, 1.1.2.1 pdp_fdiff-help.pd, NONE, 1.1.2.1 pdp_ffmpeg~-help.pd, NONE, 1.1.2.1 pdp_form-help.pd, NONE, 1.1.2.1 pdp_fqt-help.pd, NONE, 1.1.2.1 pdp_hitandmiss-help.pd, NONE, 1.1.2.1 pdp_hue-help.pd, NONE, 1.1.2.1 pdp_icedthe~-help.pd, NONE, 1.1.2.1 pdp_ieee1394-help.pd, NONE, 1.1.2.1 pdp_imgloader-help.pd, NONE, 1.1.2.1 pdp_imgsaver-help.pd, NONE, 1.1.2.1 pdp_intrusion-help.pd, NONE, 1.1.2.1 pdp_juxta-help.pd, NONE, 1.1.2.1 pdp_lens-help.pd, NONE, 1.1.2.1 pdp_live~-help.pd, NONE, 1.1.2.1 pdp_lumafilt-help.pd, NONE, 1.1.2.1 pdp_mapper-help.pd, NONE, 1.1.2.1 pdp_mgrid-help.pd, NONE, 1.1.2.1 pdp_mosaic-help.pd, NONE, 1.1.2.1 pdp_mp4live~-help.pd, NONE, 1.1.2.1 pdp_mp4player~-help.pd, NONE, 1.1.2.1 pdp_nervous-help.pd, NONE, 1.1.2.1 pdp_noquark-help.pd, NONE, 1.1.2.1 pdp_ocanvas-help.pd, NONE, 1.1.2.1 pdp_pen-help.pd, NONE, 1.1.2.1 pdp_puzzle-help.pd, NONE, 1.1.2.1 pdp_qtext-help.pd, NONE, 1.1.2.1 pdp_quark-help.pd, NONE, 1.1.2.1 pdp_radioactiv-help.pd, NONE, 1.1.2.1 pdp_rec~-help.pd, NONE, 1.1.2.1 pdp_rev-help.pd, NONE, 1.1.2.1 pdp_ripple-help.pd, NONE, 1.1.2.1 pdp_segsnd~-help.pd, NONE, 1.1.2.1 pdp_shagadelic-help.pd, NONE, 1.1.2.1 pdp_shape-help.pd, NONE, 1.1.2.1 pdp_simura-help.pd, NONE, 1.1.2.1 pdp_smuck-help.pd, NONE, 1.1.2.1 pdp_spigot-help.pd, NONE, 1.1.2.1 pdp_spiral-help.pd, NONE, 1.1.2.1 pdp_spotlight-help.pd, NONE, 1.1.2.1 pdp_streaming-help.pd, NONE, 1.1.2.1 pdp_text-help.pd, NONE, 1.1.2.1 pdp_theonice~-help.pd, NONE, 1.1.2.1 pdp_theorin~-help.pd, NONE, 1.1.2.1 pdp_theorout~-help.pd, NONE, 1.1.2.1 pdp_transform-help.pd, NONE, 1.1.2.1 pdp_transition-help.pd, NONE, 1.1.2.1 pdp_underwatch-help.pd, NONE, 1.1.2.1 pdp_vertigo-help.pd, NONE, 1.1.2.1 pdp_warhol-help.pd, NONE, 1.1.2.1 pdp_warp-help.pd, NONE, 1.1.2.1 pdp_xcanvas-help.pd, NONE, 1.1.2.1 pdp_yqt-help.pd, NONE, 1.1.2.1 pdp_yvu2rgb-help.pd, NONE, 1.1.2.1 rs_pdp_icedthe~.pd, 1.2, 1.2.2.1 rs_pdp_live~.pd, 1.5, 1.5.2.1 rs_pdp_mp4player~.pd, 1.2, 1.2.2.1 rs_pdp_segsnd~.pd, 1.1, 1.1.2.1 rs_pdp_theonice~.pd, 1.2, 1.2.2.1 rs_pdp_theorin~.pd, 1.2, 1.2.2.1 help-pdp_aa.pd, 1.1, NONE help-pdp_aging.pd, 1.2, NONE help-pdp_ascii.pd, 1.3, NONE help-pdp_background.pd, 1.1, NONE help-pdp_baltan.pd, 1.2, NONE help-pdp_binary.pd, 1.1, NONE help-pdp_cache.pd, 1.1, NONE help-pdp_canvas.pd, 1.5, NONE help-pdp_capture.pd, 1.4, NONE help-pdp_cmap.pd, 1.1, NONE help-pdp_colorgrid.pd, 1.1, NONE help-pdp_compose.pd, 1.2, NONE help-pdp_cropper.pd, 1.1, NONE help-pdp_ctrack.pd, 1.3, NONE help-pdp_cycle.pd, 1.3, NONE help-pdp_dice.pd, 1.3, NONE help-pdp_dilate.pd, 1.1, NONE help-pdp_disintegration.pd, 1.1, NONE help-pdp_distance.pd, 1.2, NONE help-pdp_edge.pd, 1.2, NONE help-pdp_erode.pd, 1.1, NONE help-pdp_fcqt.pd, 1.1, NONE help-pdp_fdiff.pd, 1.1, NONE help-pdp_ffmpeg~.pd, 1.6, NONE help-pdp_form.pd, 1.2, NONE help-pdp_fqt.pd, 1.3, NONE help-pdp_hitandmiss.pd, 1.1, NONE help-pdp_hue.pd, 1.1, NONE help-pdp_icedthe~.pd, 1.1, NONE help-pdp_ieee1394.pd, 1.1, NONE help-pdp_imgloader.pd, 1.3, NONE help-pdp_imgsaver.pd, 1.1, NONE help-pdp_intrusion.pd, 1.1, NONE help-pdp_juxta.pd, 1.2, NONE help-pdp_lens.pd, 1.1, NONE help-pdp_live~.pd, 1.2, NONE help-pdp_lumafilt.pd, 1.2, NONE help-pdp_mapper.pd, 1.1, NONE help-pdp_mgrid.pd, 1.2, NONE help-pdp_mosaic.pd, 1.2, NONE help-pdp_mp4live~.pd, 1.2, NONE help-pdp_mp4player~.pd, 1.2, NONE help-pdp_nervous.pd, 1.2, NONE help-pdp_noquark.pd, 1.2, NONE help-pdp_ocanvas.pd, 1.4, NONE help-pdp_pen.pd, 1.5, NONE help-pdp_puzzle.pd, 1.2, NONE help-pdp_qtext.pd, 1.1, NONE help-pdp_quark.pd, 1.2, NONE help-pdp_radioactiv.pd, 1.3, NONE help-pdp_rec~.pd, 1.4, NONE help-pdp_rev.pd, 1.2, NONE help-pdp_ripple.pd, 1.2, NONE help-pdp_segsnd~.pd, 1.2, NONE help-pdp_shagadelic.pd, 1.2, NONE help-pdp_shape.pd, 1.4, NONE help-pdp_simura.pd, 1.2, NONE help-pdp_smuck.pd, 1.2, NONE help-pdp_spigot.pd, 1.1, NONE help-pdp_spiral.pd, 1.2, NONE help-pdp_spotlight.pd, 1.1, NONE help-pdp_streaming.pd, 1.3, NONE help-pdp_text.pd, 1.5, NONE help-pdp_theonice~.pd, 1.1, NONE help-pdp_theorin~.pd, 1.1, NONE help-pdp_theorout~.pd, 1.2, NONE help-pdp_transform.pd, 1.2, NONE help-pdp_transition.pd, 1.1, NONE help-pdp_underwatch.pd, 1.1, NONE help-pdp_vertigo.pd, 1.2, NONE help-pdp_warhol.pd, 1.2, NONE help-pdp_warp.pd, 1.2, NONE help-pdp_xcanvas.pd, 1.1, NONE help-pdp_yqt.pd, 1.4, NONE help-pdp_yvu2rgb.pd, 1.2, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pd-cvs
mailing list