- Timestamp:
- Mar 25, 2014 7:52:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/map.tcl
r4265 r4270 25 25 itcl::class Rappture::Map { 26 26 private variable _tree ""; # Tree of information about the map. 27 private variable _isGeocentric 0; 27 28 private variable _isValid 0; 28 29 private variable _nextLayer 0; … … 44 45 } 45 46 47 public method isGeocentric {} 46 48 public method layers {} 47 49 public method extents {} … … 143 145 $_tree set root "projection" [$map get "projection"] 144 146 147 set mapType [$map get "type"] 148 if {$mapType == "geocentric"} { 149 set _isGeocentric 1 150 } elseif {$mapType != "projected"} { 151 error "Invalid map type: $mapType" 152 } 153 145 154 foreach {key path} { 146 155 toolId tool.id … … 186 195 } 187 196 188 197 # ---------------------------------------------------------------------- 198 # Returns if the map is geocentric (1) or projected (0) 199 # ---------------------------------------------------------------------- 200 itcl::body Rappture::Map::isGeocentric {} { 201 return $_isGeocentric 202 }
Note: See TracChangeset
for help on using the changeset viewer.