// // 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 2007 Andrew Manson // #include "TrackPoint.h" #include "ClipPainter.h" #include using namespace Marble; TrackPoint::TrackPoint( qreal lat, qreal lon ) :Waypoint ( lat, lon ) { } // FIXME: shouldn't this be ": Waypoint( in )" ? TrackPoint::TrackPoint( const TrackPoint & in ) : AbstractLayerInterface(), Waypoint ( 0, 0 ) { setPosition( in.position() ); } void TrackPoint::draw( ClipPainter * painter, const QPoint &position) { painter->setBrush( Qt::white ); painter->drawEllipse( position.x()-2, position.y()-2, 3, 3 ); } void TrackPoint::printToStream( QTextStream &out ) const { out << "\n"; printBodyToStream( out ); out << "\n"; }