root/src/tests/kits/interface/bpolygon/DummyPolygon.cpp
/*
        $Id: DummyPolygon.cpp 6651 2004-02-19 07:40:06Z axeld $
        
        This file contains the implementation of the dummy BPolygon
        class which allows the tests to grab the set of points from
        BPolygon's private members.  This is the only way to effectively
        test BPolygon.
*/


#include "DummyPolygon.h"


DummyPolygon::DummyPolygon()
{
        throw "You cannot create a DummyPolygon, just cast existing BPolygon's to it!";
}


DummyPolygon::~DummyPolygon()
{
}


const BPoint *
DummyPolygon::GetPoints(void)
{
        return fPts;
}