Main Page | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

ARLib::Utility::ARRect< T > Class Template Reference

Rectangle data type. More...

#include <arrect.h>

Inheritance diagram for ARLib::Utility::ARRect< T >:

ARLib::Detection::ARBoundingBox List of all members.

Public Member Functions

 ARRect (T X1, T Y1, T X2, T Y2)
 Constructor.
void Set (T X1, T Y1, T X2, T Y2)
 Set coordinates in a single statement.
int GetWidth ()
 Returns the width of the rectangle.
int GetHeight ()
 Returns the height of the rectangle.
unsigned int GetArea ()
 Returns the area of the rectangle.
void Clear ()
 Resets the rect.
bool IsEmpty ()
 Returns True if the rectangle is empty ( x1,y1,x2 and y2 are all 0 ).
void Normalize ()
 Makes sure that x1 is less than x2 and y1 is less than y2.
void MoveToOrigin ()
 Moves coordinates so that x1 and y1 are at 0. The Width and height are maintained.

Public Attributes

x1
 The left column position.
y1
 The bottom row position.
x2
 The right column position.
y2
 The top row position.

Detailed Description

template<class T>
class ARLib::Utility::ARRect< T >

Rectangle data type.


The documentation for this class was generated from the following file:
Generated on Wed Aug 31 18:01:40 2005 for ARLib by  doxygen 1.3.9.1