1 /* 2 $Id: DummyPolygon.cpp 6651 2004-02-19 07:40:06Z axeld $ 3 4 This file contains the implementation of the dummy BPolygon 5 class which allows the tests to grab the set of points from 6 BPolygon's private members. This is the only way to effectively 7 test BPolygon. 8 */ 9 10 11 #include "DummyPolygon.h" 12 13 14 DummyPolygon::DummyPolygon() 15 { 16 throw "You cannot create a DummyPolygon, just cast existing BPolygon's to it!"; 17 } 18 19 20 DummyPolygon::~DummyPolygon() 21 { 22 } 23 24 25 const BPoint * 26 DummyPolygon::GetPoints(void) 27 { 28 return fPts; 29 } 30 31