X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_constructionline.cpp;h=de542770ad82f9e0e6cb2f959cc94de55a2ae8ba;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=6d85373ed480cf89c22ef51c5b8df0b1e231094c;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_constructionline.cpp b/src/base/rs_constructionline.cpp index 6d85373..de54277 100644 --- a/src/base/rs_constructionline.cpp +++ b/src/base/rs_constructionline.cpp @@ -10,6 +10,7 @@ // Who When What // --- ---------- ----------------------------------------------------------- // JLH 05/28/2010 Added this text. :-) +// JLH 06/02/2010 Moved implementation from header to here WHERE IT BELONGS. // #include "rs_constructionline.h" @@ -39,6 +40,47 @@ RS_Entity * RS_ConstructionLine::clone() return c; } +/** @return RS2::EntityConstructionLine */ +/*virtual*/ RS2::EntityType RS_ConstructionLine::rtti() const +{ + return RS2::EntityConstructionLine; +} + +/** + * @todo + * @return Start point of the entity. + */ +/*virtual*/ Vector RS_ConstructionLine::getStartpoint() const +{ + return Vector(false); +} + +/** + * @todo + * @return End point of the entity. + */ +/*virtual*/ Vector RS_ConstructionLine::getEndpoint() const +{ + return Vector(false); +} + +/** @return Copy of data that defines the line. */ +RS_ConstructionLineData RS_ConstructionLine::getData() const +{ + return data; +} + +/** @return First definition point. */ +Vector RS_ConstructionLine::getPoint1() const +{ + return data.point1; +} +/** @return Second definition point. */ +Vector RS_ConstructionLine::getPoint2() const +{ + return data.point2; +} + void RS_ConstructionLine::calculateBorders() { minV = Vector::minimum(data.point1, data.point2);