28.02.2014 Aufrufe

diss_SCHWAIGER.pdf - OPUS Bayreuth - Universität Bayreuth

diss_SCHWAIGER.pdf - OPUS Bayreuth - Universität Bayreuth

diss_SCHWAIGER.pdf - OPUS Bayreuth - Universität Bayreuth

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

B Programme<br />

}<br />

- pow($n_,2)] > 0} {<br />

return "$x0 $y0 0"<br />

} else {<br />

return "$xmin $ymin 1"<br />

}<br />

# Exit strategy<br />

# remove temporary files<br />

proc Exit { } {<br />

global data_file_<br />

exec bash -c "rm $data_file_"<br />

exit<br />

}<br />

# Filelist delivered by bash command<br />

set filelist [exec bash -c "ls *.pgm"]<br />

set img_file [lindex $filelist 0]<br />

# create image, read file<br />

image create photo img1 -width 0 -height 0<br />

img1 read $img_file -shrink<br />

canvas .c -cursor crosshair -width [image width img1]\<br />

-height [image height img1]<br />

frame .f2<br />

label .f2.l3 -text " n:"<br />

entry .f2.n -textvariable n_ -width 5<br />

label .f2.l -textvariable text_<br />

button .f2.b1 -text " quit " -command Exit -anchor e<br />

pack .f2 .c -fill x<br />

pack .f2.l3 -side left<br />

pack .f2.n -side left<br />

pack .f2.l -side left -padx 10<br />

pack .f2.b1 -side right<br />

bind .c {%W scan mark %x %y}<br />

bind .c {%W scan dragto %x %y 1}<br />

.c create image 0 0 -image img1 -anchor nw -tags image1<br />

bind .c "IdentParticles %x %y"<br />

bind .c "TraceImages {$filelist}"<br />

114

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!