drawAreaCtrl.h

Go to the documentation of this file.
00001 #ifndef DRAW_AREA_CTRL_H
00002 #define DRAW_AREA_CTRL_H
00003 
00013 #include "typeUtils.h"
00014 #include "colors.h"
00015 
00016 
00020 class DrawAreaCtrlInterface {
00021 public:
00022   virtual ~DrawAreaCtrlInterface(void) {}
00023 
00024   // 指定範囲に描画図形があれば、
00025   virtual void draw(const VXV::Rect& range, const VXV::Grid& center,
00026                     const VXV::Rect& size, double magnify) = 0;
00027 };
00028 
00029 
00033 class PixelsDrawCtrl : public DrawAreaCtrlInterface {
00034   VXV::Grid draw_pos;
00035   unsigned long draw_color;
00036 
00037 public:
00038   PixelsDrawCtrl(const VXV::Grid& pos, unsigned long color = White);
00039   ~PixelsDrawCtrl(void);
00040   void draw(const VXV::Rect& range, const VXV::Grid& center,
00041             const VXV::Rect& size, double magnify);
00042 };
00043 
00044 #endif /* !DRAW_AREA_CTRL_H */
00045 

Generated on Mon Apr 13 22:52:02 2009 by  doxygen 1.5.7.1