Changeset 5655 for branches/1.4


Ignore:
Timestamp:
Jun 4, 2015 10:46:25 AM (9 years ago)
Author:
ldelgass
Message:

merge from trunk

Location:
branches/1.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4

  • branches/1.4/gui/scripts/field.tcl

    r5622 r5655  
    385385#
    386386# Returns a list {min max} representing the limits for the specified
    387 # axis.
     387# axis over all components.
    388388# ----------------------------------------------------------------------
    389389itcl::body Rappture::Field::limits {which} {
     
    503503# USAGE: fieldlimits
    504504#
    505 # Returns a list {min max} representing the limits for the specified
    506 # axis.
     505# This method is for use with VTK components that have multiple fields.
     506# It really makes no sense to have multiple fields in a field, but this
     507# is here until we add a proper dataset object to hold multiple fields.
     508#
     509# Returns an array mapping fieldname => list {min max} representing the
     510# limits over all components for the given fieldname.  This assumes that
     511# all components have the same set of fields.
    507512# ----------------------------------------------------------------------
    508513itcl::body Rappture::Field::fieldlimits {} {
  • branches/1.4/gui/scripts/flowvisviewer.tcl

    r5643 r5655  
    989989    }
    990990
     991    if {$tag == "" || ![info exists _dataset2style($tag)]} {
     992        return
     993    }
    991994    # Display the markers used by the current transfer function.
    992995    set tf $_dataset2style($tag)
     
    9981001    $c coords vmax [expr {$w-$lx}] $ly
    9991002
     1003    if { $_first == "" } {
     1004        return
     1005    }
    10001006    set title [$_first hints label]
    10011007    set units [$_first hints units]
  • branches/1.4/gui/scripts/nanovisviewer.tcl

    r5643 r5655  
    779779    # Display the markers used by the current transfer function.
    780780    HideAllMarkers
     781    if {$cname == "" || ![info exists _transferFunctionEditors($cname)]} {
     782        return
     783    }
    781784    $_transferFunctionEditors($cname) showMarkers $_limits($cname)
    782785
     
    788791    $c coords vmax [expr {$w-$lx}] $ly
    789792
     793    if { $_first == "" } {
     794        return
     795    }
    790796    set title [$_first hints label]
    791797    set units [$_first hints units]
     
    795801    $c itemconfigure title -text $title
    796802    $c coords title [expr {$w/2}] $ly
    797 
    798     # The colormap may have changed. Resync the slicers with the colormap.
    799     InitSettings -cutplanesvisible -xcutplanevisible -ycutplanevisible \
    800         -zcutplanevisible
    801803}
    802804
     
    906908                SendData $data
    907909                set _datasets($tag) 1
    908             }
    909             SetObjectStyle $dataobj $cname
     910                SetObjectStyle $dataobj $cname
     911            }
    910912            if { [info exists _obj2ovride($dataobj-raise)] } {
    911913                SendCmd "volume state 1 $tag"
     
    913915        }
    914916    }
    915     # Outline seems to need to be reset every update.
    916     InitSettings -outlinevisible -cutplanesvisible
     917
     918    # Turn off cutplanes for all volumes
     919    foreach axis {x y z} {
     920        SendCmd "cutplane state 0 $axis"
     921    }
     922
     923    InitSettings -outlinevisible -cutplanesvisible \
     924        -xcutplanevisible -ycutplanevisible -zcutplanevisible \
     925        -xcutplaneposition -ycutplaneposition -zcutplaneposition
     926
    917927    if { $_reset } {
    918         # Turn off cutplanes for all volumes
    919         foreach axis {x y z} {
    920             SendCmd "cutplane state 0 $axis"
    921         }
    922 
    923928        InitSettings -axesvisible -gridvisible \
    924             -light2side -isosurfaceshading -opacity \
     929            -opacity -light2side -isosurfaceshading \
    925930            -light \
    926             -xcutplanevisible -ycutplanevisible -zcutplanevisible \
    927931            -current
    928932
     
    960964        updateTransferFunctions
    961965    }
     966
    962967    # Actually write the commands to the server socket.  If it fails, we don't
    963968    # care.  We're finished here.
Note: See TracChangeset for help on using the changeset viewer.