osgEarth 2.1.1

/home/cube/sources/osgearth/src/osgEarthFeatures/MarkerFactory

Go to the documentation of this file.
00001 /* -*-c++-*- */
00002 /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
00003  * Copyright 2008-2010 Pelican Mapping
00004  * http://osgearth.org
00005  *
00006  * osgEarth is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU Lesser General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public License
00017  * along with this program.  If not, see <http://www.gnu.org/licenses/>
00018  */
00019 
00020 #ifndef OSGEARTHFEATURES_MARKER_FACTORY_H
00021 #define OSGEARTHFEATURES_MARKER_FACTORY_H 1
00022 
00023 #if 0
00024 
00025 #include <osgEarthFeatures/Common>
00026 #include <osgEarthFeatures/Session>
00027 #include <osgEarthFeatures/Feature>
00028 #include <osgEarthSymbology/MarkerSymbol>
00029 #include <osg/Node>
00030 
00031 namespace osgEarth { namespace Features
00032 {
00033     using namespace osgEarth;
00034     using namespace osgEarth::Symbology;
00035 
00039     class OSGEARTHFEATURES_EXPORT MarkerFactory
00040     {
00041     public:
00045         MarkerFactory(Session* session =0L);
00046 
00047         osg::Node* getOrCreateNode( const Feature* feature, const MarkerSymbol* symbol, bool useCache =true );
00048 
00050         osg::Image* getOrCreateImage( const MarkerSymbol* symbol, bool useCache =true );
00051 
00052         //URI getRawURI( const MarkerSymbol* symbol ) const;
00053 
00057         //osg::Node* getOrCreateNode( const std::string& markerURI, bool useCache =true );
00058 
00059     protected:
00060         osg::Node* createFromURI( const URI& uri ) const;
00061         osg::Image* createImageFromURI( const URI& uri ) const;
00062 
00063     protected:
00064         osg::ref_ptr<Session> _session;
00065     };
00066 
00067 } } // namespace osgEarth::Features
00068 
00069 #endif
00070 
00071 #endif // OSGEARTHFEATURES_MARKER_FACTORY_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines