1/* -*-c++-*- */ 2/* osgEarth - Geospatial SDK for OpenSceneGraph 3 * Copyright 2019 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_DRIVER_KML_KML_CONTAINER 20#define OSGEARTH_DRIVER_KML_KML_CONTAINER 1 21 22#include "KML_Common" 23#include "KML_Feature" 24 25namespace osgEarth_kml 26{ 27 using namespace osgEarth; 28 29 struct KML_Container : public KML_Feature 30 { 31 virtual void scan( xml_node<>* node, KMLContext& cx ) 32 { 33 KML_Feature::scan(node, cx); 34 } 35 36 virtual void scan2( xml_node<>* node, KMLContext& cx ) 37 { 38 KML_Feature::scan2(node, cx); 39 } 40 41 virtual void build( xml_node<>* node, KMLContext& cx, osg::Node* working ) 42 { 43 // assumes the top of the group stack has a new and valid Node. 44 // don't call this is there was an error in the subclass build() method 45 KML_Feature::build(node, cx, working); 46 } 47 }; 48 49} // namespace osgEarth_kml 50 51#endif // OSGEARTH_DRIVER_KML_KML_CONTAINER 52