]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_constructionline.cpp
In the middle of major refactoring...
[architektonas] / src / base / rs_constructionline.cpp
index 6d85373ed480cf89c22ef51c5b8df0b1e231094c..f598a4faccde8240b90cdadb0a3e04ea4ca64dab 100644 (file)
@@ -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.
  */