Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

RectangleSet.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Geometry_RectangleSet_h
00002 #define Impala_Core_Geometry_RectangleSet_h
00003 
00004 #include <vector>
00005 #include "Core/Geometry/Rectangle.h"
00006 
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Geometry
00012 {
00013 
00014 
00018 class RectangleSet : public std::vector<Rectangle>
00019 {
00020 public:
00021 
00023     RectangleSet&
00024     operator<<(const Rectangle& s)
00025     {
00026         push_back(s);
00027         return *this;
00028     }
00029 
00031     void
00032     EraseAll()
00033     {
00034         erase(begin(), end());
00035     }
00036 
00037 };
00038 
00040 typedef RectangleSet::iterator              RectangleSetI;
00042 typedef RectangleSet::const_iterator        RectangleSetCI;
00043 
00044 
00045 } // namespace Geometry
00046 } // namespace Core
00047 } // namespace Impala
00048 
00049 #endif

Generated on Fri Mar 19 09:31:09 2010 for ImpalaSrc by  doxygen 1.5.1