- Timestamp:
- May 23, 2011, 3:57:01 PM (13 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/Makefile.in
r2257 r2259 43 43 $(srcdir)/dispatcher.tcl \ 44 44 $(srcdir)/drawing.tcl \ 45 $(srcdir)/drawing 1.tcl \46 $(srcdir)/ drawing2.tcl \45 $(srcdir)/drawing3d.tcl \ 46 $(srcdir)/scene.tcl \ 47 47 $(srcdir)/drawingentry.tcl \ 48 48 $(srcdir)/dropdown.tcl \ -
trunk/gui/scripts/analyzer.tcl
r2257 r2259 544 544 _autoLabel $xmlobj output.$item "String" counters 545 545 } 546 histogram* - curve* - field* - drawing2*{546 histogram* - curve* - field* { 547 547 _autoLabel $xmlobj output.$item "Plot" counters 548 } 549 scene* - drawing3d* { 550 _autoLabel $xmlobj output.$item "Drawing" counters 548 551 } 549 552 structure* { … … 556 559 _autoLabel $xmlobj output.$item "Sequence" counters 557 560 } 561 default { 562 puts stderr "unknown output $item" 563 } 558 564 } 559 565 set label [$xmlobj get output.$item.about.group] -
trunk/gui/scripts/drawing3d.tcl
r2257 r2259 1 1 2 2 # ---------------------------------------------------------------------- 3 # COMPONENT: drawing 1- represents a vtk drawing.3 # COMPONENT: drawing3d - represents a vtk drawing. 4 4 # 5 5 # This object represents one field in an XML description of a device. … … 21 21 } 22 22 23 itcl::class Rappture::Drawing 1{23 itcl::class Rappture::Drawing3d { 24 24 constructor {xmlobj path} { 25 25 # defined below … … 48 48 # Constructor 49 49 # ---------------------------------------------------------------------- 50 itcl::body Rappture::Drawing 1::constructor {xmlobj path} {50 itcl::body Rappture::Drawing3d::constructor {xmlobj path} { 51 51 if {![Rappture::library isvalid $xmlobj]} { 52 52 error "bad value \"$xmlobj\": should be Rappture::library" … … 130 130 # Destructor 131 131 # ---------------------------------------------------------------------- 132 itcl::body Rappture::Drawing 1::destructor {} {132 itcl::body Rappture::Drawing3d::destructor {} { 133 133 foreach key [array names _actors] { 134 134 set actor _actors($key) … … 142 142 # on the nanovis server. 143 143 # ---------------------------------------------------------------------- 144 itcl::body Rappture::Drawing 1::style { elem } {144 itcl::body Rappture::Drawing3d::style { elem } { 145 145 if { [info exists _styles($elem)] } { 146 146 return $_styles($elem) … … 155 155 # on the nanovis server. 156 156 # ---------------------------------------------------------------------- 157 itcl::body Rappture::Drawing 1::data { elem } {157 itcl::body Rappture::Drawing3d::data { elem } { 158 158 if { [info exists _data($elem)] } { 159 159 return $_data($elem) … … 168 168 # on the nanovis server. 169 169 # ---------------------------------------------------------------------- 170 itcl::body Rappture::Drawing 1::values { elem } {170 itcl::body Rappture::Drawing3d::values { elem } { 171 171 if { [info exists _actors($elem)] } { 172 172 return $_actors($elem) … … 175 175 } 176 176 177 itcl::body Rappture::Drawing 1::components { args } {177 itcl::body Rappture::Drawing3d::components { args } { 178 178 return [array names _actors] 179 179 } … … 184 184 # specified axis. 185 185 # ---------------------------------------------------------------------- 186 itcl::body Rappture::Drawing 1::limits {which} {186 itcl::body Rappture::Drawing3d::limits {which} { 187 187 set min "" 188 188 set max "" … … 248 248 # the hint for that <keyword>, if it exists. 249 249 # ---------------------------------------------------------------------- 250 itcl::body Rappture::Drawing 1::hints { {keyword ""} } {250 itcl::body Rappture::Drawing3d::hints { {keyword ""} } { 251 251 if 0 { 252 252 if {[info exists _hints(xlabel)] && "" != $_hints(xlabel) -
trunk/gui/scripts/resultviewer.tcl
r2257 r2259 215 215 } 216 216 } 217 ::Rappture::Drawing 1{217 ::Rappture::Drawing3d { 218 218 set mode "vtkviewer" 219 219 if {![info exists _mode2widget($mode)]} { … … 223 223 } 224 224 } 225 ::Rappture:: Drawing2{225 ::Rappture::Scene { 226 226 set mode "vtkviewer2" 227 227 if {![info exists _mode2widget($mode)]} { … … 494 494 return [$xmlobj element -as object $path] 495 495 } 496 drawing 1{497 return [Rappture::Drawing 1::#auto $xmlobj $path]498 } 499 drawing2{500 return [Rappture:: Drawing2::#auto $xmlobj $path]496 drawing3d { 497 return [Rappture::Drawing3d ::#auto $xmlobj $path] 498 } 499 scene { 500 return [Rappture::Scene ::#auto $xmlobj $path] 501 501 } 502 502 time - status { -
trunk/gui/scripts/scene.tcl
r2257 r2259 1 1 2 2 # ---------------------------------------------------------------------- 3 # COMPONENT: drawing2- represents a vtk drawing.3 # COMPONENT: scene - represents a vtk drawing. 4 4 # 5 5 # This object represents one field in an XML description of a device. … … 21 21 } 22 22 23 itcl::class Rappture:: Drawing2{23 itcl::class Rappture::Scene { 24 24 constructor {xmlobj path} { 25 25 # defined below … … 35 35 public method components { args } 36 36 37 private variable _ drawing237 private variable _scene 38 38 private variable _xmlobj 39 39 private variable _actors … … 48 48 # Constructor 49 49 # ---------------------------------------------------------------------- 50 itcl::body Rappture:: Drawing2::constructor {xmlobj path} {50 itcl::body Rappture::Scene::constructor {xmlobj path} { 51 51 if {![Rappture::library isvalid $xmlobj]} { 52 52 error "bad value \"$xmlobj\": should be Rappture::library" 53 53 } 54 54 set _xmlobj $xmlobj 55 set _ drawing2[$xmlobj element -as object $path]56 set _units [$_ drawing2get units]55 set _scene [$xmlobj element -as object $path] 56 set _units [$_scene get units] 57 57 58 58 set xunits [$xmlobj get units] … … 101 101 zmax zaxis.max 102 102 } { 103 set str [$_ drawing2get $path]103 set str [$_scene get $path] 104 104 if {"" != $str} { 105 105 set _hints($key) $str … … 107 107 } 108 108 foreach {key} { axisorder } { 109 set str [$_ drawing2get $key]109 set str [$_scene get $key] 110 110 if {"" != $str} { 111 111 set _hints($key) $str … … 117 117 # Destructor 118 118 # ---------------------------------------------------------------------- 119 itcl::body Rappture:: Drawing2::destructor {} {119 itcl::body Rappture::Scene::destructor {} { 120 120 # empty 121 121 } … … 127 127 # on the nanovis server. 128 128 # ---------------------------------------------------------------------- 129 itcl::body Rappture:: Drawing2::style { elem } {129 itcl::body Rappture::Scene::style { elem } { 130 130 if { [info exists _styles($elem)] } { 131 131 return $_styles($elem) … … 140 140 # on the nanovis server. 141 141 # ---------------------------------------------------------------------- 142 itcl::body Rappture:: Drawing2::data { elem } {142 itcl::body Rappture::Scene::data { elem } { 143 143 if { [info exists _data($elem)] } { 144 144 return $_data($elem) … … 153 153 # on the nanovis server. 154 154 # ---------------------------------------------------------------------- 155 itcl::body Rappture:: Drawing2::values { elem } {155 itcl::body Rappture::Scene::values { elem } { 156 156 if { [info exists _data($elem)] } { 157 157 return $_data($elem) … … 160 160 } 161 161 162 itcl::body Rappture:: Drawing2::components { args } {162 itcl::body Rappture::Scene::components { args } { 163 163 return [array names _data] 164 164 } … … 169 169 # specified axis. 170 170 # ---------------------------------------------------------------------- 171 itcl::body Rappture:: Drawing2::limits {which} {171 itcl::body Rappture::Scene::limits {which} { 172 172 set min "" 173 173 set max "" … … 233 233 # the hint for that <keyword>, if it exists. 234 234 # ---------------------------------------------------------------------- 235 itcl::body Rappture:: Drawing2::hints { {keyword ""} } {235 itcl::body Rappture::Scene::hints { {keyword ""} } { 236 236 if 0 { 237 237 if {[info exists _hints(xlabel)] && "" != $_hints(xlabel) -
trunk/gui/scripts/vtkviewer2.tcl
r2257 r2259 1562 1562 1563 1563 itcl::body Rappture::VtkViewer2::IsValidObject { dataobj } { 1564 if {[catch {$dataobj isa Rappture:: Drawing2} valid] != 0 || !$valid} {1564 if {[catch {$dataobj isa Rappture::Scene} valid] != 0 || !$valid} { 1565 1565 return 0 1566 1566 }
Note: See TracChangeset
for help on using the changeset viewer.