Overview     Modules     Class Hierarchy     Classes     Members  

RectangleRelativePositionList Class Reference

#include <RectangleRelativePositionList.h>

List of all members.


Detailed Description

This class is a list of structures of RectangleRelativePosition. It enables the stocking of the first sequence of the even sequence made up as we insert the new rectangles.

Public Member Functions


Member Function Documentation

void RectangleRelativePositionList::addRectangleRelativePosition vector< Rectangle< float > >::iterator  itr,
int  numRect,
float  wdth,
float  hght,
float  x,
float  y,
list< RectangleRelativePosition >::iterator  itRectangleRelativePosition
 

Add a structure RectangleRelativePosition to the list.

void RectangleRelativePositionList::allocateCoordinates  ) 
 

Modify the co-ordinates of the Rectangles pointed by the fields RectangleIterator of the elements of the list. These new co-ordinates are calculated from the values of the fields rectangleLeftAbscissa and rectangleLowOrdinate.

void RectangleRelativePositionList::stockOfTemporaryBestCoordinates int  bestPlaceInFirstSequence  ) 
 

Stock the values of the fields rectangleTemporaryLeftAbscissa and rectangleTemporaryLowOrdinate in the fields rectangle TemporaryBestLeftAbscissa and rectangleTemporaryBestLowOrdinate for all the elements of the list from one position in the list.



Tulip Software by David AUBER    2001 - 2006