MipResources::DraWinBoundBox Class Reference
[Draw window]

DraWin bounding box, represents 2D margins of the drawing scene. More...

#include <DraWinObj.h>

List of all members.

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


Detailed Description

DraWin bounding box, represents 2D margins of the drawing scene.

Author:
Antonio Franchi
Todo:
merge with BoundBox

Constructor & Destructor Documentation

MipResources::DraWinBoundBox::DraWinBoundBox (  ) 

Default constructor.

MipResources::DraWinBoundBox::DraWinBoundBox ( Decimal  xm,
Decimal  ym,
Decimal  xM,
Decimal  yM 
)

Constructor with parameters

Parameters:
xm desired BB xmin
ym desired BB ymin
xM desired BB xmax
yM desired BB xmax

MipResources::DraWinBoundBox::DraWinBoundBox ( Position  p1,
Position  p2 
)

Constructor with parameters

Parameters:
p1 desired BB (xmin,ymin)
p2 desired BB (xmax,ymax)


Member Function Documentation

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.

Parameters:
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.

Parameters:
bb the second bounding box

Decimal MipResources::DraWinBoundBox::diameter (  )  [inline]

Gets the diameter of the current bb

Returns:
the diameter of the current bb

Position MipResources::DraWinBoundBox::center (  )  [inline]

Gets the center of the current bb.

Returns:
the center of the current bb

const DraWinBoundBox MipResources::DraWinBoundBox::operator* ( Pose  p  ) 

Rototranslate the current bb by a pose.

Parameters:
p pose by mean performing the rototranslation


Friends And Related Function Documentation

friend class DraWinGL [friend]


Member Data Documentation

current BB xmin

current BB ymin

current BB xmax

current BB xmax


The documentation for this class was generated from the following files:

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6