Changeset 6127
- Timestamp:
- Mar 15, 2016, 2:56:40 PM (8 years ago)
- Location:
- branches/1.5
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5
- Property svn:mergeinfo changed
/trunk merged: 6052-6053,6066-6069,6080
- Property svn:mergeinfo changed
-
branches/1.5/gui/apps/flowvis-test
r5679 r6127 257 257 # USAGE: images_refresh 258 258 # 259 # Invoked automatically whenever there is a change in the 3dview/legend259 # Invoked automatically whenever there is a change in the view/legend 260 260 # controls on the images panel. Updates the image being shown based 261 261 # on the current selection. … … 287 287 button .images.cntls.save -text "Save As..." -command images_save 288 288 pack .images.cntls.save -side right -padx 4 289 radiobutton .images.cntls. 3dview -text "3D View" -variable images(which) \290 -value " 3dview" -command images_refresh291 pack .images.cntls. 3dview -side top -anchor w289 radiobutton .images.cntls.view -text "3D View" -variable images(which) \ 290 -value "view" -command images_refresh 291 pack .images.cntls.view -side top -anchor w 292 292 radiobutton .images.cntls.legend -text "Legend" -variable images(which) \ 293 293 -value "legend" -command images_refresh 294 294 pack .images.cntls.legend -side top -anchor w 295 set images(which) " 3dview"295 set images(which) "view" 296 296 297 297 canvas .images.viewer -background black -width 500 -height 700 … … 337 337 338 338 set f [.main pane 0] 339 set servers [Rappture::VisViewer::GetServerList "nanovis"] 340 Rappture::FlowvisViewer $f.viewer $servers 339 Rappture::FlowvisViewer $f.viewer 341 340 pack $f.viewer -expand yes -fill both 342 341 set widgets(flowvis) $f.viewer -
branches/1.5/gui/apps/nanovis-test
r4413 r6127 272 272 # USAGE: images_refresh 273 273 # 274 # Invoked automatically whenever there is a change in the 3dview/legend274 # Invoked automatically whenever there is a change in the view/legend 275 275 # controls on the images panel. Updates the image being shown based 276 276 # on the current selection. … … 302 302 button .images.cntls.save -text "Save As..." -command images_save 303 303 pack .images.cntls.save -side right -padx 4 304 radiobutton .images.cntls. 3dview -text "3D View" -variable images(which) \305 -value " 3dview" -command images_refresh306 pack .images.cntls. 3dview -side top -anchor w304 radiobutton .images.cntls.view -text "3D View" -variable images(which) \ 305 -value "view" -command images_refresh 306 pack .images.cntls.view -side top -anchor w 307 307 radiobutton .images.cntls.legend -text "Legend" -variable images(which) \ 308 308 -value "legend" -command images_refresh 309 309 pack .images.cntls.legend -side top -anchor w 310 set images(which) " 3dview"310 set images(which) "view" 311 311 312 312 canvas .images.viewer -background black -width 500 -height 500 … … 350 350 351 351 set f [.main pane 0] 352 set servers [Rappture::VisViewer::GetServerList "nanovis"] 353 Rappture::NanovisViewer $f.viewer $servers 352 Rappture::NanovisViewer $f.viewer 354 353 pack $f.viewer -expand yes -fill both 355 354 set widgets(nanovis) $f.viewer -
branches/1.5/gui/apps/vtkglyphs-test
r5679 r6127 347 347 348 348 set f [.main pane 0] 349 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 350 Rappture::VtkGlyphViewer $f.viewer $servers 349 Rappture::VtkGlyphViewer $f.viewer 351 350 pack $f.viewer -expand yes -fill both 352 351 set widgets(vtkglyphviewer) $f.viewer -
branches/1.5/gui/apps/vtkheightmap-test
r5679 r6127 344 344 345 345 set f [.main pane 0] 346 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 347 Rappture::VtkHeightmapViewer $f.viewer $servers 346 Rappture::VtkHeightmapViewer $f.viewer 348 347 pack $f.viewer -expand yes -fill both 349 348 set widgets(vtkheightmapviewer) $f.viewer -
branches/1.5/gui/apps/vtkisosurface-test
r5679 r6127 344 344 345 345 set f [.main pane 0] 346 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 347 Rappture::VtkIsosurfaceViewer $f.viewer $servers 346 Rappture::VtkIsosurfaceViewer $f.viewer 348 347 pack $f.viewer -expand yes -fill both 349 348 set widgets(vtkisosurfaceviewer) $f.viewer -
branches/1.5/gui/apps/vtkstreamlines-test
r4413 r6127 344 344 345 345 set f [.main pane 0] 346 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 347 Rappture::VtkStreamlinesViewer $f.viewer $servers 346 Rappture::VtkStreamlinesViewer $f.viewer 348 347 pack $f.viewer -expand yes -fill both 349 348 set widgets(vtkviewer) $f.viewer -
branches/1.5/gui/apps/vtkviewer-test
r5679 r6127 388 388 389 389 set f [.main pane 0] 390 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 391 Rappture::VtkViewer $f.viewer $servers 390 Rappture::VtkViewer $f.viewer 392 391 pack $f.viewer -expand yes -fill both 393 392 set widgets(vtkviewer) $f.viewer -
branches/1.5/gui/apps/vtkvolume-test
r5679 r6127 344 344 345 345 set f [.main pane 0] 346 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 347 Rappture::VtkVolumeViewer $f.viewer $servers 346 Rappture::VtkVolumeViewer $f.viewer 348 347 pack $f.viewer -expand yes -fill both 349 348 set widgets(vtkvolumeviewer) $f.viewer -
branches/1.5/gui/configure
r6058 r6127 587 587 ac_subst_vars='LTLIBOBJS 588 588 LIBOBJS 589 TCL_SHLIB_SUFFIX590 TCL_SHLIB_LDFLAGS591 TCL_SHLIB_CFLAGS592 TCL_SHLIB_LD593 TCL_STLIB_LD594 TCL_CFLAGS_OPTIMIZE595 TCL_CFLAGS_DEBUG596 589 TK_VERSION 597 590 TK_XLIBSW … … 599 592 TK_INC_SPEC 600 593 TCL_VERSION 594 TCL_STLIB_LD 595 TCL_SHLIB_SUFFIX 596 TCL_SHLIB_LDFLAGS 597 TCL_SHLIB_LD 598 TCL_SHLIB_CFLAGS 601 599 TCL_LIB_SPEC 602 600 TCL_INC_SPEC 601 TCL_CFLAGS_OPTIMIZE 602 TCL_CFLAGS_DEBUG 603 SVN_VERSION 604 SVN_URL 605 INSTALL_PREFIX 603 606 TCLSH 604 607 ENABLE_GUI … … 1823 1826 fi 1824 1827 1828 INSTALL_PREFIX=$prefix 1829 1825 1830 if test "${libdir}" != "${prefix}/lib"; then 1826 1831 LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" … … 3003 3008 #SC_ENABLE_SHARED 3004 3009 3010 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'` 3011 SVN_URL=`readlink -e $srcdir | xargs svn info | sed -ne 's/^URL: //p'` 3012 3005 3013 gui_with_tcl="" 3006 3014 … … 3125 3133 . ${exec_prefix}/lib/tkConfig.sh 3126 3134 fi 3135 3136 3137 3138 3127 3139 3128 3140 -
branches/1.5/gui/configure.in
r6058 r6127 12 12 exec_prefix=$prefix 13 13 fi 14 15 INSTALL_PREFIX=$prefix 14 16 15 17 if test "${libdir}" != "${prefix}/lib"; then … … 31 33 #SC_CONFIG_CFLAGS 32 34 #SC_ENABLE_SHARED 35 36 SVN_VERSION=`svnversion $srcdir | sed 's/Unversioned directory/unknown/'` 37 SVN_URL=`readlink -e $srcdir | xargs svn info | sed -ne 's/^URL: //p'` 33 38 34 39 gui_with_tcl="" … … 146 151 . ${exec_prefix}/lib/tkConfig.sh 147 152 fi 153 154 AC_SUBST(INSTALL_PREFIX) 155 AC_SUBST(SVN_URL) 156 AC_SUBST(SVN_VERSION) 157 AC_SUBST(TCL_CFLAGS_DEBUG) 158 AC_SUBST(TCL_CFLAGS_OPTIMIZE) 148 159 AC_SUBST(TCL_INC_SPEC) 149 160 AC_SUBST(TCL_LIB_SPEC) 161 AC_SUBST(TCL_SHLIB_CFLAGS) 162 AC_SUBST(TCL_SHLIB_LD) 163 AC_SUBST(TCL_SHLIB_LDFLAGS) 164 AC_SUBST(TCL_SHLIB_SUFFIX) 165 AC_SUBST(TCL_STLIB_LD) 150 166 AC_SUBST(TCL_VERSION) 151 167 AC_SUBST(TK_INC_SPEC) … … 153 169 AC_SUBST(TK_XLIBSW) 154 170 AC_SUBST(TK_VERSION) 155 AC_SUBST(TCL_CFLAGS_DEBUG)156 AC_SUBST(TCL_CFLAGS_OPTIMIZE)157 AC_SUBST(TCL_STLIB_LD)158 AC_SUBST(TCL_SHLIB_LD)159 AC_SUBST(TCL_SHLIB_CFLAGS)160 AC_SUBST(TCL_SHLIB_LDFLAGS)161 AC_SUBST(TCL_SHLIB_SUFFIX)162 171 163 172 -
branches/1.5/gui/pkgIndex.tcl.in
r5121 r6127 8 8 namespace eval RapptureGUI { 9 9 variable version $version 10 variable build "@SVN_VERSION@" 11 variable svnurl "@SVN_URL@" 12 variable installdir $dir 10 13 variable library $dir 11 14 } -
branches/1.5/gui/scripts/deviceEditor.tcl
r5679 r6127 182 182 destroy $itk_component(hull).dev 183 183 } 184 set servers [Rappture::VisViewer::GetServerList "pymol"] 185 Rappture::MolvisViewer $itk_component(hull).mol $servers 184 Rappture::MolvisViewer $itk_component(hull).mol 186 185 pack $itk_component(hull).mol -expand yes -fill both 187 186 } -
branches/1.5/gui/scripts/fieldresult.tcl
r5679 r6127 56 56 } 57 57 array set flags $args 58 set servers ""59 58 switch -- $flags(-mode) { 60 "nanovis" - "flowvis" { 61 set servers [Rappture::VisViewer::GetServerList "nanovis"] 62 } 63 "contour" - "glyphs" - "heightmap" - "isosurface" - "streamlines" - "surface" - "vtkimage" - "vtkviewer" - "vtkvolume" { 64 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 59 "nanovis" { 60 itk_component add renderer { 61 Rappture::NanovisViewer $itk_interior.ren 62 } 63 } 64 "flowvis" { 65 itk_component add renderer { 66 Rappture::FlowvisViewer $itk_interior.ren 67 } 68 } 69 "glyphs" { 70 itk_component add renderer { 71 Rappture::VtkGlyphViewer $itk_interior.ren 72 } 73 } 74 "contour" - "heightmap" { 75 itk_component add renderer { 76 Rappture::VtkHeightmapViewer $itk_interior.ren \ 77 -mode $flags(-mode) 78 } 79 } 80 "isosurface" { 81 itk_component add renderer { 82 Rappture::VtkIsosurfaceViewer $itk_interior.ren 83 } 84 } 85 "streamlines" { 86 itk_component add renderer { 87 Rappture::VtkStreamlinesViewer $itk_interior.ren 88 } 89 } 90 "surface" { 91 itk_component add renderer { 92 Rappture::VtkSurfaceViewer $itk_interior.ren 93 } 94 } 95 "vtkimage" { 96 itk_component add renderer { 97 Rappture::VtkImageViewer $itk_interior.ren 98 } 99 } 100 "vtkviewer" { 101 itk_component add renderer { 102 Rappture::VtkViewer $itk_interior.ren 103 } 104 } 105 "vtkvolume" { 106 itk_component add renderer { 107 Rappture::VtkVolumeViewer $itk_interior.ren 108 } 65 109 } 66 110 default { … … 68 112 } 69 113 } 70 if {"" != $servers} { 71 switch -- $flags(-mode) { 72 "nanovis" { 73 itk_component add renderer { 74 Rappture::NanovisViewer $itk_interior.ren $servers 75 } 76 } 77 "flowvis" { 78 itk_component add renderer { 79 Rappture::FlowvisViewer $itk_interior.ren $servers 80 } 81 } 82 "glyphs" { 83 itk_component add renderer { 84 Rappture::VtkGlyphViewer $itk_interior.ren $servers 85 } 86 } 87 "contour" - "heightmap" { 88 itk_component add renderer { 89 Rappture::VtkHeightmapViewer $itk_interior.ren $servers \ 90 -mode $flags(-mode) 91 } 92 } 93 "isosurface" { 94 itk_component add renderer { 95 Rappture::VtkIsosurfaceViewer $itk_interior.ren $servers 96 } 97 } 98 "streamlines" { 99 itk_component add renderer { 100 Rappture::VtkStreamlinesViewer $itk_interior.ren $servers 101 } 102 } 103 "surface" { 104 itk_component add renderer { 105 Rappture::VtkSurfaceViewer $itk_interior.ren $servers 106 } 107 } 108 "vtkimage" { 109 itk_component add renderer { 110 Rappture::VtkImageViewer $itk_interior.ren $servers 111 } 112 } 113 "vtkviewer" { 114 itk_component add renderer { 115 Rappture::VtkViewer $itk_interior.ren $servers 116 } 117 } 118 "vtkvolume" { 119 itk_component add renderer { 120 Rappture::VtkVolumeViewer $itk_interior.ren $servers 121 } 122 } 123 default { 124 puts stderr "unknown render mode \"$flags(-mode)\"" 125 } 126 } 127 pack $itk_component(renderer) -expand yes -fill both 128 129 # can't connect to rendering farm? 130 if {![$itk_component(renderer) isconnected]} { 131 # Should show a message here 132 #destroy $itk_component(renderer) 133 } 114 pack $itk_component(renderer) -expand yes -fill both 115 116 # can't connect to rendering farm? 117 if {![$itk_component(renderer) isconnected]} { 118 # Should show a message here 119 #destroy $itk_component(renderer) 134 120 } 135 121 -
branches/1.5/gui/scripts/flowvisviewer.tcl
r5850 r6127 42 42 itk_option define -plotoutline plotOutline PlotOutline "" 43 43 44 constructor { hostlistargs } {45 Rappture::VisViewer::constructor $hostlist44 constructor { args } { 45 Rappture::VisViewer::constructor 46 46 } { 47 47 # defined below … … 169 169 # CONSTRUCTOR 170 170 # ---------------------------------------------------------------------- 171 itcl::body Rappture::FlowvisViewer::constructor { hostlistargs} {171 itcl::body Rappture::FlowvisViewer::constructor {args} { 172 172 set _serverType "nanovis" 173 173 -
branches/1.5/gui/scripts/molvisviewer.tcl
r5850 r6127 33 33 itk_option define -device device Device "" 34 34 35 constructor { serversargs } {36 Rappture::VisViewer::constructor $servers35 constructor { args } { 36 Rappture::VisViewer::constructor 37 37 } { 38 38 # defined below … … 149 149 # CONSTRUCTOR 150 150 # ---------------------------------------------------------------------- 151 itcl::body Rappture::MolvisViewer::constructor { serversargs} {151 itcl::body Rappture::MolvisViewer::constructor {args} { 152 152 set _serverType "pymol" 153 153 -
branches/1.5/gui/scripts/nanovisviewer.tcl
r5850 r6127 42 42 itk_option define -plotoutline plotOutline PlotOutline "" 43 43 44 constructor { hostlistargs } {45 Rappture::VisViewer::constructor $hostlist44 constructor { args } { 45 Rappture::VisViewer::constructor 46 46 } { 47 47 # defined below … … 150 150 # CONSTRUCTOR 151 151 # ---------------------------------------------------------------------- 152 itcl::body Rappture::NanovisViewer::constructor { hostlistargs} {152 itcl::body Rappture::NanovisViewer::constructor {args} { 153 153 set _serverType "nanovis" 154 154 -
branches/1.5/gui/scripts/resultviewer.tcl
r5885 r6127 280 280 set mode "vtkviewer" 281 281 if {![info exists _mode2widget($mode)]} { 282 set servers [Rappture::VisViewer::GetServerList "vtkvis"]283 282 set w $itk_interior.vtkviewer 284 Rappture::VtkViewer $w $servers283 Rappture::VtkViewer $w 285 284 set _mode2widget($mode) $w 286 285 } … … 343 342 set mode "vtkmeshviewer" 344 343 if {![info exists _mode2widget($mode)]} { 345 set servers [Rappture::VisViewer::GetServerList "vtkvis"]346 344 set w $itk_interior.$mode 347 Rappture::VtkMeshViewer $w $servers345 Rappture::VtkMeshViewer $w 348 346 set _mode2widget($mode) $w 349 347 } -
branches/1.5/gui/scripts/sequenceresult.tcl
r5679 r6127 453 453 switch -- $type { 454 454 ::Rappture::Drawing { 455 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 456 Rappture::VtkViewer $w $servers 455 Rappture::VtkViewer $w 457 456 pack $w -expand yes -fill both 458 457 } -
branches/1.5/gui/scripts/visviewer.tcl
r5850 r6127 61 61 protected variable _waitTimeout 0 62 62 63 constructor { serversargs } {63 constructor { args } { 64 64 # defined below 65 65 } … … 163 163 # CONSTRUCTOR 164 164 # ---------------------------------------------------------------------- 165 itcl::body Rappture::VisViewer::constructor { serversargs } {165 itcl::body Rappture::VisViewer::constructor { args } { 166 166 167 167 Rappture::dispatcher _dispatcher … … 173 173 $_dispatcher register !waiting 174 174 175 CheckNameList $servers176 175 set _buffer(in) "" 177 176 set _buffer(out) "" -
branches/1.5/gui/scripts/vtkglyphviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 156 156 # CONSTRUCTOR 157 157 # ---------------------------------------------------------------------- 158 itcl::body Rappture::VtkGlyphViewer::constructor { hostlistargs} {158 itcl::body Rappture::VtkGlyphViewer::constructor {args} { 159 159 set _serverType "vtkvis" 160 160 -
branches/1.5/gui/scripts/vtkheightmapviewer.tcl
r5921 r6127 40 40 itk_option define -mode mode Mode "contour" 41 41 42 constructor { hostlistargs } {43 Rappture::VisViewer::constructor $hostlist42 constructor { args } { 43 Rappture::VisViewer::constructor 44 44 } { 45 45 # defined below … … 167 167 # CONSTRUCTOR 168 168 # ---------------------------------------------------------------------- 169 itcl::body Rappture::VtkHeightmapViewer::constructor { hostlistargs} {169 itcl::body Rappture::VtkHeightmapViewer::constructor {args} { 170 170 set _serverType "vtkvis" 171 171 -
branches/1.5/gui/scripts/vtkimageviewer.tcl
r5850 r6127 40 40 itk_option define -mode mode Mode "vtkimage" 41 41 42 constructor { hostlistargs } {43 Rappture::VisViewer::constructor $hostlist42 constructor { args } { 43 Rappture::VisViewer::constructor 44 44 } { 45 45 # defined below … … 162 162 # CONSTRUCTOR 163 163 # ---------------------------------------------------------------------- 164 itcl::body Rappture::VtkImageViewer::constructor { hostlistargs} {164 itcl::body Rappture::VtkImageViewer::constructor {args} { 165 165 set _serverType "vtkvis" 166 166 -
branches/1.5/gui/scripts/vtkisosurfaceviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 179 179 # CONSTRUCTOR 180 180 # ---------------------------------------------------------------------- 181 itcl::body Rappture::VtkIsosurfaceViewer::constructor { hostlistargs} {181 itcl::body Rappture::VtkIsosurfaceViewer::constructor {args} { 182 182 set _serverType "vtkvis" 183 183 #DebugOn -
branches/1.5/gui/scripts/vtkmeshviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 133 133 # CONSTRUCTOR 134 134 # ---------------------------------------------------------------------- 135 itcl::body Rappture::VtkMeshViewer::constructor { hostlistargs} {135 itcl::body Rappture::VtkMeshViewer::constructor {args} { 136 136 set _serverType "vtkvis" 137 137 -
branches/1.5/gui/scripts/vtkstreamlinesviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 158 158 # CONSTRUCTOR 159 159 # ---------------------------------------------------------------------- 160 itcl::body Rappture::VtkStreamlinesViewer::constructor { hostlistargs} {160 itcl::body Rappture::VtkStreamlinesViewer::constructor {args} { 161 161 set _serverType "vtkvis" 162 162 -
branches/1.5/gui/scripts/vtksurfaceviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 157 157 # CONSTRUCTOR 158 158 # ---------------------------------------------------------------------- 159 itcl::body Rappture::VtkSurfaceViewer::constructor { hostlistargs} {159 itcl::body Rappture::VtkSurfaceViewer::constructor {args} { 160 160 set _serverType "vtkvis" 161 161 -
branches/1.5/gui/scripts/vtkviewer.tcl
r6046 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 172 172 # CONSTRUCTOR 173 173 # ---------------------------------------------------------------------- 174 itcl::body Rappture::VtkViewer::constructor { hostlistargs} {174 itcl::body Rappture::VtkViewer::constructor {args} { 175 175 package require vtk 176 176 set _serverType "vtkvis" -
branches/1.5/gui/scripts/vtkvolumeviewer.tcl
r5850 r6127 39 39 itk_option define -plotbackground plotBackground Background "" 40 40 41 constructor { hostlistargs } {42 Rappture::VisViewer::constructor $hostlist41 constructor { args } { 42 Rappture::VisViewer::constructor 43 43 } { 44 44 # defined below … … 163 163 # CONSTRUCTOR 164 164 # ---------------------------------------------------------------------- 165 itcl::body Rappture::VtkVolumeViewer::constructor { hostlistargs} {165 itcl::body Rappture::VtkVolumeViewer::constructor {args} { 166 166 set _serverType "vtkvis" 167 167 -
branches/1.5/gui/test/gauge.test
r5167 r6127 61 61 } -result {4} 62 62 63 test gauge.value.4 {value command, just -check flag, valueis returned} \63 test gauge.value.4 {value command, just -check flag, error is returned} \ 64 64 -setup { 65 65 set w [Rappture::Gauge .#auto] … … 69 69 destroy $w 70 70 catch {unset w} 71 } -result {0} 71 } -returnCodes { 72 error 73 } -result {wrong # args: should be "value ?-check? ?newval?"} 72 74 73 test gauge.value.5 {value command, invalid flag, return error} \ 75 test gauge.value.5 {value command, -check flag, orig value is unchanged} \ 76 -setup { 77 set w [Rappture::Gauge .#auto] 78 $w value 2 79 } -body { 80 $w value -check 4 81 $w value 82 } -cleanup { 83 destroy $w 84 catch {unset w} 85 } -result {2} 86 87 test gauge.value.6 {value command, invalid flag, return error} \ 74 88 -setup { 75 89 set w [Rappture::Gauge .#auto] 76 90 } -body { 77 list [catch {$w value -chcek} msg] $msg91 $w value -chcek 78 92 } -cleanup { 79 93 destroy $w 80 94 catch {unset w} 81 } -result {1 {bad value "-chcek": should be a real number}} 95 } -returnCodes { 96 error 97 } -result {bad value "-chcek": should be a real number} 82 98 83 99 ::tcltest::cleanupTests -
branches/1.5/gui/test/vtkisosurfaceviewer.test
r5167 r6127 1 1 # Commands covered: 2 # Rappture::Gauge 3 # Rappture::Gauge::value 2 # Rappture::VtkIsosurfaceViewer 4 3 # 5 4 # This file contains a collection of tests for one of the Rappture Tcl … … 8 7 # 9 8 # ====================================================================== 10 # AUTHOR: Derrick Kearney, Purdue University 11 # Copyright (c) 2004-2012 HUBzero Foundation, LLC 9 # AUTHORS: 10 # Derrick Kearney, Purdue University 11 # Leif Delgass, Purdue University 12 # Copyright (c) 2004-2016 HUBzero Foundation, LLC 12 13 # 13 14 # See the file "license.terms" for information on usage and redistribution … … 17 18 if {[lsearch [namespace children] ::tcltest] == -1} { 18 19 package require tcltest 20 package require Rappture 19 21 package require RapptureGUI 20 22 namespace import -force ::tcltest::* 21 23 } 22 24 23 set servers [Rappture::VisViewer::GetServerList "vtkvis"] 24 25 Rappture::VtkIsosurfaceViewer .#auto $servers 25 Rappture::resources::load 26 26 27 27 #---------------------------------------------------------- … … 31 31 # Rappture::VtkIsosurfaceViewer <name> <servers> 32 32 #---------------------------------------------------------- 33 test vtkisosurfaceviewer.constructor. 1{34 value command, 0 args, missing server list error33 test vtkisosurfaceviewer.constructor.0 { 34 constructor, 0 args, auto named 35 35 } -setup { 36 36 } -body { 37 list [catch {Rappture::VtkIsosurfaceViewer .#auto} msg] $msg37 Rappture::VtkIsosurfaceViewer .#auto 38 38 } -cleanup { 39 } -result {1 {wrong # args: should be "::Rappture::VtkIsosurfaceViewer .vtkIsosurfaceViewer1 hostlist ?arg arg ...?"}} 39 } -match glob \ 40 -result {.vtkIsosurfaceViewer*} \ 41 -errorOutput {connecting to *:2010... 42 Render server is VtkVis * (build *) 43 } 44 45 test vtkisosurfaceviewer.constructor.1 { 46 constructor, 0 args, explicit name 47 } -setup { 48 } -body { 49 Rappture::VtkIsosurfaceViewer .foo 50 } -cleanup { 51 } -match glob \ 52 -result {.foo} \ 53 -errorOutput {connecting to *:2010... 54 Render server is VtkVis * (build *) 55 } 40 56 41 57 test vtkisosurfaceviewer.constructor.2 { 42 value command, 1 args empty hostlist, empty hostlist uses visviewer defaults58 value command, auto name, -plotbackground option 43 59 } -setup { 44 60 } -body { 45 catch {Rappture::VtkIsosurfaceViewer .#auto {}} msg61 Rappture::VtkIsosurfaceViewer .#auto -plotbackground red 46 62 } -cleanup { 47 } -result {0} 63 } -match glob \ 64 -result {.vtkIsosurfaceViewer*} \ 65 -errorOutput {connecting to *:2010... 66 Render server is VtkVis * (build *) 67 } 48 68 49 69 test vtkisosurfaceviewer.constructor.3 { 50 value command, 1 args valid hostlist70 value command, bad option 51 71 } -setup { 52 72 } -body { 53 catch {Rappture::VtkIsosurfaceViewer .#auto $servers} msg73 Rappture::VtkIsosurfaceViewer .#auto -nonexistent foo 54 74 } -cleanup { 55 } -result {0} 56 57 #test vtkisosurfaceviewer.constructor.5 { 58 # value command, 1 args valid hostlist 59 #} -setup { 60 #} -body { 61 # set w [Rappture::VtkIsosurfaceViewer .#auto $servers] 62 #} -cleanup { 63 # destroy $w 64 # catch {unset w} 65 #} -result {} 75 } -returnCodes { 76 error 77 } -result {unknown option "-nonexistent"} 66 78 67 79 ::tcltest::cleanupTests
Note: See TracChangeset
for help on using the changeset viewer.