karto::Rectangle2< T > Class Template Reference

#include <Karto.h>

List of all members.

Public Member Functions

const Vector2< T > GetCenter () const
GetHeight () const
const Vector2< T > & GetPosition () const
const Size2< T > & GetSize () const
GetWidth () const
GetX () const
GetY () const
kt_bool operator!= (const Rectangle2 &rOther) const
Rectangle2operator= (const Rectangle2 &rOther)
kt_bool operator== (const Rectangle2 &rOther) const
 Rectangle2 (const Rectangle2 &rOther)
 Rectangle2 (const Vector2< T > &rPosition, const Size2< T > &rSize)
 Rectangle2 (T x, T y, T width, T height)
 Rectangle2 ()
void SetHeight (T height)
void SetPosition (const Vector2< T > &rPosition)
void SetPosition (const T &rX, const T &rY)
void SetSize (const Size2< T > &rSize)
void SetWidth (T width)
void SetX (T x)
void SetY (T y)

Private Attributes

Vector2< T > m_Position
Size2< T > m_Size

Detailed Description

template<typename T>
class karto::Rectangle2< T >

Stores x, y, width and height that represents the location and size of a rectangle (x, y) is at bottom left in mapper!

Definition at line 1636 of file Karto.h.


Constructor & Destructor Documentation

template<typename T>
karto::Rectangle2< T >::Rectangle2 (  )  [inline]

Default constructor

Definition at line 1642 of file Karto.h.

template<typename T>
karto::Rectangle2< T >::Rectangle2 ( x,
y,
width,
height 
) [inline]

Constructor initializing rectangle parameters

Parameters:
x x-coordinate of left edge of rectangle
y y-coordinate of bottom edge of rectangle
width width of rectangle
height height of rectangle

Definition at line 1653 of file Karto.h.

template<typename T>
karto::Rectangle2< T >::Rectangle2 ( const Vector2< T > &  rPosition,
const Size2< T > &  rSize 
) [inline]

Constructor initializing rectangle parameters

Parameters:
rPosition (x,y)-coordinate of rectangle
rSize Size of the rectangle

Definition at line 1664 of file Karto.h.

template<typename T>
karto::Rectangle2< T >::Rectangle2 ( const Rectangle2< T > &  rOther  )  [inline]

Copy constructor

Definition at line 1673 of file Karto.h.


Member Function Documentation

template<typename T>
const Vector2<T> karto::Rectangle2< T >::GetCenter (  )  const [inline]

Gets the center of this rectangle

Returns:
the center of this rectangle

Definition at line 1802 of file Karto.h.

template<typename T>
T karto::Rectangle2< T >::GetHeight (  )  const [inline]

Gets the height of this rectangle

Returns:
the height of this rectangle

Definition at line 1738 of file Karto.h.

template<typename T>
const Vector2<T>& karto::Rectangle2< T >::GetPosition (  )  const [inline]

Gets the position of this rectangle

Returns:
the position of this rectangle

Definition at line 1756 of file Karto.h.

template<typename T>
const Size2<T>& karto::Rectangle2< T >::GetSize (  )  const [inline]

Gets the size of this rectangle

Returns:
the size of this rectangle

Definition at line 1784 of file Karto.h.

template<typename T>
T karto::Rectangle2< T >::GetWidth (  )  const [inline]

Gets the width of this rectangle

Returns:
the width of this rectangle

Definition at line 1720 of file Karto.h.

template<typename T>
T karto::Rectangle2< T >::GetX (  )  const [inline]

Gets the x-coordinate of the left edge of this rectangle

Returns:
the x-coordinate of the left edge of this rectangle

Definition at line 1684 of file Karto.h.

template<typename T>
T karto::Rectangle2< T >::GetY (  )  const [inline]

Gets the y-coordinate of the bottom edge of this rectangle

Returns:
the y-coordinate of the bottom edge of this rectangle

Definition at line 1702 of file Karto.h.

template<typename T>
kt_bool karto::Rectangle2< T >::operator!= ( const Rectangle2< T > &  rOther  )  const [inline]

Inequality operator

Definition at line 1830 of file Karto.h.

template<typename T>
Rectangle2& karto::Rectangle2< T >::operator= ( const Rectangle2< T > &  rOther  )  [inline]

Assignment operator

Definition at line 1811 of file Karto.h.

template<typename T>
kt_bool karto::Rectangle2< T >::operator== ( const Rectangle2< T > &  rOther  )  const [inline]

Equality operator

Definition at line 1822 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetHeight ( height  )  [inline]

Sets the height of this rectangle

Parameters:
height the height of this rectangle

Definition at line 1747 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetPosition ( const Vector2< T > &  rPosition  )  [inline]

Sets the position of this rectangle

Parameters:
rPosition position

Definition at line 1775 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetPosition ( const T &  rX,
const T &  rY 
) [inline]

Sets the position of this rectangle

Parameters:
rX x
rY y

Definition at line 1766 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetSize ( const Size2< T > &  rSize  )  [inline]

Sets the size of this rectangle

Parameters:
rSize size

Definition at line 1793 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetWidth ( width  )  [inline]

Sets the width of this rectangle

Parameters:
width the width of this rectangle

Definition at line 1729 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetX ( x  )  [inline]

Sets the x-coordinate of the left edge of this rectangle

Parameters:
x the x-coordinate of the left edge of this rectangle

Definition at line 1693 of file Karto.h.

template<typename T>
void karto::Rectangle2< T >::SetY ( y  )  [inline]

Sets the y-coordinate of the bottom edge of this rectangle

Parameters:
y the y-coordinate of the bottom edge of this rectangle

Definition at line 1711 of file Karto.h.


Member Data Documentation

template<typename T>
Vector2<T> karto::Rectangle2< T >::m_Position [private]

Definition at line 1836 of file Karto.h.

template<typename T>
Size2<T> karto::Rectangle2< T >::m_Size [private]

Definition at line 1837 of file Karto.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


karto
Author(s): SRI International (package maintained by Brian Gerkey)
autogenerated on Fri Jan 11 10:07:06 2013