static char *sccs_id= (sccs_id, "@(#)DynShape.c	3.6 7/28/92");

//$DynShape$
#include "DynShape.h"

//---- Dyn Shape ---------------------------------------------------------------

MetaImpl0(DynShape);

static short DynImage[]= {
#   include  "images/DynShape.im"
};

DynShape::DynShape()
{
}
    
short *DynShape::GetImage()
{
    return DynImage;
}

void DynShape::Draw(Rectangle, Point p)
{
    Rectangle rr= bbox+p;
    GrFillRect(rr);
    GrStrokeRect(rr);
    GrLine(rr.NW(), rr.SE());
    GrLine(rr.SW(), rr.NE());
}

void DynShape::Outline(Point p1, Point p2)
{
    Rectangle rr= NormRect(p1, p2);
    GrStrokeRect(rr);
    GrLine(rr.NW(), rr.SE());
    GrLine(rr.NE(), rr.SW());
}
