00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef __STYLEPROP_H__
00013 #define __STYLEPROP_H__
00014
00015 #ifndef WX_PRECOMP
00016 #include "wx/wx.h"
00017 #endif
00018
00019 #include "wx/txtstrm.h"
00020 #include "wx/geometry.h"
00021 #include "wx/artbase/afmatrix.h"
00022 #include "wx/canvas/xmlpars.h"
00023 #include "wx/canvas/canobj.h"
00024 #include "wx/artbase/liner.h"
00025 #include "wx/artbase/bbox.h"
00026 #include "wx/artbase/stylebase.h"
00027
00028 class A2DARTBASEDLLEXP a2dDrawer2D;
00029 class A2DCANVASDLLEXP a2dCanvasObject;
00030 class A2DCANVASDLLEXP a2dIterC;
00031
00032 #if defined(WXART2D_USINGDLL)
00033 template class A2DCANVASDLLEXP a2dSmrtPtr<a2dCanvasObject>;
00034 #endif
00035 typedef a2dSmrtPtr<a2dCanvasObject> a2dCanvasObjectPtr;
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 a2dCanvasObjectStroke();
00052
00053
00054 a2dCanvasObjectStroke( const a2dCanvasObjectStroke& stroke );
00055
00056
00057 a2dCanvasObjectStroke( a2dCanvasObject* object );
00058
00059
00060 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxColour& col, float width = 0, a2dStrokeStyle style = a2dSTROKE_SOLID);
00061
00062
00063 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxPen& stroke );
00064
00065
00066 a2dCanvasObjectStroke( a2dCanvasObject* object, const wxColour& col, int width, a2dStrokeStyle style = a2dSTROKE_SOLID);
00067
00068
00069 virtual a2dObject* Clone() const;
00070
00071
00072 ~a2dCanvasObjectStroke();
00073
00074 float GetExtend() const;
00075
00076 void Render( a2dIterC& ic, a2dDrawer2D* drawer, const a2dBoundingBox& clipobj, int n, wxPoint points[] );
00077
00078 void SetDistance( double distance ) { m_distance = distance; }
00079
00080 DECLARE_DYNAMIC_CLASS(a2dCanvasObjectStroke)
00081
00082 protected:
00083
00084 #if wxART2D_USE_CVGIO
00085 virtual void DoLoad( wxObject* parent, a2dIOHandlerXmlSerIn& parser, a2dXmlSer_flag xmlparts );
00086 virtual void DoSave( wxObject* parent, a2dIOHandlerXmlSerOut &out, a2dXmlSer_flag xmlparts , a2dObjectList* towrite );
00087 #endif //wxART2D_USE_CVGIO
00088
00089 a2dCanvasObjectPtr m_obj;
00090
00091 double m_distance;
00092
00093 };
00094 */
00095 #endif
00096