OSDN Git Service

123123
[psychlops/cpp.git] / psychlops / core / graphic / psychlops_g_shape.cpp
index c89a84e..4cacb6f 100644 (file)
@@ -397,6 +397,10 @@ namespace Psychlops {
                datum = p;
                return *this;
        }
+       Polygon& Polygon::draw() {
+               Shape::draw_base(*Drawable::prime);
+               return *this;
+       }
        Polygon& Polygon::draw(Drawable& target) {
                Shape::draw_base(target);
                return *this;
@@ -422,6 +426,7 @@ namespace Psychlops {
                return *this;
        }
 
+       Polygon& Polygon::centering() { Shape::centering(*Drawable::prime); return *this; }
        Polygon& Polygon::centering(const Figure& fig) { centering(fig.getDatum()); return *this; }
        Polygon& Polygon::centering(const Drawable &target) { centering(target.getCenter()); return *this; }
        Polygon& Polygon::centering(const double x, const double y, const double z) { centering(Point(x,y,z)); return *this; }