00001
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00034
00035 #ifndef GROOVX_GFX_GXDRAWSTYLE_H_UTC20050626084025_DEFINED
00036 #define GROOVX_GFX_GXDRAWSTYLE_H_UTC20050626084025_DEFINED
00037
00038 #include "gfx/gxnode.h"
00039
00040 #include "io/fields.h"
00041
00043 class GxDrawStyle : public GxNode, public FieldContainer
00044 {
00045 private:
00046 GxDrawStyle(const GxDrawStyle&);
00047 GxDrawStyle& operator=(const GxDrawStyle&);
00048
00049 protected:
00051 GxDrawStyle();
00052
00053 public:
00054 virtual ~GxDrawStyle() throw();
00055
00057 static GxDrawStyle* make() { return new GxDrawStyle; }
00058
00059 private:
00060 bool polygonFill;
00061 double pointSize;
00062 double lineWidth;
00063 int linePattern;
00064
00065 public:
00066 virtual io::version_id class_version_id() const;
00067 virtual void read_from(io::reader& reader);
00068 virtual void write_to(io::writer& writer) const;
00069
00071 static const FieldMap& classFields();
00072
00074 virtual void getBoundingCube(Gfx::Bbox& bbox) const;
00075
00076 virtual void draw(Gfx::Canvas& canvas) const;
00077 };
00078
00079 static const char __attribute__((used)) vcid_groovx_gfx_gxdrawstyle_h_utc20050626084025[] = "$Id: gxdrawstyle.h 10065 2007-04-12 05:54:56Z rjpeters $ $HeadURL: file:
00080 #endif // !GROOVX_GFX_GXDRAWSTYLE_H_UTC20050626084025_DEFINED