2
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
3
* Copyright 2008-2010 Pelican Mapping
6
* osgEarth is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU Lesser General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>
19
#ifndef OSGEARTH_COMPOSITING_H
20
#define OSGEARTH_COMPOSITING_H 1
22
#include <osg/Referenced>
24
#include <osg/MixinVector>
25
#include <osgEarth/Common>
26
#include <osgEarth/GeoData>
27
#include <osgEarth/TileKey>
28
#include <osgEarth/TileSource>
35
* Pairs an OSG image with TileKey parameters.
42
TileImage(osg::Image* image, const TileKey& key);
45
*Gets a reference to the Image held by this GeoImage
47
osg::Image* getImage() {return _image.get();}
49
osg::ref_ptr<osg::Image> _image;
50
double _minX, _minY, _maxX, _maxY;
56
* Utility class for extracting a single image from a collection of image tiles
58
class ImageMosaic : public osg::Referenced
63
osg::Image* createImage();
65
/** A list of GeoImages */
66
typedef std::vector<TileImage> TileImageList;
68
/** Gets the images for this ImageMosaic */
69
TileImageList& getImages() {return _images;}
71
void getExtents(double &minX, double &minY, double &maxX, double &maxY);
76
TileImageList _images;
80
#endif // OSGEARTH_COMPOSITING_H