Ignore:
Timestamp:
Nov 23, 2014 1:12:25 AM (9 years ago)
Author:
ldelgass
Message:

merge r4765 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

    • Property svn:mergeinfo changed
      /trunkmerged: 4765
  • branches/1.3/gui/scripts/vtkvolumeviewer.tcl

    r4750 r4766  
    6262    public method scale {args}
    6363
    64     private method SetOrientation { side }
    65     private method ViewToQuaternion {} {
    66         return [list $_view(-qw) $_view(-qx) $_view(-qy) $_view(-qz)]
    67     }
    68     private method QuaternionToView { q } {
    69         foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break
    70     }
    71 
    72     protected method Connect {}
    73     protected method CurrentDatasets {args}
    74     protected method Disconnect {}
    75     protected method DoResize {}
    76     protected method DoRotate {}
    77     protected method AdjustSetting {what {value ""}}
    78     protected method InitSettings { args  }
    79     protected method Pan {option x y}
    80     protected method Pick {x y}
    81     protected method Rebuild {}
    82     protected method ReceiveDataset { args }
    83     protected method ReceiveImage { args }
    84     protected method ReceiveLegend { colormap title vmin vmax size }
    85     protected method Rotate {option x y}
    86     protected method Zoom {option}
    87 
    8864    # The following methods are only used by this class.
     65    private method AdjustSetting {what {value ""}}
    8966    private method BuildAxisTab {}
    9067    private method BuildCameraTab {}
     
    9572    private method BuildVolumeTab {}
    9673    private method DrawLegend {}
     74    private method ChangeColormap { dataobj comp color }
    9775    private method Combo { option }
     76    private method Connect {}
     77    private method CurrentDatasets {args}
     78    private method Disconnect {}
     79    private method DoResize {}
     80    private method DoRotate {}
    9881    private method EnterLegend { x y }
    9982    private method EventuallyResize { w h }
     
    10386    private method GetImage { args }
    10487    private method GetVtkData { args }
     88    private method InitSettings { args  }
    10589    private method IsValidObject { dataobj }
    10690    private method LeaveLegend {}
    107     private method MotionLegend { x y }
     91    private method MotionLegend { x y }
     92    private method Pan {option x y}
    10893    private method PanCamera {}
     94    private method Pick {x y}
     95    private method QuaternionToView { q } {
     96        foreach { _view(-qw) _view(-qx) _view(-qy) _view(-qz) } $q break
     97    }
     98    private method Rebuild {}
     99    private method ReceiveDataset { args }
     100    private method ReceiveImage { args }
     101    private method ReceiveLegend { colormap title vmin vmax size }
    109102    private method RequestLegend {}
    110103    private method SetColormap { dataobj comp }
    111     private method ChangeColormap { dataobj comp color }
     104    private method Rotate {option x y}
    112105    private method SetLegendTip { x y }
    113106    private method SetObjectStyle { dataobj comp }
     107    private method SetOrientation { side }
    114108    private method Slice {option args}
     109    private method ViewToQuaternion {} {
     110        return [list $_view(-qw) $_view(-qx) $_view(-qy) $_view(-qz)]
     111    }
     112    private method Zoom {option}
    115113
    116114    private variable _arcball ""
     
    206204    # Initialize the view to some default parameters.
    207205    array set _view {
     206        -ortho           0
    208207        -qw              0.853553
    209208        -qx              -0.353553
    210209        -qy              0.353553
    211210        -qz              0.146447
    212         -zoom            1.0
    213211        -xpan            0
    214212        -ypan            0
    215         -ortho           0
     213        -zoom            1.0
    216214    }
    217215    set _arcball [blt::arcball create 100 100]
     
    377375    bind $itk_component(view) <ButtonRelease-1> \
    378376        [itcl::code $this Rotate release %x %y]
    379     bind $itk_component(view) <Configure> \
    380         [itcl::code $this EventuallyResize %w %h]
    381377
    382378    # Bindings for panning via mouse
     
    986982                    lappend info "dataset_size"  $length
    987983                    lappend info "dataset_tag"   $tag
    988                     SendCmd [list "clientinfo" $info]
    989                 }
    990                 append _outbuf "dataset add $tag data follows $length\n"
     984                    SendCmd "clientinfo [list $info]"
     985                }
     986                SendCmd "dataset add $tag data follows $length"
    991987                append _outbuf $bytes
    992988                set _datasets($tag) 1
     
    11351131                -qy      0.353553
    11361132                -qz      0.146447
     1133                -xpan    0
     1134                -ypan    0
    11371135                -zoom    1.0
    1138                 -xpan   0
    1139                 -ypan   0
    11401136            }
    11411137            if { $_first != "" } {
     
    11571153    SendCmd "camera pan $x $y"
    11581154}
    1159 
    11601155
    11611156# ----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.