Main Page   Class Hierarchy   Compound List   File List   Compound Members  

path.h

00001 
00002 
00003 /*
00004 Program PATH.H
00005 Purpose Defines GDSII path structure (Header)
00006 Programmers     R. Spekreijse & N. Noorlander
00007 Last Update     12-12-1995
00008 */
00009 
00010 #ifndef PATH_H
00011 #define PATH_H
00012 #ifdef __GNUG__
00013 #pragma interface
00014 #endif
00015 
00016 #include "misc.h"
00017 #include "wxmatrix.h"
00018 #include "shape.h"
00019 #include "gdserr.h"
00020 #include "polyline.h"
00021 
00022 class DrawDriver;
00023 class Driver_out;
00024 
00026 
00031 class Path: public Shape
00032 {
00033         public:
00034                 Path(int layernr = 0);
00035                 Path(G_Polyline* polyline, int layernr = 0);
00036                 ~Path();
00037 
00038       void OWrite(Driver_out& where);
00039       void DoWrite(DrawDriver& dr);
00040 
00041                 void                            Init(int);
00042                 BoundingBox&    CalcBoundingBox();
00043                 Path&                           operator=(Path&);
00044                 Element*                        Duplicate();
00045 
00046                 void                            SetPathtype(PATHTYPE);
00047                 PATHTYPE                   GetPathtype();
00048                 void                            SetDatatype(int);
00049                 int                             GetDatatype();
00050                 void                            SetPolyline(G_Polyline*);
00051                 G_Polyline*     GetPolyline();
00052                 TYPE                            GetType() {return PATH;};
00053                 void                            Transform(wxTransformMatrix* _Matrix);
00054                 void           Convert(G_Polygon* _converted, double Aber/*=ARCTOPOLYACCUR*/);
00055 
00056                 bool                    Select(Point*);
00057                 bool                    Select(BoundingBox*,wxTransformMatrix*);
00058 
00059       bool                      ContainsArcs();
00060                 wxPropertySheet* GetPropList();
00061       void                              UpdatePropList();
00062 
00063       bool        GetSpline(){return m_spline;};
00064       void        SetSpline(bool spline){m_spline=spline;};
00065 
00066         protected:
00067                 G_Polyline*                      m_polyline;
00068                 PATHTYPE                                 m_pathtype;
00069                 int                                      m_datatype;
00070       bool               m_has_arcs;
00071       bool               m_spline;
00072 };
00073 
00074 
00075 #endif
path.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page