Ignore:
Timestamp:
Apr 26, 2013 5:25:25 AM (11 years ago)
Author:
gah
Message:

add pdb to vtk converter to drawing

File:
1 edited

Legend:

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

    r3592 r3637  
    765765        set _cacheid $cacheid
    766766    }
    767     #debug "reading $size bytes from proxy\n"
    768767    set data [ReceiveBytes $size]
    769768    #debug "success: reading $size bytes from proxy\n"
     
    964963                # Save the PDB data in case the user wants to later save it.
    965964                set _pdbdata $data1
    966                 set nBytes [string length $data1]
     965                set numBytes [string length $data1]
    967966
    968967                # We know we're buffered here, so append the "loadpdb" command
    969968                # with the data payload immediately afterwards.
    970                 ServerCmd "loadpdb -defer follows $model $state $nBytes"
     969                ServerCmd "loadpdb -defer follows $model $state $numBytes"
    971970                append _outbuf $data1
    972971                set _dataobjs($model-$state)  1
     
    977976                # Save the PDB data in case the user wants to later save it.
    978977                set _pdbdata $data2
    979                 set nBytes [string length $data2]
     978                set numBytes [string length $data2]
    980979
    981980                # We know we're buffered here, so append the "loadpdb" command
    982981                # with the data payload immediately afterwards.
    983                 ServerCmd "loadpdb -defer follows $model $state $nBytes"
     982                ServerCmd "loadpdb -defer follows $model $state $numBytes"
    984983                append _outbuf $data2
    985984                set _dataobjs($model-$state)  1
     
    10261025                    # Save the PDB data in case the user wants to later save it.
    10271026                    set _pdbdata $data3
    1028                     set nBytes [string length $data3]
     1027                    set numBytes [string length $data3]
    10291028
    10301029                    # We know we're buffered here, so append the "loadpdb"
    10311030                    # command with the data payload immediately afterwards.
    1032                     ServerCmd "loadpdb -defer follows $model $state $nBytes"
     1031                    ServerCmd "loadpdb -defer follows $model $state $numBytes"
    10331032                    append _outbuf $data3
    10341033                }
Note: See TracChangeset for help on using the changeset viewer.