Classes | Static Public Member Functions | Private Types | Static Private Member Functions
vcg::RectPacker< SCALAR_TYPE > Class Template Reference

#include <rect_packer.h>

List of all members.

Classes

class  ComparisonFunctor
class  Stat

Static Public Member Functions

static bool Pack (const std::vector< Box2x > &rectVec, const Point2i containerSizeX, std::vector< Similarity2x > &trVec, Point2x &coveredContainer)
 the sub portion of the container covered by the solution.
static bool PackMulti (const std::vector< Box2x > &rectVec, const Point2i containerSizeI, const int containerNum, std::vector< Similarity2x > &trVec, std::vector< int > &indVec, std::vector< Point2x > &coveredContainer)
 the sub portion of the container covered by the solution.
static bool PackOccupancy (const std::vector< Box2x > &rectVec, const Point2i containerSizeX, const SCALAR_TYPE occupancyRatio, std::vector< Similarity2x > &trVec, Point2x &coveredContainer)
 the sub portion of the container covered by the solution.
static bool PackOccupancyMulti (const std::vector< Box2x > &rectVec, const Point2i containerSizeX, const int containerNum, const SCALAR_TYPE occupancyRatio, std::vector< Similarity2x > &trVec, std::vector< int > &indVec, std::vector< Point2x > &coveredContainer)
 the sub portion of the container covered by the solution.
static Statstat ()

Private Types

typedef vcg::Box2< SCALAR_TYPE > Box2x
typedef vcg::Point2< SCALAR_TYPE > Point2x
typedef vcg::Similarity2
< SCALAR_TYPE > 
Similarity2x

Static Private Member Functions

static bool PackInt (const std::vector< vcg::Point2i > &sizes, const vcg::Point2i &max_size, std::vector< vcg::Point2i > &posiz, vcg::Point2i &global_size)
static bool PackIntMulti (const std::vector< Point2i > &sizes, const int ntexture, const vcg::Point2i &max_size, std::vector< Point2i > &posiz, std::vector< int > &texin, std::vector< Point2i > &globalsize)

Detailed Description

template<class SCALAR_TYPE>
class vcg::RectPacker< SCALAR_TYPE >

Definition at line 38 of file rect_packer.h.


Member Typedef Documentation

template<class SCALAR_TYPE >
typedef vcg::Box2<SCALAR_TYPE> vcg::RectPacker< SCALAR_TYPE >::Box2x [private]

Definition at line 40 of file rect_packer.h.

template<class SCALAR_TYPE >
typedef vcg::Point2<SCALAR_TYPE> vcg::RectPacker< SCALAR_TYPE >::Point2x [private]

Definition at line 41 of file rect_packer.h.

template<class SCALAR_TYPE >
typedef vcg::Similarity2<SCALAR_TYPE> vcg::RectPacker< SCALAR_TYPE >::Similarity2x [private]

Definition at line 42 of file rect_packer.h.


Member Function Documentation

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::Pack ( const std::vector< Box2x > &  rectVec,
const Point2i  containerSizeX,
std::vector< Similarity2x > &  trVec,
Point2x coveredContainer 
) [inline, static]

the sub portion of the container covered by the solution.

Parameters:
containerSizeXthe set of rectangles that have to be packed (generic floats, no req.)
trVecthe size of the container where they has to be fitted (usually in pixel size)
coveredContainerthe result, a set of similarity transformation that have to be applied to the rect to get their position

Definition at line 62 of file rect_packer.h.

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::PackInt ( const std::vector< vcg::Point2i > &  sizes,
const vcg::Point2i max_size,
std::vector< vcg::Point2i > &  posiz,
vcg::Point2i global_size 
) [inline, static, private]

Definition at line 273 of file rect_packer.h.

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::PackIntMulti ( const std::vector< Point2i > &  sizes,
const int  ntexture,
const vcg::Point2i max_size,
std::vector< Point2i > &  posiz,
std::vector< int > &  texin,
std::vector< Point2i > &  globalsize 
) [inline, static, private]

Definition at line 406 of file rect_packer.h.

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::PackMulti ( const std::vector< Box2x > &  rectVec,
const Point2i  containerSizeI,
const int  containerNum,
std::vector< Similarity2x > &  trVec,
std::vector< int > &  indVec,
std::vector< Point2x > &  coveredContainer 
) [inline, static]

the sub portion of the container covered by the solution.

Parameters:
containerSizeIthe set of rectangles that have to be packed (generic floats, no req.)
containerNumthe size of the container where they has to be fitted (usually in pixel size)
indVecthe result, a set of similarity transformation that have to be applied to the rect to get their position

Definition at line 149 of file rect_packer.h.

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::PackOccupancy ( const std::vector< Box2x > &  rectVec,
const Point2i  containerSizeX,
const SCALAR_TYPE  occupancyRatio,
std::vector< Similarity2x > &  trVec,
Point2x coveredContainer 
) [inline, static]

the sub portion of the container covered by the solution.

Parameters:
containerSizeXthe set of rectangles that have to be packed
occupancyRatiothe size of the container where they has to be fitted (usually in pixel size)
trVecthe expected percentage of the container that has to be covered
coveredContainerthe result, a set of similarity transformation that have to be applied to the rect to get their position

Definition at line 94 of file rect_packer.h.

template<class SCALAR_TYPE >
static bool vcg::RectPacker< SCALAR_TYPE >::PackOccupancyMulti ( const std::vector< Box2x > &  rectVec,
const Point2i  containerSizeX,
const int  containerNum,
const SCALAR_TYPE  occupancyRatio,
std::vector< Similarity2x > &  trVec,
std::vector< int > &  indVec,
std::vector< Point2x > &  coveredContainer 
) [inline, static]

the sub portion of the container covered by the solution.

Parameters:
containerSizeXthe set of rectangles that have to be packed
containerNumthe size of the container where they has to be fitted (usually in pixel size)
trVecthe expected percentage of the container that has to be covered
indVecthe result, a set of similarity transformation that have to be applied to the rect to get their position

Definition at line 185 of file rect_packer.h.

template<class SCALAR_TYPE >
static Stat& vcg::RectPacker< SCALAR_TYPE >::stat ( ) [inline, static]

Definition at line 59 of file rect_packer.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:41:20