Changeset 5449 for branches/1.4


Ignore:
Timestamp:
May 6, 2015 7:38:28 PM (9 years ago)
Author:
ldelgass
Message:

merge r5374:5375 from trunk

Location:
branches/1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4

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

    r5369 r5449  
    33#  COMPONENT: flowvisviewer - 3D flow rendering
    44#
    5 # This widget performs volume and flow rendering on 3D scalar/vector datasets.
    6 # It connects to the Flowvis server running on a rendering farm, transmits
    7 # data, and displays the results.
     5#  This widget performs volume and flow rendering on 3D scalar/vector datasets.
     6#  It connects to the Nanovis server running on a rendering farm,
     7#  transmits data, and displays the results.
    88# ======================================================================
    99#  AUTHOR:  Michael McLennan, Purdue University
    1010#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
    1111#
    12 # See the file "license.terms" for information on usage and redistribution of
    13 # this file, and for a DISCLAIMER OF ALL WARRANTIES.
     12#  See the file "license.terms" for information on usage and
     13#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    1414# ======================================================================
    1515package require Itk
     
    134134    private variable _dataset2flow     ;# Maps dataobj-component to a flow.
    135135
    136     private variable _reset 1          ;# Connection to server has been reset
    137     private variable _click            ;# info used for rotate operations
     136    private variable _reset 1          ;# Connection to server has been reset.
     137    private variable _click            ;# Info used for rotate operations.
    138138    private variable _limits           ;# Autoscale min/max for all axes
    139139    private variable _view             ;# View params for 3D view
     
    280280    }
    281281    pack $itk_component(reset) -side top -padx 2 -pady 2
    282     Rappture::Tooltip::for $itk_component(reset) "Reset the view to the default zoom level"
     282    Rappture::Tooltip::for $itk_component(reset) \
     283        "Reset the view to the default zoom level"
    283284
    284285    itk_component add zoomin {
     
    957958    }
    958959
    959     # Ensure that the global thickness setting (in the slider settings widget)
    960     # is used for the active transfer-function. Update the values in the
    961     # _settings varible.
     960    # Ensure that the global thickness setting (in the slider
     961    # settings widget) is used for the active transfer-function. Update
     962    # the values in the _settings varible.
    962963
    963964    set value $_settings(-thickness)
     
    10751076#       the slave interpreter.  The purpose is to collect the min/max of the
    10761077#       volume sent to the render server.  Since the client (flowvisviewer)
    1077 #       doesn't parse 3D data formats, we rely on the server (flowvis) to
     1078#       doesn't parse 3D data formats, we rely on the server (nanovis) to
    10781079#       tell us what the limits are.  Once we've received the limits to all
    10791080#       the data we've sent (tracked by _recvdDatasets) we can then determine
    1080 #       what the transfer functions are for these # volumes.
     1081#       what the transfer functions are for these volumes.
     1082#
    10811083#
    10821084#       Note: There is a considerable tradeoff in having the server report
     
    16121614#       server parses the 3D data and sends back the limits via ReceiveData.]
    16131615#
    1614 #       FIXME: The current way we generate transfer-function names completely
    1615 #              ignores the -markers option.  The problem is that we are forced
    1616 #              to compute the name from an increasing complex set of values:
    1617 #              color, levels, marker, opacity.  I think we're stuck doing it
    1618 #              now.
    1619 #
    16201616itcl::body Rappture::FlowvisViewer::NameTransferFunction { dataobj cname } {
    16211617    array set style {
     
    16591655    # of the volumes (the first in the list) using the transfer-function as a
    16601656    # reference.
    1661     #
    1662     # FIXME: The current way we generate transfer-function names completely
    1663     #        ignores the -markers option.  The problem is that we are forced
    1664     #        to compute the name from an increasing complex set of values:
    1665     #        color, levels, marker, opacity.  I think the cow's out of the
    1666     #        barn on this one.
    16671657
    16681658    if { ![info exists _isomarkers($tf)] } {
     
    18541844}
    18551845
    1856 # ----------------------------------------------------------------------
    1857 # USAGE: UpdateTransferFunctions
    1858 # ----------------------------------------------------------------------
    18591846itcl::body Rappture::FlowvisViewer::updateTransferFunctions {} {
    18601847    $_dispatcher event -after 100 !send_transfunc
Note: See TracChangeset for help on using the changeset viewer.