Changeset 5645 for trunk


Ignore:
Timestamp:
May 31, 2015, 6:56:56 PM (9 years ago)
Author:
ldelgass
Message:

More syncing nanovis/flowvis viewers. Only call SetObjectStyle? on first load
of data. Init cutplane positions in Rebuild, add some checks to DrawLegend?.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

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

    r5642 r5645  
    992992    }
    993993
     994    if {$tag == "" || ![info exists _dataset2style($tag)]} {
     995        return
     996    }
    994997    # Display the markers used by the current transfer function.
    995998    set tf $_dataset2style($tag)
     
    10011004    $c coords vmax [expr {$w-$lx}] $ly
    10021005
     1006    if { $_first == "" } {
     1007        return
     1008    }
    10031009    set title [$_first hints label]
    10041010    set units [$_first hints units]
  • trunk/gui/scripts/nanovisviewer.tcl

    r5644 r5645  
    782782    # Display the markers used by the current transfer function.
    783783    HideAllMarkers
     784    if {$cname == "" || ![info exists _transferFunctionEditors($cname)]} {
     785        return
     786    }
    784787    $_transferFunctionEditors($cname) showMarkers $_limits($cname)
    785788
     
    791794    $c coords vmax [expr {$w-$lx}] $ly
    792795
     796    if { $_first == "" } {
     797        return
     798    }
    793799    set title [$_first hints label]
    794800    set units [$_first hints units]
     
    905911                SendData $data
    906912                set _datasets($tag) 1
    907             }
    908             SetObjectStyle $dataobj $cname
     913                SetObjectStyle $dataobj $cname
     914            }
    909915            if { [info exists _obj2ovride($dataobj-raise)] } {
    910916                SendCmd "volume state 1 $tag"
     
    912918        }
    913919    }
    914     # Outline seems to need to be reset every update.
    915     InitSettings -outlinevisible -cutplanesvisible
     920
     921    # Turn off cutplanes for all volumes
     922    foreach axis {x y z} {
     923        SendCmd "cutplane state 0 $axis"
     924    }
     925
     926    InitSettings -outlinevisible -cutplanesvisible \
     927        -xcutplanevisible -ycutplanevisible -zcutplanevisible \
     928        -xcutplaneposition -ycutplaneposition -zcutplaneposition
     929
    916930    if { $_reset } {
    917         # Turn off cutplanes for all volumes
    918         foreach axis {x y z} {
    919             SendCmd "cutplane state 0 $axis"
    920         }
    921 
    922931        InitSettings -axesvisible -gridvisible \
    923             -light2side -isosurfaceshading -opacity \
     932            -opacity -light2side -isosurfaceshading \
    924933            -ambient -diffuse -specularlevel -specularexponent \
    925             -xcutplanevisible -ycutplanevisible -zcutplanevisible \
    926934            -current
    927935
     
    959967        updateTransferFunctions
    960968    }
     969
    961970    # Actually write the commands to the server socket.  If it fails, we don't
    962971    # care.  We're finished here.
Note: See TracChangeset for help on using the changeset viewer.