Changeset 4502


Ignore:
Timestamp:
Jul 15, 2014, 6:20:04 PM (10 years ago)
Author:
ldelgass
Message:

Cleanups. Remove unused variable, move check for <DX> header to C routine,
don't overwrite _dim written by VTK reader.

Location:
trunk
Files:
3 edited

Legend:

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

    r4493 r4502  
    919919                continue;               # Ignore this component
    920920            }
    921             set vector ""
    922921            if 0 {
    923922                set f [open /tmp/$_path.$cname.dx "w"]
     
    925924                close $f
    926925            }
    927             # This is temporary.  I put a check for this in the DxToVtk
    928             # parser. 
    929             if { [string range $contents  0 3] == "<DX>" } {
    930                 set contents [string range $contents 4 end]
    931             }
    932926            if { [catch { Rappture::DxToVtk $contents } vtkdata] == 0 } {
    933927                ReadVtkDataSet $cname $vtkdata
     928                if 0 {
     929                    set f [open /tmp/$_path.$cname.vtk "w"]
     930                    puts -nonewline $f $vtkdata
     931                    close $f
     932                }
    934933            } else {
    935934                puts stderr "Can't parse dx data: $vtkdata"
    936             }
    937             if 0 {
    938                 set f [open /tmp/$_path.$cname.vtk "w"]
    939                 puts -nonewline $f $vtkdata
    940                 close $f
    941935            }
    942936            if { $_alwaysConvertDX ||
     
    953947                    [Rappture::FlowHints ::\#auto $_field $cname $_units]
    954948            }
    955             set _dim 3
    956949            incr _counter
    957950        } elseif { $type == "dicom"} {
  • trunk/gui/src/RpDxToVtk.c

    r3944 r4502  
    405405        string += 5;
    406406        length -= 5;
     407    } else if (strncmp("<DX>", string, 4) == 0) {
     408        string += 4;
     409        length -= 4;
    407410    }
    408411    pointsObjPtr = Tcl_NewStringObj("", -1);
  • trunk/packages/vizservers/nanovis/Makefile.in

    r4364 r4502  
    6868                -lvtkCommonCore-$(VTK_VERSION) \
    6969                -lvtkCommonDataModel-$(VTK_VERSION) \
    70                 -lvtkCommonExecutionModel-$(VTK_VERSION)  \
    71                 -lvtkCommonMisc-$(VTK_VERSION)  \
     70                -lvtkCommonExecutionModel-$(VTK_VERSION) \
     71                -lvtkCommonMisc-$(VTK_VERSION) \
    7272                -lvtkCommonSystem-$(VTK_VERSION) \
    7373                -lvtkCommonTransforms-$(VTK_VERSION) \
Note: See TracChangeset for help on using the changeset viewer.