Changeset 5568
- Timestamp:
- May 19, 2015, 2:55:05 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/unirect2d.tcl
r5536 r5568 62 62 return $_numPoints 63 63 } 64 public method vtkdata {} { 65 return $_vtkdata 66 } 64 public method vtkdata {{what -partial}} {} 67 65 } 68 66 … … 162 160 set ySpace [expr ($_yMax - $_yMin) / double($_yNum - 1)] 163 161 append out "SPACING $xSpace $ySpace 0\n" 164 append out "ORIGIN 0 00\n"162 append out "ORIGIN $_xMin $_yMin 0\n" 165 163 set _vtkdata $out 166 164 set _isValid 1 … … 277 275 } 278 276 277 itcl::body Rappture::Unirect2d::vtkdata {{what -partial}} { 278 if {$what == "-full"} { 279 append out "# vtk DataFile Version 3.0\n" 280 append out "[hints label]\n" 281 append out "ASCII\n" 282 append out $_vtkdata 283 return $out 284 } else { 285 return $_vtkdata 286 } 287 } 288 279 289 itcl::body Rappture::Unirect2d::GetSize { obj path varName } { 280 290 set string [$obj get $path]
Note: See TracChangeset
for help on using the changeset viewer.