#include <DraWinObj.h>
Public Member Functions | |
DraWinBoundBox () | |
Default constructor. | |
DraWinBoundBox (Decimal xm, Decimal ym, Decimal xM, Decimal yM) | |
DraWinBoundBox (Position p1, Position p2) | |
void | extend (DraWinBoundBox bb) |
void | extend (Position p) |
Decimal | diameter () |
Position | center () |
const DraWinBoundBox | operator* (Pose p) |
Public Attributes | |
Decimal | xm |
current BB xmin | |
Decimal | ym |
current BB ymin | |
Decimal | xM |
current BB xmax | |
Decimal | yM |
current BB xmax | |
Friends | |
class | DraWinGL |
MipResources::DraWinBoundBox::DraWinBoundBox | ( | ) |
Default constructor.
Constructor with parameters
xm | desired BB xmin | |
ym | desired BB ymin | |
xM | desired BB xmax | |
yM | desired BB xmax |
Constructor with parameters
p1 | desired BB (xmin,ymin) | |
p2 | desired BB (xmax,ymax) |
void MipResources::DraWinBoundBox::extend | ( | DraWinBoundBox | bb | ) |
Overlaps the current bb with anoter bounding box, extending the current bounding box to the minimum one that contanis both.
bb | the second bounding box |
void MipResources::DraWinBoundBox::extend | ( | Position | p | ) |
Extends the current bb with a position, extending the current bounding box to the minimum one that contanis the current bb and the position.
bb | the second bounding box |
Decimal MipResources::DraWinBoundBox::diameter | ( | ) | [inline] |
Gets the diameter of the current bb
Position MipResources::DraWinBoundBox::center | ( | ) | [inline] |
Gets the center of the current bb.
const DraWinBoundBox MipResources::DraWinBoundBox::operator* | ( | Pose | p | ) |
Rototranslate the current bb by a pose.
p | pose by mean performing the rototranslation |
friend class DraWinGL [friend] |
current BB xmin
current BB ymin
current BB xmax
current BB xmax