#include <iso_geom_cuboid.h>
Inherits iso::geom::Geometry.
Inheritance diagram for iso::geom::Cuboid:
Public Member Functions | |
Cuboid (unsigned int pDim) | |
create cuboid | |
Cuboid (const math::Rectangle< real > &pRect) | |
create cuboid | |
Cuboid (const math::Vector< real > &pMinPos, const math::Vector< real > &pMaxPos) | |
create cuboid | |
virtual | ~Cuboid () |
destructor | |
virtual void | calcMinMaxPos () |
calculate minimum and maximum positions | |
math::Vector< real > | size () const |
return size | |
math::Vector< real > & | minPos () |
return minimum position | |
math::Vector< real > & | maxPos () |
return maximum position | |
const math::Vector< real > & | minPos () const |
return minimum position | |
const math::Vector< real > & | maxPos () const |
return maximum position | |
void | setMinPos (real pValue) |
set minimum position | |
void | setMinPos (const math::Vector< real > &pMinPos) |
set minimum position | |
void | setMinPos (const real *pValues) |
set minimum position | |
void | setMaxPos (real pValue) |
set maximum position | |
void | setMaxPos (const math::Vector< real > &pMaxPos) |
set maximum position | |
void | setMaxPos (const real *pValues) |
set maximum position | |
void | set (const math::Rectangle< real > &pRect) |
set min and max position | |
void | set (const math::Vector< real > &pMinPos, const math::Vector< real > &pMaxPos) |
set minimum and maximum positions | |
void | set (const real *pMinValues, const real *pMaxValues) |
set minimum and maximum positions | |
virtual void | closestPoint (const math::Vector< real > &pRefPoint, math::Vector< real > &pResPoint) |
return closest point | |
Protected Member Functions | |
Cuboid () | |
default constructor | |
Protected Attributes | |
math::Rectangle< real > | mRect |
cuboid rectangle |
Cuboid::Cuboid | ( | unsigned int | pDim | ) |
create cuboid
pDim | dimension |
Cuboid::Cuboid | ( | const math::Rectangle< real > & | pRect | ) |
create cuboid
pRect | cuboid rectangle |
create cuboid
pMinPos | minimum position | |
pMaxPos | maximum position |
Cuboid::~Cuboid | ( | ) | [virtual] |
destructor
Cuboid::Cuboid | ( | ) | [protected] |
default constructor
void Cuboid::calcMinMaxPos | ( | ) | [virtual] |
math::Vector< real > Cuboid::size | ( | ) | const |
return size
math::Vector< real > & Cuboid::minPos | ( | ) |
return minimum position
math::Vector< real > & Cuboid::maxPos | ( | ) |
return maximum position
const math::Vector< real > & Cuboid::minPos | ( | ) | const |
const math::Vector< real > & Cuboid::maxPos | ( | ) | const |
void Cuboid::setMinPos | ( | real | pValue | ) |
set minimum position
pValue | minimum position value |
void Cuboid::setMinPos | ( | const math::Vector< real > & | pMinPos | ) |
set minimum position
pMinPos | minimum position |
void Cuboid::setMinPos | ( | const real * | pValues | ) |
set minimum position
pValues | array of minimum position values |
void Cuboid::setMaxPos | ( | real | pValue | ) |
set maximum position
pValue | maximum position value |
void Cuboid::setMaxPos | ( | const math::Vector< real > & | pMaxPos | ) |
set maximum position
pMaxPos | maximum position |
void Cuboid::setMaxPos | ( | const real * | pValues | ) |
set maximum position
pValues | array of maximum position values |
void Cuboid::set | ( | const math::Rectangle< real > & | pRect | ) |
set min and max position
pRect | rect |
set minimum and maximum positions
pMinPos | minimum position | |
pMaxPos | maximum position |
set minimum and maximum positions
pMinValues | array of minimum position values | |
pMaxValues | arary of maximum position values |
void Cuboid::closestPoint | ( | const math::Vector< real > & | pRefPoint, | |
math::Vector< real > & | pResPoint | |||
) | [virtual] |
return closest point
pRefPoint | reference points | |
pResPoint | result point |
Implements iso::geom::Geometry.
math::Rectangle<real> iso::geom::Cuboid::mRect [protected] |
cuboid rectangle