// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2004-2007 Torsten Rahn // Copyright 2007 Inge Wallin // Copyright 2008 Patrick Spendrin // #include "GeoDataPoint.h" #include "GeoDataPoint_p.h" #include "GeoDataCoordinates.h" #include #include #include "MarbleDebug.h" #include "global.h" namespace Marble { GeoDataPoint::GeoDataPoint( qreal _lon, qreal _lat, qreal _alt, GeoDataPoint::Unit unit, int _detail ) : GeoDataCoordinates( _lon, _lat, _alt, static_cast( unit ), _detail ), GeoDataGeometry( new GeoDataPointPrivate ) { } GeoDataPoint::GeoDataPoint( const GeoDataPoint& other ) : GeoDataCoordinates( other ), GeoDataGeometry( other ) { } GeoDataPoint::GeoDataPoint( const GeoDataCoordinates& other ) : GeoDataCoordinates( other ) { } GeoDataPoint::GeoDataPoint( const GeoDataGeometry& other ) : GeoDataGeometry( other ) { } GeoDataPoint::GeoDataPoint() : GeoDataGeometry( new GeoDataPointPrivate ) { } GeoDataPoint::~GeoDataPoint() { } QString GeoDataPoint::nodeType() const { return GeoDataTypes::GeoDataPointType; } void GeoDataPoint::detach() { GeoDataCoordinates::detach(); GeoDataGeometry::detach(); } void GeoDataPoint::pack( QDataStream& stream ) const { GeoDataCoordinates::pack( stream ); } void GeoDataPoint::unpack( QDataStream& stream ) { GeoDataCoordinates::unpack( stream ); } }