X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=psychlops%2Fcore%2Fgraphic%2Fpsychlops_g_shape.cpp;h=4cacb6f7be64dba559343086230ee7d849ab8568;hb=213008ed37a546099e9daa990bf19885943b876b;hp=c89a84e7bcc663062f829c83718ea1e0ee177fd8;hpb=932a66f65e57ac7618d5988c80e8dd1ba0c1f94c;p=psychlops%2Fcpp.git diff --git a/psychlops/core/graphic/psychlops_g_shape.cpp b/psychlops/core/graphic/psychlops_g_shape.cpp index c89a84e..4cacb6f 100644 --- a/psychlops/core/graphic/psychlops_g_shape.cpp +++ b/psychlops/core/graphic/psychlops_g_shape.cpp @@ -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; }