/***************************************************************************
                          segment.cpp  -  description
                             -------------------
    begin                : Sat Aug 4 2001
    copyright            : (C) 2001 by Marc Bartsch
    email                : marc.bartsch@web.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#include "segment.h"

Segment::Segment() : GeoLine()
{
	ID = ID_segment;
  identificator = "Segment";

	int temp[] = { ID_geoPoint, 2, -1 };
	convertParams( temp, sizeof( temp ) / sizeof( temp[0] ) );
}

Segment::~Segment()
{
}

void Segment::move()
{
	startCoords.coords = parents.first()->getCoordinates();
	endCoords.coords = parents.next()->getCoordinates();

	startCoords.printCoords = startCoords.coords;
	endCoords.printCoords = endCoords.coords;
}

