VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
osgdb_osgearth_model_feature_custom
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
22
#include <
osgdb_osgearth_model_feature_custom/FeatureCustomModelOptions.h
>
23
24
namespace
osgEarth {
namespace
Features
25
{
26
using namespace
osgEarth;
27
using namespace
osgEarth::Symbology;
28
using namespace
osgEarth::Drivers;
29
30
class
OSGDB_OSGEARTH_MODEL_FEATURE_CUSTOM_EXPORT
CustomModelFeatureNodeFactory
31
:
public
FeatureNodeFactory
32
{
33
public
:
34
CustomModelFeatureNodeFactory
(
const
CustomModelCompilerOptions
& options =
CustomModelCompilerOptions
());
35
36
bool
createOrUpdateNode(
37
FeatureCursor* features,
38
const
Style& style,
39
const
FilterContext& context,
40
osg::ref_ptr<osg::Node>& node);
41
virtual
~
CustomModelFeatureNodeFactory
();
42
43
public
:
44
CustomModelCompilerOptions
_options
;
45
46
protected
:
47
virtual
CustomModelCompiler
* createCompiler(
const
CustomModelCompilerOptions
& opts)
const
;
48
};
49
51
class
OSGDB_OSGEARTH_MODEL_FEATURE_CUSTOM_EXPORT
FeatureCustomModelSource
:
public
FeatureModelSource
52
{
53
public
:
54
FeatureCustomModelSource
(
const
ModelSourceOptions
& options);
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
:
74
const
FeatureCustomModelOptions
_options
;
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)