#include <ZMFTypes.h>
Public Member Functions | |
| BoundingBox (const std::vector< Point > &points) | |
| const std::vector< Point > & | points () const |
| double | width () const |
| double | height () const |
| Point | center () const |
| Point | topLeft () const |
| double | rotation () const |
| int | p1Quadrant () const |
| int | p2Quadrant () const |
| bool | mirrorHorizontal () const |
| bool | mirrorVertical () const |
Private Member Functions | |
| int | quadrant (const Point &p) const |
Private Attributes | |
| const std::vector< Point > | m_points |
| double | m_width |
| double | m_height |
| Point | m_center |
| double | m_rotation |
| int | m_p1Quadrant |
| int | m_p2Quadrant |
| bool | m_mirrorHorizontal |
| bool | m_mirrorVertical |
| libzmf::BoundingBox::BoundingBox | ( | const std::vector< Point > & | points | ) |
| Point libzmf::BoundingBox::center | ( | ) | const |
Referenced by topLeft().
| double libzmf::BoundingBox::height | ( | ) | const |
Referenced by topLeft().
| bool libzmf::BoundingBox::mirrorHorizontal | ( | ) | const |
| bool libzmf::BoundingBox::mirrorVertical | ( | ) | const |
| int libzmf::BoundingBox::p1Quadrant | ( | ) | const |
Referenced by BoundingBox().
| int libzmf::BoundingBox::p2Quadrant | ( | ) | const |
| const std::vector< Point > & libzmf::BoundingBox::points | ( | ) | const |
Referenced by libzmf::ZMF4Parser::readRectangle().
| int libzmf::BoundingBox::quadrant | ( | const Point & | p | ) | const [private] |
Referenced by BoundingBox().
| double libzmf::BoundingBox::rotation | ( | ) | const |
| Point libzmf::BoundingBox::topLeft | ( | ) | const |
| double libzmf::BoundingBox::width | ( | ) | const |
Referenced by topLeft().
Point libzmf::BoundingBox::m_center [private] |
Referenced by BoundingBox(), center(), and quadrant().
double libzmf::BoundingBox::m_height [private] |
Referenced by BoundingBox(), and height().
bool libzmf::BoundingBox::m_mirrorHorizontal [private] |
Referenced by BoundingBox(), and mirrorHorizontal().
bool libzmf::BoundingBox::m_mirrorVertical [private] |
Referenced by BoundingBox(), and mirrorVertical().
int libzmf::BoundingBox::m_p1Quadrant [private] |
Referenced by BoundingBox(), and p1Quadrant().
int libzmf::BoundingBox::m_p2Quadrant [private] |
Referenced by BoundingBox(), and p2Quadrant().
const std::vector<Point> libzmf::BoundingBox::m_points [private] |
Referenced by BoundingBox(), and points().
double libzmf::BoundingBox::m_rotation [private] |
Referenced by BoundingBox(), and rotation().
double libzmf::BoundingBox::m_width [private] |
Referenced by BoundingBox(), and width().