/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
 * Copyright 2008-2010 Pelican Mapping
 * http://osgearth.org
 *
 * osgEarth is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 */

#ifndef OSGEARTHSYMBOLOGY_EXTRUDED_SYMBOL_H
#define OSGEARTHSYMBOLOGY_EXTRUDED_SYMBOL_H 1

#include <osgEarth/Common>
#include <osgEarthSymbology/Common>
#include <osgEarthSymbology/GeometrySymbol>
#include <osg/Referenced>
#include <vector>

namespace osgEarth { namespace Symbology
{

    class OSGEARTHSYMBOLOGY_EXPORT Extrude
    {
    public:
        Extrude() : _height(1.0), _offset(0.0) {}

        float& height() { return _height; }
        const float& height() const { return _height; }

        float& offset() { return _offset; }
        const float& offset() const { return _offset; }

    protected:
        float _height;
        float _offset;
    };

    class OSGEARTHSYMBOLOGY_EXPORT ExtrudedLineSymbol : public LineSymbol
    {
    public:
        ExtrudedLineSymbol();

        optional<Extrude>& extrude() { return _extrude; }
        const optional<Extrude>& extrude() const { return _extrude; }

    protected:
        optional<Extrude> _extrude;
    };

    class OSGEARTHSYMBOLOGY_EXPORT ExtrudedPolygonSymbol : public PolygonSymbol
    {
    public:
        ExtrudedPolygonSymbol();

        optional<Extrude>& extrude() { return _extrude; }
        const optional<Extrude>& extrude() const { return _extrude; }

    protected:
        optional<Extrude> _extrude;
    };




} } // namespace osgEarth::Symbology

#endif
