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

#include <outline2_packer.h>

List of all members.

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

Detailed Description

template<class SCALAR_TYPE>
class vcg::PolyPacker< SCALAR_TYPE >

Definition at line 42 of file outline2_packer.h.


Member Typedef Documentation

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

Definition at line 44 of file outline2_packer.h.

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

Definition at line 45 of file outline2_packer.h.

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

Definition at line 46 of file outline2_packer.h.


Member Function Documentation

template<class SCALAR_TYPE >
static Box2f vcg::PolyPacker< SCALAR_TYPE >::getPolyBB ( const std::vector< Point2x > &  poly) [inline, static]

Definition at line 50 of file outline2_packer.h.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.

template<class SCALAR_TYPE >
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.


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