|
Tulip Plugins
|
#include <RectangleRelativePositionList.h>
Public Member Functions | |
| void | addRectangleRelativePosition (std::vector< tlp::Rectangle< float > >::iterator itr, int numRect, float wdth, float hght, float x, float y, std::list< RectangleRelativePosition >::iterator itRectangleRelativePosition) |
| void | allocateCoordinates () |
| void | stockOfTemporaryBestCoordinates (int bestPlaceInFirstSequence) |
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.
| void RectangleRelativePositionList::addRectangleRelativePosition | ( | std::vector< tlp::Rectangle< float > >::iterator | itr, |
| int | numRect, | ||
| float | wdth, | ||
| float | hght, | ||
| float | x, | ||
| float | y, | ||
| std::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.
1.7.4