Ignore:
Timestamp:
Apr 13, 2015, 2:27:03 PM (9 years ago)
Author:
ldelgass
Message:

sync with trunk (use cutplanes visible command in nanovis)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4/gui/scripts/nanovisviewer.tcl

    r5187 r5203  
    970970        SendCmd "camera zoom $_view(-zoom)"
    971971
    972         #cutplane state 0 all
     972        # Turn off cutplanes for all volumes
    973973        foreach axis {x y z} {
    974             # Turn off cutplanes for all volumes
    975974            SendCmd "cutplane state 0 $axis"
    976975        }
     
    12511250            set datasets [CurrentDatasets -cutplanes]
    12521251            set tag [lindex $datasets 0]
    1253             if { $bool } {
    1254                 foreach axis { x y z } {
    1255                     if { $_settings(-${axis}cutplanevisible) } {
    1256                         SendCmd "cutplane state 1 $axis $tag"
    1257                     }
    1258                 }
    1259             } else {
    1260                 foreach axis { x y z } {
    1261                     SendCmd "cutplane state 0 $axis $tag"
    1262                 }
    1263             }
     1252            SendCmd "cutplane visible $bool $tag"
    12641253        }
    12651254        "-gridvisible" {
     
    13421331            set datasets [CurrentDatasets -cutplanes]
    13431332            set tag [lindex $datasets 0]
    1344             if { $_settings(-cutplanesvisible) } {
    1345                 SendCmd "cutplane state $bool $axis $tag"
    1346             }
     1333            SendCmd "cutplane state $bool $axis $tag"
    13471334            if { $bool } {
    13481335                $itk_component(${axis}CutScale) configure -state normal \
Note: See TracChangeset for help on using the changeset viewer.