osgEarth 2.1.1
|
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 #include <osgEarthSymbology/GeometrySymbol> 00020 00021 using namespace osgEarth::Symbology; 00022 00023 Stroke::Stroke() : 00024 _color( 1, 1, 1, 1 ), 00025 _lineCap( LINECAP_DEFAULT ), 00026 _lineJoin( LINEJOIN_DEFAULT ), 00027 _width( 1.0f ) 00028 { 00029 //nop 00030 } 00031 00032 Stroke::Stroke( float r, float g, float b, float a ) : 00033 _color( r, g, b, a ), 00034 _lineCap( LINECAP_DEFAULT ), 00035 _lineJoin( LINEJOIN_DEFAULT ), 00036 _width( 1.0f ) 00037 { 00038 //nop 00039 } 00040 00041 Fill::Fill( float r, float g, float b, float a ) : 00042 _color( r, g, b, a ) 00043 { 00044 //nop 00045 } 00046 00047 Fill::Fill() : 00048 _color( 1, 1, 1, 1 ) 00049 { 00050 //nop 00051 } 00052 00053 LineSymbol::LineSymbol() : 00054 _stroke( Stroke() ) 00055 { 00056 //nop 00057 } 00058 00059 00060 PolygonSymbol::PolygonSymbol() : 00061 _fill( Fill() ) 00062 { 00063 //nop 00064 } 00065 00066 PointSymbol::PointSymbol() : 00067 _fill( Fill() ), _size(1.0) 00068 { 00069 //nop 00070 } 00071