趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Clipped_rect.h
Go to the documentation of this file.
1 #ifndef HRK_CLIPPED_RECT_H
2 #define HRK_CLIPPED_RECT_H
3 
9 #include <vector>
10 #include "RectF.h"
11 
12 
13 namespace hrk
14 {
15  class Surface;
16 
18  {
19  public:
20  std::vector<Surface*> surfaces_;
21  std::vector<RectF> rects_;
22 
23  Clipped_rect(Surface* surface, const RectF& rect)
24  {
25  surfaces_.push_back(surface);
26  rects_.push_back(rect);
27  }
28 
29  Clipped_rect(const std::vector<Surface*>& surfaces,
30  const std::vector<RectF>& rects)
31  : surfaces_(surfaces), rects_(rects)
32  {
33  }
34  };
35 }
36 
37 #endif
矩形
Definition: Clipped_rect.h:17
Definition: Surface.h:20
矩形
Definition: RectF.h:16