#include <outline2_packer.h>
Static Public Member Functions | |
static Box2f | getPolyBB (const std::vector< Point2x > &poly) |
static Box2f | getPolyOOBB (const std::vector< Point2x > &poly, float &rot) |
static bool | PackAsAxisAlignedRect (const std::vector< std::vector< Point2x > > &polyVec, const Point2i containerSizeX, std::vector< Similarity2x > &trVec, Point2x &coveredContainer) |
static bool | PackAsEqualSquares (const std::vector< std::vector< Point2x > > &polyVec, const Point2i containerSizeX, std::vector< Similarity2x > &trVec, Point2x &coveredContainer) |
static bool | PackAsObjectOrientedRect (const std::vector< std::vector< Point2x > > &polyVec, const Point2i containerSizeX, std::vector< Similarity2x > &trVec, Point2x &coveredContainer) |
static bool | PackMultiAsObjectOrientedRect (const std::vector< std::vector< Point2x > > &polyVec, const Point2x containerSizeX, const int containerNum, std::vector< Similarity2x > &trVec, std::vector< int > &indVec, std::vector< Point2x > &coveredContainerVec) |
static bool | ReadPolyVec (std::vector< std::vector< Point2x > > &polyVec, const char *filename) |
static bool | WritePolyVec (const std::vector< std::vector< Point2x > > &polyVec, const char *filename) |
Private Types | |
typedef vcg::Box2< SCALAR_TYPE > | Box2x |
typedef vcg::Point2< SCALAR_TYPE > | Point2x |
typedef vcg::Similarity2 < SCALAR_TYPE > | Similarity2x |
Definition at line 42 of file outline2_packer.h.
typedef vcg::Box2<SCALAR_TYPE> vcg::PolyPacker< SCALAR_TYPE >::Box2x [private] |
Definition at line 44 of file outline2_packer.h.
typedef vcg::Point2<SCALAR_TYPE> vcg::PolyPacker< SCALAR_TYPE >::Point2x [private] |
Definition at line 45 of file outline2_packer.h.
typedef vcg::Similarity2<SCALAR_TYPE> vcg::PolyPacker< SCALAR_TYPE >::Similarity2x [private] |
Definition at line 46 of file outline2_packer.h.
static Box2f vcg::PolyPacker< SCALAR_TYPE >::getPolyBB | ( | const std::vector< Point2x > & | poly | ) | [inline, static] |
Definition at line 50 of file outline2_packer.h.
static Box2f vcg::PolyPacker< SCALAR_TYPE >::getPolyOOBB | ( | const std::vector< Point2x > & | poly, |
float & | rot | ||
) | [inline, static] |
Definition at line 59 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::PackAsAxisAlignedRect | ( | const std::vector< std::vector< Point2x > > & | polyVec, |
const Point2i | containerSizeX, | ||
std::vector< Similarity2x > & | trVec, | ||
Point2x & | coveredContainer | ||
) | [inline, static] |
Definition at line 129 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::PackAsEqualSquares | ( | const std::vector< std::vector< Point2x > > & | polyVec, |
const Point2i | containerSizeX, | ||
std::vector< Similarity2x > & | trVec, | ||
Point2x & | coveredContainer | ||
) | [inline, static] |
Definition at line 88 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::PackAsObjectOrientedRect | ( | const std::vector< std::vector< Point2x > > & | polyVec, |
const Point2i | containerSizeX, | ||
std::vector< Similarity2x > & | trVec, | ||
Point2x & | coveredContainer | ||
) | [inline, static] |
Definition at line 145 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::PackMultiAsObjectOrientedRect | ( | const std::vector< std::vector< Point2x > > & | polyVec, |
const Point2x | containerSizeX, | ||
const int | containerNum, | ||
std::vector< Similarity2x > & | trVec, | ||
std::vector< int > & | indVec, | ||
std::vector< Point2x > & | coveredContainerVec | ||
) | [inline, static] |
Definition at line 171 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::ReadPolyVec | ( | std::vector< std::vector< Point2x > > & | polyVec, |
const char * | filename | ||
) | [inline, static] |
Definition at line 212 of file outline2_packer.h.
static bool vcg::PolyPacker< SCALAR_TYPE >::WritePolyVec | ( | const std::vector< std::vector< Point2x > > & | polyVec, |
const char * | filename | ||
) | [inline, static] |
Definition at line 196 of file outline2_packer.h.