Changeset 4284 for trunk/packages/vizservers
- Timestamp:
- Mar 27, 2014, 11:12:02 PM (11 years ago)
- Location:
- trunk/packages/vizservers/geovis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/geovis/Renderer.cpp
r4282 r4284 463 463 464 464 void Renderer::addImageLayer(const char *name, 465 constosgEarth::TileSourceOptions& opts,465 osgEarth::TileSourceOptions& opts, 466 466 bool makeShared, 467 467 bool visible) … … 557 557 558 558 void Renderer::addElevationLayer(const char *name, 559 const osgEarth::TileSourceOptions& opts) 560 { 559 osgEarth::TileSourceOptions& opts) 560 { 561 if (!opts.tileSize().isSet()) { 562 opts.tileSize() = 15; 563 } 564 osgEarth::ElevationLayerOptions layerOpts(name, opts); 561 565 // XXX: GDAL does not report vertical datum, it should be specified here 562 osgEarth::ElevationLayerOptions layerOpts(name, opts);563 566 // Common options: geodetic (default), egm96, egm84, egm2008 564 567 //layerOpts.verticalDatum() = "egm96"; … … 602 605 } 603 606 604 void Renderer::addModelLayer(const char *name, constosgEarth::ModelSourceOptions& opts)607 void Renderer::addModelLayer(const char *name, osgEarth::ModelSourceOptions& opts) 605 608 { 606 609 osgEarth::ModelLayerOptions layerOpts(name, opts); -
trunk/packages/vizservers/geovis/Renderer.h
r4282 r4284 169 169 } 170 170 171 void addImageLayer(const char *name, constosgEarth::TileSourceOptions& opts,171 void addImageLayer(const char *name, osgEarth::TileSourceOptions& opts, 172 172 bool makeShared = false, bool visible = true); 173 173 … … 191 191 } 192 192 193 void addElevationLayer(const char *name, constosgEarth::TileSourceOptions& opts);193 void addElevationLayer(const char *name, osgEarth::TileSourceOptions& opts); 194 194 195 195 void removeElevationLayer(const char *name); … … 206 206 } 207 207 208 void addModelLayer(const char *name, constosgEarth::ModelSourceOptions& opts);208 void addModelLayer(const char *name, osgEarth::ModelSourceOptions& opts); 209 209 210 210 void removeModelLayer(const char *name);
Note: See TracChangeset
for help on using the changeset viewer.