#include <iso_math_rectangle.h>
Public Member Functions | |
Rectangle (unsigned int pDim) | |
create rectangle | |
Rectangle (const Vector< Type > &pMinPos, const Vector< Type > &pMaxPos) throw (MathException) | |
create rectangle | |
Rectangle (const Rectangle< Type > &pRect) | |
create rectangle | |
~Rectangle () | |
destructor | |
const Rectangle< Type > & | operator= (const Rectangle< Type > &pRect) |
assignment operator | |
unsigned int | dim () const |
return dimension | |
const Vector< Type > & | minPos () const |
return minimum position | |
Vector< Type > & | minPos () |
return minimum position | |
const Vector< Type > & | maxPos () const |
return maximum position | |
Vector< Type > & | maxPos () |
return maximum position | |
Vector< Type > | size () const |
return size | |
void | setMinPos (Type pValue) throw (MathException) |
set minimum position | |
void | setMinPos (const Vector< Type > &pMinPos) throw (MathException) |
set minimum position | |
void | setMinPos (const Type *pValues) throw (MathException) |
set minimum position | |
void | setMaxPos (Type pValue) throw (MathException) |
set maximum position | |
void | setMaxPos (const Vector< Type > &pMaxPos) throw (MathException) |
set maximum position | |
void | setMaxPos (const Type *pValues) throw (MathException) |
set maximum position | |
void | set (const Vector< Type > &pMinPos, const Vector< Type > &pMaxPos) throw (MathException) |
set minimum and maximum positions | |
void | set (const Type *pMinValues, const Type *pMaxValues) throw (MathException) |
set minimum and maximum positions | |
bool | operator== (const Rectangle< Type > &pRect) const |
rect == rect | |
bool | operator!= (const Rectangle< Type > &pRect) const |
vector != vector | |
base::String | info () const |
print vector information | |
Protected Member Functions | |
Rectangle () | |
Protected Attributes | |
unsigned int | mDim |
Vector< Type > | mMinPos |
Vector< Type > | mMaxPos |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Rectangle< Type > &pRect) |
print rectangle information |
class
Created by Daniel Bisig on 5/10/07.
iso::math::Rectangle< Type >::Rectangle | ( | unsigned int | pDim | ) |
create rectangle
pDim | dimension |
iso::math::Rectangle< Type >::Rectangle | ( | const Vector< Type > & | pMinPos, | |
const Vector< Type > & | pMaxPos | |||
) | throw (MathException) |
create rectangle
pMinPos | minimum position | |
pMaxPos | maximum position |
MathException | if dimension of minimum and maximum position differs or if maximum position is smaller than minimum position |
iso::math::Rectangle< Type >::Rectangle | ( | const Rectangle< Type > & | pRect | ) |
create rectangle
pRect | rectangle |
iso::math::Rectangle< Type >::~Rectangle | ( | ) |
destructor
iso::math::Rectangle< Type >::Rectangle | ( | ) | [protected] |
const Rectangle< Type > & iso::math::Rectangle< Type >::operator= | ( | const Rectangle< Type > & | pRect | ) |
assignment operator
pRect | rectangle |
unsigned int iso::math::Rectangle< Type >::dim | ( | ) | const |
return dimension
const Vector< Type > & iso::math::Rectangle< Type >::minPos | ( | ) | const |
return minimum position
Vector< Type > & iso::math::Rectangle< Type >::minPos | ( | ) |
return minimum position
const Vector< Type > & iso::math::Rectangle< Type >::maxPos | ( | ) | const |
return maximum position
Vector< Type > & iso::math::Rectangle< Type >::maxPos | ( | ) |
return maximum position
Vector< Type > iso::math::Rectangle< Type >::size | ( | ) | const |
return size
void iso::math::Rectangle< Type >::setMinPos | ( | Type | pValue | ) | throw (MathException) |
set minimum position
pValue | minimum position value |
MathException | if position is bigger than maximum position |
void iso::math::Rectangle< Type >::setMinPos | ( | const Vector< Type > & | pMinPos | ) | throw (MathException) |
set minimum position
pMinPos | minimum position |
MathException | if dimension of position is wrong or position is bigger than maximum position |
void iso::math::Rectangle< Type >::setMinPos | ( | const Type * | pValues | ) | throw (MathException) |
set minimum position
pValues | array of minimum position values |
MathException | if position is bigger than maximum position |
void iso::math::Rectangle< Type >::setMaxPos | ( | Type | pValue | ) | throw (MathException) |
set maximum position
pValue | maximum position value |
MathException | if position is smaller than minimum position |
void iso::math::Rectangle< Type >::setMaxPos | ( | const Vector< Type > & | pMaxPos | ) | throw (MathException) |
set maximum position
pMaxPos | maximum position |
MathException | if dimension of position is wrong or position is smaller than minimum position |
void iso::math::Rectangle< Type >::setMaxPos | ( | const Type * | pValues | ) | throw (MathException) |
set maximum position
pValues | array of maximum position values |
MathException | if position is smaller than minimum position |
void iso::math::Rectangle< Type >::set | ( | const Vector< Type > & | pMinPos, | |
const Vector< Type > & | pMaxPos | |||
) | throw (MathException) |
set minimum and maximum positions
pMinPos | minimum position | |
pMaxPos | maximum position |
MathException | if dimension of one position is wrong or minimum position is bigger than maximum position |
void iso::math::Rectangle< Type >::set | ( | const Type * | pMinValues, | |
const Type * | pMaxValues | |||
) | throw (MathException) |
set minimum and maximum positions
pMinValues | array of minimum position values | |
pMaxValues | arary of maximum position values |
MathException | if minimum position is bigger than maximum position |
bool iso::math::Rectangle< Type >::operator== | ( | const Rectangle< Type > & | pRect | ) | const |
rect == rect
pRect | rect to compare |
bool iso::math::Rectangle< Type >::operator!= | ( | const Rectangle< Type > & | pRect | ) | const |
vector != vector
pRect | rect to compare |
base::String iso::math::Rectangle< Type >::info | ( | ) | const |
print vector information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Rectangle< Type > & | pRect | |||
) | [friend] |
print rectangle information
pOstream | output stream | |
pRect | rect |
unsigned int iso::math::Rectangle< Type >::mDim [protected] |
Vector<Type> iso::math::Rectangle< Type >::mMinPos [protected] |
Vector<Type> iso::math::Rectangle< Type >::mMaxPos [protected] |