rectanglePackingFonctions.cpp3tulip
Usage
#include 'rectanglePackingFonctions.h'
#include <stdlib.h>
Functions
vector< Rectangle< float > > & RectanglePackingLimitRectangles (vector< Rectangle< float > > &v, const char *quality, PluginProgress *progress)
vector< Rectangle< float > > & RectanglePackingLimitPositions (vector< Rectangle< float > > &v, const char *quality, PluginProgress *progress)
Function Documentation
vector<Rectangle<float> >& RectanglePackingLimitPositions (vector< Rectangle< float > > & v, const char * quality, PluginProgress * progress) This function is used for packing rectangles. It is used when we want to reduce the complexity restricting the number of tested positions for each rectangle to pack.
Parameters:
v a vector including the rectangles to pack.
quality give the complexity of the algorithm.
progress pointer on an instance of the PluginProgress class.
Returns:
the vector v whose rectangles have had their co-ordinates changed.