VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FeatureCustomModelSource.h
Go to the documentation of this file.
1 /* -*-c++-*- */
2 /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
3 * Copyright 2008-2010 Pelican Mapping
4 * http://osgearth.org
5 *
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.
10 *
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.
15 *
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/>
18 */
19 #ifndef OSGEARTH_FEATURES_CUSTOMMODEL_SOURCE_H
20 #define OSGEARTH_FEATURES_CUSTOMMODEL_SOURCE_H 1
21 
23 
24 namespace osgEarth { namespace Features
25 {
26  using namespace osgEarth;
27  using namespace osgEarth::Symbology;
28  using namespace osgEarth::Drivers;
29 
31  : public FeatureNodeFactory
32  {
33  public:
35 
36  bool createOrUpdateNode(
37  FeatureCursor* features,
38  const Style& style,
39  const FilterContext& context,
40  osg::ref_ptr<osg::Node>& node);
42 
43  public:
45 
46  protected:
47  virtual CustomModelCompiler* createCompiler(const CustomModelCompilerOptions& opts) const;
48  };
49 
52  {
53  public:
55 
56  const FeatureCustomModelOptions& getOptions() const;
57 
58  //override
59  osg::Node* createNodeImplementation(
60  const Map* map,
61  ProgressCallback* progress);
62 
63  //override
64  FeatureNodeFactory* createFeatureNodeFactory();
65 
66  protected:
68  virtual ~FeatureCustomModelSource();
69 
70  // override
71  Status initialize(const osgDB::Options* dbOptions);
72 
73  private:
75  osg::ref_ptr<const osgDB::Options> _dbOptions;
76  };
77 
78 } } // namespace osgEarth::Features
79 
80 #endif // OSGEARTH_FEATURES_CUSTOMMODEL_SOURCE_H

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)