1 | # -*- mode: tcl; indent-tabs-mode: nil -*- |
---|
2 | # ---------------------------------------------------------------------- |
---|
3 | # COMPONENT: geomapdataprovidertms - |
---|
4 | # holds data source information for a geomap |
---|
5 | # raster tms layer |
---|
6 | # |
---|
7 | # ====================================================================== |
---|
8 | # AUTHOR: Derrick Kearney, Purdue University |
---|
9 | # Copyright (c) 2004-2015 HUBzero Foundation, LLC |
---|
10 | # |
---|
11 | # See the file "license.terms" for information on usage and |
---|
12 | # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
13 | # ====================================================================== |
---|
14 | package require Itcl |
---|
15 | package require BLT |
---|
16 | |
---|
17 | namespace eval Rappture { |
---|
18 | # forward declaration |
---|
19 | } |
---|
20 | |
---|
21 | |
---|
22 | itcl::class Rappture::GeoMapDataProviderTMS { |
---|
23 | inherit Rappture::GeoMapDataProvider |
---|
24 | |
---|
25 | constructor {url args} { |
---|
26 | Rappture::GeoMapDataProvider::constructor "image" "tms" $url |
---|
27 | } { |
---|
28 | # defined below |
---|
29 | } |
---|
30 | destructor { |
---|
31 | # defined below |
---|
32 | } |
---|
33 | |
---|
34 | public method exportToBltTree { tree } |
---|
35 | } |
---|
36 | |
---|
37 | # ---------------------------------------------------------------------- |
---|
38 | # CONSTRUCTOR |
---|
39 | # ---------------------------------------------------------------------- |
---|
40 | itcl::body Rappture::GeoMapDataProviderTMS::constructor {url args} { |
---|
41 | |
---|
42 | eval configure $args |
---|
43 | } |
---|
44 | |
---|
45 | |
---|
46 | # ---------------------------------------------------------------------- |
---|
47 | # DESTRUCTOR |
---|
48 | # ---------------------------------------------------------------------- |
---|
49 | itcl::body Rappture::GeoMapDataProviderTMS::destructor {} { |
---|
50 | |
---|
51 | } |
---|
52 | |
---|
53 | # ---------------------------------------------------------------------- |
---|
54 | # ExportToBltTree: export object to a blt::tree |
---|
55 | # |
---|
56 | # ExportToBltTree $tree |
---|
57 | # |
---|
58 | # ---------------------------------------------------------------------- |
---|
59 | itcl::body Rappture::GeoMapDataProviderTMS::exportToBltTree {tree} { |
---|
60 | |
---|
61 | Rappture::GeoMapDataProvider::exportToBltTree $tree |
---|
62 | |
---|
63 | $tree set root \ |
---|
64 | tms.url [url] |
---|
65 | } |
---|
66 | |
---|