X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_constructionline.cpp;h=f598a4faccde8240b90cdadb0a3e04ea4ca64dab;hb=27d4a138d23453e93a833e9347444b828a971cb4;hp=6d85373ed480cf89c22ef51c5b8df0b1e231094c;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_constructionline.cpp b/src/base/rs_constructionline.cpp index 6d85373..f598a4f 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); @@ -175,6 +217,10 @@ void RS_ConstructionLine::mirror(Vector axisPoint1, Vector axisPoint2) data.point2.mirror(axisPoint1, axisPoint2); } +/*virtual*/ void RS_ConstructionLine::draw(PaintInterface *, GraphicView *, double) +{ +} + /** * Dumps the point's data to stdout. */