Changeset 4265 for trunk


Ignore:
Timestamp:
Mar 25, 2014, 3:15:03 PM (11 years ago)
Author:
ldelgass
Message:

Add elevation map layer type

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/geoviewer.tcl

    r4264 r4265  
    580580            set type [$dataobj type $layer]
    581581            switch -- $type {
    582                 "terrain" {
     582                "elevation" {
    583583                    set _haveTerrain 1
    584584                }
     
    869869                    continue
    870870                }
    871                 # Is is a "image", "model", or "terrain" layer?
     871                # FIXME: wms, tms layers have additional options
    872872                switch -- $info(type) {
    873873                    "raster" {
     
    875875                    }
    876876                    default {
    877                         set type "model"
     877                        set type "$info(type)"
    878878                    }
    879879                }
     
    13081308        -icon [Rappture::icon mesh]]
    13091309    $inner configure -borderwidth 4
    1310 
    1311     checkbutton $inner.mesh \
    1312         -text "Show Mesh" \
    1313         -variable [itcl::scope _settings(terrain-visible)] \
    1314         -command [itcl::code $this AdjustSetting terrain-visible] \
    1315         -font "Arial 9" -anchor w
    13161310
    13171311    checkbutton $inner.wireframe \
     
    13591353        [itcl::code $this AdjustSetting terrain-palette]
    13601354
    1361     label $inner.opacity_l -text "Opacity" -font "Arial 9" -anchor w
    1362     ::scale $inner.opacity -from 0 -to 100 -orient horizontal \
    1363         -variable [itcl::scope _settings(terrain-opacity)] \
     1355    label $inner.vscale_l -text "Vertical Scale" -font "Arial 9" -anchor w
     1356    ::scale $inner.vscale -from 0 -to 100 -orient horizontal \
     1357        -variable [itcl::scope _settings(terrain-vertscale)] \
    13641358        -width 10 \
    13651359        -showvalue off \
    1366         -command [itcl::code $this AdjustSetting terrain-opacity]
    1367     $inner.opacity set $_settings(terrain-opacity)
     1360        -command [itcl::code $this AdjustSetting terrain-vertscale]
     1361    $inner.vscale set $_settings(terrain-vertscale)
    13681362
    13691363    blt::table $inner \
    1370         0,0 $inner.mesh      -cspan 2  -anchor w -pady 2 \
    1371         1,0 $inner.wireframe -cspan 2  -anchor w -pady 2 \
    1372         2,0 $inner.lighting  -cspan 2  -anchor w -pady 2 \
    1373         3,0 $inner.edges     -cspan 2  -anchor w -pady 2 \
    1374         4,0 $inner.opacity_l -anchor w -pady 2 \
    1375         4,1 $inner.opacity   -fill x   -pady 2 \
     1364        0,0 $inner.wireframe -cspan 2  -anchor w -pady 2 \
     1365        1,0 $inner.lighting  -cspan 2  -anchor w -pady 2 \
     1366        2,0 $inner.edges     -cspan 2  -anchor w -pady 2 \
     1367        4,0 $inner.vscale_l  -anchor w -pady 2 \
     1368        4,1 $inner.vscale    -fill x   -pady 2 \
    13761369        5,0 $inner.palette_l -anchor w -pady 2 \
    13771370        5,1 $inner.palette   -fill x   -pady 2 
     
    15241517    }
    15251518    switch -- $type {
    1526         "terrain" {
     1519        "elevation" {
    15271520            array set settings {
    15281521                -edgecolor black
  • trunk/gui/scripts/map.tcl

    r4261 r4265  
    2929    private common _layerTypes {
    3030        "raster"        0
    31         "polygon"       1
    32         "points"        2
    33         "circle"        3
    34         "line"          4
     31        "elevation"     1
     32        "polygon"       2
     33        "points"        3
     34        "circle"        4
     35        "line"          5
    3536    }
    3637    protected method Parse { xmlobj path }
Note: See TracChangeset for help on using the changeset viewer.