Main Page   Class Hierarchy   Compound List   File List   Compound Members  

boundary.h

00001 
00002 
00003 /*
00004 Program BOUNDARY.H
00005 Purpose Contains a boundary (Header)
00006 Last Update     12-12-1995
00007 */
00008 
00009 #ifndef BOUNDARY_H
00010 #define BOUNDARY_H
00011 
00012 #ifdef __GNUG__
00013 #pragma interface
00014 #endif
00015 
00016 #include "misc.h"
00017 #include "wxmatrix.h"
00018 #include "polyline.h"
00019 #include "gdserr.h"
00020 #include "shape.h"
00021 
00022 class DrawDriver;
00023 class Driver_out;
00024 
00026 
00030 class Boundary : public Shape
00031 {
00032         public:
00033                 Boundary(int layernr = 0);
00034                 Boundary(G_Polygon*, int layernr = 0);
00035                 ~Boundary();
00036 
00037       void OWrite(Driver_out& where);
00038       void DoWrite(DrawDriver& where);
00039       void WriteEdit(Driver_out& where);
00040       void WriteMove(Driver_out& where);
00041 
00042                 BoundingBox&                    CalcBoundingBox();
00043                 int                                             GetDatatype();
00044                 G_Polygon*                    GetPolygon();
00045                 void                                            SetDatatype(int);
00046                 void                                  SetPolygon(G_Polygon*);
00047                 TYPE                                            GetType() {return BOUNDARY;};
00048                 void                                            Transform(wxTransformMatrix* _Matrix);
00049                 void                 Convert(G_Polygon* converted, double Aber);
00050 
00051                 Element*                                        Duplicate();
00052                 Boundary&                               operator=(Boundary &other);
00053 
00054                 bool                          Select(Point*);
00055                 bool                          Select(BoundingBox*,wxTransformMatrix*);
00056 
00057       //does the polygon contain arc segments?
00058       bool                                      ContainsArcs();
00059       wxPropertySheet*          GetPropList();
00060                 void                                            UpdatePropList();
00061 
00062       bool        GetSpline(){return m_spline;};
00063       void        SetSpline(bool spline){m_spline=spline;};
00064 
00065         protected:
00066                 void                                            Init(int);
00067 
00068                 G_Polygon*                              m_polygon;
00069                 int                                             m_datatype;
00070       bool                 m_spline;
00071 };
00072 
00073 #endif
boundary.h Source File -- Thu Nov 28 21:24:55 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page