Changeset 2232 for trunk/gui/scripts


Ignore:
Timestamp:
Apr 27, 2011, 9:57:22 AM (13 years ago)
Author:
gah
Message:

Remove debugging print statements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkviewer2.tcl

    r2223 r2232  
    162162    set _arcball [blt::arcball create 100 100]
    163163    $_arcball matrix { 1.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 }
    164     puts stderr start=[$_arcball quaternion]
    165164
    166165    # Initialize the view to some default parameters.
     
    331330
    332331    Connect
    333     puts stderr waiting
    334     #after 30000
    335     puts stderr continuing
    336332}
    337333
     
    390386    set params(-description) ""
    391387    set params(-param) ""
    392     puts stderr "vtkviewer2 add dataobj=$dataobj settings=[array get params]"
    393388    foreach {opt val} $settings {
    394389        if {![info exists params($opt)]} {
     
    422417# ----------------------------------------------------------------------
    423418itcl::body Rappture::VtkViewer2::delete {args} {
    424     puts stderr "vtkviewer2 delete args=$args"
    425419    if { [llength $args] == 0} {
    426420        set args $_dlist
     
    434428        }
    435429        # Remove it from the dataobj list.
    436         puts stderr "remove dataobj=$dataobj from dlist=$_dlist"
    437         puts stderr "components dataobj=$dataobj component=[$dataobj components]"
    438430        set _dlist [lreplace $_dlist $pos $pos]
    439431        foreach comp [$dataobj components] {
     
    734726                "world" {
    735727                    foreach { x y z value } [lrange $args 2 end] break
    736                     puts stderr "world x=$x y=$y z=$z value=$value"
    737728                }
    738729                "pixel" {
    739730                    foreach { x y value } [lrange $args 2 end] break
    740                     puts stderr "pixel x=$x y=$y value=$value"
    741731                }
    742732            }
     
    770760    set _first ""
    771761    foreach dataobj [get -objects] {
    772         puts stderr "dataobj=$dataobj"
    773762        if { [info exists _obj2ovride($dataobj-raise)] &&  $_first == "" } {
    774763            set _first $dataobj
     
    956945# ----------------------------------------------------------------------
    957946itcl::body Rappture::VtkViewer2::Rotate {option x y} {
    958     puts stderr "Rotate option=$option x=$x y=$y"
    959947    switch -- $option {
    960948        "click" {
     
    987975                set q [$_arcball rotate $x $y $_click(x) $_click(y)]
    988976                SendCmd "camera orient $q"
    989                 puts stderr "rotate q=$q"
    990                 puts stderr "arcball matrix=[$_arcball matrix]"
    991                 puts stderr "arcball quaternion=[$_arcball quaternion]"
    992977                set _click(x) $x
    993978                set _click(y) $y
     
    997982            Rotate drag $x $y
    998983            $itk_component(view) configure -cursor ""
    999             puts stderr "unsetting _click"
    1000984            catch {unset _click}
    1001985        }
     
    1015999# ----------------------------------------------------------------------
    10161000itcl::body Rappture::VtkViewer2::Pan {option x y} {
    1017     puts stderr "Pan option=$option x=$x y=$y"
    10181001    switch -- $option {
    10191002        "set" {
     
    11711154#
    11721155itcl::body Rappture::VtkViewer2::BuildColormap { colormap dataobj comp } {
    1173     puts stderr "BuildColormap $colormap"
    11741156    array set style {
    11751157        -color rainbow
     
    14951477
    14961478itcl::body Rappture::VtkViewer2::SetObjectStyle { dataobj comp } {
    1497     puts stderr "Entering SetObjectStyle: dataobj=$dataobj"
    14981479    array set props {
    14991480        -color \#6666FF
     
    15151496    SendCmd "polydata linewidth $props(-linewidth) $tag"
    15161497    SendCmd "polydata opacity $props(-opacity) $tag"
    1517     puts stderr "SetObjectStyle: dataobj=$dataobj _first=$_first"
    15181498    if { $dataobj != $_first } {
    15191499        set props(-wireframe) 1
Note: See TracChangeset for help on using the changeset viewer.