1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef __BOUNDINGBOX_H__
- #define __BOUNDINGBOX_H__
- #include "core/image/CoordT.h"
- namespace OBJREC
- {
- class BoundingBox
- {
- public:
- BoundingBox();
- BoundingBox ( const BoundingBox © );
- ~BoundingBox();
- void setTopLeft ( const NICE::CoordT< int > &aTopLeft );
- void setTopLeft ( const int &x, const int &y );
- void setBottomRight ( const NICE::CoordT< int > &aBottomRight );
- void setBottomRight ( const int &x, const int &y );
- void setWidth ( const int &aWidth );
- void setHeight ( const int &aHeight );
- void setID ( const int &anID );
- NICE::CoordT< int > topLeft() const;
- NICE::CoordT< int > bottomRight() const;
- int width();
- int height();
- int id() const;
- bool isValid() const;
- void validate();
- private:
- NICE::CoordT< int > top_left_;
- NICE::CoordT< int > bottom_right_;
-
- int id_;
- public:
-
- int unique_id_;
- };
- }
- #endif
|