趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Clipped_surface.h
Go to the documentation of this file.
1 #ifndef HRK_CLIPPED_SURFACE_H
2 #define HRK_CLIPPED_SURFACE_H
3 
9 #include <memory>
10 #include <string>
11 #include <boost/shared_ptr.hpp>
12 #include "Surface.h"
13 
14 
15 namespace hrk
16 {
17  class Clipped_rect;
18  class Image_storage;
19 
20  class Clipped_surface : public Surface
21  {
22  public:
23  Clipped_surface(boost::shared_ptr<Clipped_rect> surface);
24  Clipped_surface(Image_storage& image_storage, const std::string& name);
25  ~Clipped_surface(void);
26 
27  SizeF size(void) const;
28  Color pixel_color(const PointF& point, double magnify) const;
29  void draw(const RectF* src, const RectF& dest,
30  double z, const Angle& rotate_angle, double magnify,
31  double color_strength_ratio, double alpha,
32  bool antialiasing) const;
33 
34  private:
35  Clipped_surface(void);
36  Clipped_surface(const Clipped_surface& rhs);
37  Clipped_surface& operator = (const Clipped_surface& rhs);
38 
39  struct pImpl;
40  std::auto_ptr<pImpl> pimpl;
41  };
42 }
43 
44 #endif
Definition: Color.h:12
SizeF size(void) const
サーフェスの幅と高さを返す
Definition: Clipped_surface.cpp:71
角度
Definition: Angle.h:13
位置
Definition: PointF.h:12
幅と高さ
Definition: SizeF.h:12
サーフェスのインターフェース定義
Definition: Surface.h:20
void draw(const RectF *src, const RectF &dest, double z, const Angle &rotate_angle, double magnify, double color_strength_ratio, double alpha, bool antialiasing) const
描画
Definition: Clipped_surface.cpp:88
Definition: Clipped_surface.h:20
矩形
Definition: RectF.h:16
Definition: Image_storage.h:19
Color pixel_color(const PointF &point, double magnify) const
指定された位置の色情報を返す
Definition: Clipped_surface.cpp:77