xref: /haiku/src/tests/kits/interface/bpolygon/DummyPolygon.cpp (revision 67bce78b48ed6d01b5a8eef89f5694c372b7e0a1)
1 /*
2 	$Id: DummyPolygon.cpp,v 1.2 2004/02/19 07:40:06 axeld Exp $
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