00001 #pragma ident "$Id: BasicShape.hpp 1644 2009-01-27 19:26:14Z ckiesch $"
00002
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 #ifndef VDRAW_BASICSHAPE_H
00029 #define VDRAW_BASICSHAPE_H
00030
00031 #include "StrokeStyle.hpp"
00032
00033 namespace vdraw
00034 {
00037
00044 class BasicShape {
00045
00046 public:
00047
00055 BasicShape(void)
00056 : hasLineStyle(false)
00057 {}
00058
00063 BasicShape(const StrokeStyle& istyle)
00064 : lineStyle(istyle), hasLineStyle(true)
00065 {}
00066
00068 inline bool hasOwnStrokeStyle(void) const { return hasLineStyle; }
00069
00071 inline StrokeStyle getStrokeStyle(void) const { return lineStyle; }
00072
00074 inline void setStrokeStyle(const StrokeStyle& istyle) { lineStyle=istyle;hasLineStyle=true; }
00075
00077 inline void removeStrokeStyle(void) { hasLineStyle=false; }
00078
00079 protected:
00080
00082 StrokeStyle lineStyle;
00083
00085 bool hasLineStyle;
00086
00087 private:
00088
00089
00090 };
00091
00093
00094 }
00095
00096 #endif //VDRAW_BASICSHAPE_H
00097
00098