mapobj.cpp
changeset 792 7d67be709091
parent 790 133e2ed6b9c5
child 794 d922fb6ea482
     1.1 --- a/mapobj.cpp	Mon Sep 07 15:36:57 2009 +0000
     1.2 +++ b/mapobj.cpp	Tue Sep 08 12:15:39 2009 +0000
     1.3 @@ -90,7 +90,7 @@
     1.4  
     1.5  QString MapObj::getPos()
     1.6  {
     1.7 -	return qpointfToString(absPos);
     1.8 +	return qpointFToString(absPos);
     1.9  }
    1.10  
    1.11  void MapObj::move (double x, double y) 
    1.12 @@ -120,6 +120,13 @@
    1.13      return bbox;
    1.14  }
    1.15  
    1.16 +ConvexPolygon MapObj::getBoundingPolygon()
    1.17 +{
    1.18 +	QPolygonF p;
    1.19 +	p<<bbox.topLeft()<<bbox.topRight()<<bbox.bottomRight()<<bbox.bottomLeft();
    1.20 +	return p;
    1.21 +}
    1.22 +
    1.23  QRectF MapObj::getClickBox()
    1.24  {
    1.25      return clickBox;