Ignore:
Timestamp:
Sep 4, 2011, 2:56:59 PM (13 years ago)
Author:
ldelgass
Message:

Add title, vmin, vmax args to legend/ReceiveLegend method

File:
1 edited

Legend:

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

    r2469 r2472  
    7575    protected method ReceiveDataset { args }
    7676    protected method ReceiveImage { args }
    77     protected method ReceiveLegend { args }
     77    protected method ReceiveLegend { colormap title vmin vmax size }
    7878    protected method Rotate {option x y}
    7979    protected method SendCmd {string}
     
    17481748
    17491749# ----------------------------------------------------------------------
    1750 # USAGE: ReceiveLegend <colormap> <size>>
     1750# USAGE: ReceiveLegend <colormap> <title> <vmin> <vmax> <size>
    17511751#
    17521752# Invoked automatically whenever the "legend" command comes in from
     
    17541754# specified <size> will follow.
    17551755# ----------------------------------------------------------------------
    1756 itcl::body Rappture::VtkViewer::ReceiveLegend { colormap size } {
    1757     #puts stderr "ReceiveLegend colormap=$colormap size=$size"
     1756itcl::body Rappture::VtkViewer::ReceiveLegend { colormap title vmin vmax size } {
     1757    #puts stderr "ReceiveLegend colormap=$colormap title=$title range=$vmin,$vmax size=$size"
    17581758    if { [IsConnected] } {
    17591759        set bytes [ReceiveBytes $size]
Note: See TracChangeset for help on using the changeset viewer.