Overture  Version 25
Point.h
Go to the documentation of this file.
1 #ifndef POINT_H
2 #define POINT_H
3 
4 #include "ReferenceCounting.h"
6 // #include <GL/gl.h>
7 // #include <GL/glu.h>
8 
9 class Point: public ReferenceCounting
10 {
11 public:
12 Point(); // constructor
13 ~Point(); // destructor
14 void
15 operator=(Point & source); // assignment operator
16 void
18 
20 
21 };
22 
23 class PointList
24 {
25 public:
26 PointList(int listSize=100);
27 
28 ~PointList();
29 
30 int
31 size(){ return nPoints; };
32 
33 void
34 add(Point & newPoint);
35 
36 void
37 clearAll();
38 
39 void
40 clearLast();
41 
42 Point &
43 operator[]( const int pointIndex );
44 
45 void
46 plot(GenericGraphicsInterface & gi, GraphicsParameters & gp /* =Overture::defaultGraphicsParameters() */);
47 
48 private:
49 int nPoints, maxPoints;
50 Point *points;
51 };
52 
53 #endif