#include <KoPoint.h>
Fonctions membres publiques | |
| KoPoint () | |
| KoPoint (const double &x, const double &y) | |
| KoPoint (const QPoint &p) | |
| KoPoint (const QPointF &pt) | |
| ~KoPoint () | |
| bool | operator== (const KoPoint &rhs) const |
| bool | operator!= (const KoPoint &rhs) const |
| bool | isNull () const |
| double | x () const |
| double | y () const |
| void | setX (const double &x) |
| void | setY (const double &y) |
| double & | rx () |
| double & | ry () |
| KoPoint & | operator= (const KoPoint &rhs) |
| KoPoint & | operator+= (const KoPoint &rhs) |
| KoPoint & | operator-= (const KoPoint &rhs) |
| KoPoint & | operator *= (const double &c) |
| void | setCoords (const double &x, const double &y) |
| int | floorX () const |
| int | floorY () const |
| int | roundX () const |
| int | roundY () const |
| QPoint | floorQPoint () const |
| QPoint | roundQPoint () const |
| KoPoint | transform (const QMatrix &m) const |
| bool | isNear (const KoPoint &p, double range) const |
| double | manhattanLength () const |
| QPoint | toQPoint () const |
| Convert to a QPoint - with precision loss! | |
| QPointF | toPointF () const |
| Convert to a Qt4 floating point QPoint. | |
Fonctions membres publiques statiques | |
| static double | getAngle (const KoPoint &p1, const KoPoint &p2) |
Attributs privés | |
| double | m_x |
| double | m_y |
Amis | |
| KoPoint | operator+ (const KoPoint &, const KoPoint &) |
| KoPoint | operator- (const KoPoint &, const KoPoint &) |
| KoPoint | operator * (const KoPoint &, const double &) |
| KoPoint | operator * (const double &, const KoPoint &) |
| double | operator * (const KoPoint &a, const KoPoint &b) |
KoPoint differs from QPointF in that there are a number of convenience methods that QPointF lacks and that it mirrors more closely than QPointF the api of QPoint.
Définition à la ligne 37 du fichier KoPoint.h.
| KoPoint::KoPoint | ( | ) | [inline] |
Définition à la ligne 41 du fichier KoPoint.h.
Référencé par transform().
Voici le graphe d'appel pour cette fonction :
| KoPoint::KoPoint | ( | const double & | x, | |
| const double & | y | |||
| ) | [inline] |
| bool KoPoint::operator== | ( | const KoPoint & | rhs | ) | const [inline] |
| bool KoPoint::operator!= | ( | const KoPoint & | rhs | ) | const [inline] |
| bool KoPoint::isNull | ( | void | ) | const [inline] |
| double KoPoint::x | ( | ) | const [inline] |
Définition à la ligne 53 du fichier KoPoint.h.
Références m_x.
Référencé par KoGuides::add(), KoRect::contains(), KoGuides::diffNextGuide(), KoGuides::find(), floorQPoint(), floorX(), getAngle(), KoRect::intersects(), isNear(), KoTextZoomHandler::layoutUnitPtToPt(), main(), KoGuides::mapFromScreen(), KoRect::moveBottomLeft(), KoRect::moveBottomRight(), KoRect::moveTopLeft(), KoRect::moveTopRight(), KoRect::operator &=(), operator!=(), operator+=(), operator-=(), operator<<(), operator=(), operator==(), KoRect::operator|=(), KoTextZoomHandler::ptToLayoutUnitPix(), KoTextZoomHandler::ptToLayoutUnitPt(), KoTextZoomHandler::ptToPixel(), KoGuides::repaintSnapping(), roundQPoint(), roundX(), KoRect::setBottomLeft(), KoRect::setTopRight(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toPointF(), KoRect::transform(), transform(), et KoZoomHandler::zoomPointOld().
Voici le graphe d'appel pour cette fonction :
| double KoPoint::y | ( | ) | const [inline] |
Définition à la ligne 54 du fichier KoPoint.h.
Références m_y.
Référencé par KoGuides::add(), KoRect::contains(), KoGuides::diffNextGuide(), KoGuides::find(), floorQPoint(), floorY(), getAngle(), KoRect::intersects(), isNear(), KoTextZoomHandler::layoutUnitPtToPt(), main(), KoRect::moveBottomLeft(), KoRect::moveBottomRight(), KoRect::moveTopLeft(), KoRect::moveTopRight(), KoRect::operator &=(), operator!=(), operator+=(), operator-=(), operator<<(), operator=(), operator==(), KoRect::operator|=(), KoTextZoomHandler::ptToLayoutUnitPix(), KoTextZoomHandler::ptToLayoutUnitPt(), KoTextZoomHandler::ptToPixel(), KoGuides::repaintSnapping(), roundQPoint(), roundY(), KoRect::setBottomLeft(), KoRect::setTopRight(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toPointF(), KoRect::transform(), transform(), et KoZoomHandler::zoomPointOld().
Voici le graphe d'appel pour cette fonction :
| void KoPoint::setX | ( | const double & | x | ) | [inline] |
Définition à la ligne 55 du fichier KoPoint.h.
Références m_x.
Référencé par KoGuides::diffNextGuide(), KoRect::normalize(), KoRect::operator &=(), KoRect::operator|=(), et KoGuides::snapToGuideLines().
Voici le graphe d'appel pour cette fonction :
| void KoPoint::setY | ( | const double & | y | ) | [inline] |
Définition à la ligne 56 du fichier KoPoint.h.
Références m_y.
Référencé par KoGuides::diffNextGuide(), KoRect::normalize(), KoRect::operator &=(), KoRect::operator|=(), et KoGuides::snapToGuideLines().
Voici le graphe d'appel pour cette fonction :
| double& KoPoint::rx | ( | ) | [inline] |
Définition à la ligne 58 du fichier KoPoint.h.
Références m_x.
Référencé par KoRect::moveBottomLeft(), KoRect::moveBottomRight(), KoRect::moveBy(), KoRect::moveTopLeft(), KoRect::moveTopRight(), KoRect::setBottomLeft(), et KoRect::setTopRight().
Voici le graphe d'appel pour cette fonction :
| double& KoPoint::ry | ( | ) | [inline] |
Définition à la ligne 59 du fichier KoPoint.h.
Références m_y.
Référencé par KoRect::moveBottomLeft(), KoRect::moveBottomRight(), KoRect::moveBy(), KoRect::moveTopLeft(), KoRect::moveTopRight(), KoRect::setBottomLeft(), et KoRect::setTopRight().
Voici le graphe d'appel pour cette fonction :
| KoPoint& KoPoint::operator *= | ( | const double & | c | ) | [inline] |
| void KoPoint::setCoords | ( | const double & | x, | |
| const double & | y | |||
| ) | [inline] |
Définition à la ligne 73 du fichier KoPoint.h.
Référencé par KoRect::setCoords(), et KoRect::setRect().
Voici le graphe d'appel pour cette fonction :
| int KoPoint::floorX | ( | ) | const [inline] |
| int KoPoint::floorY | ( | ) | const [inline] |
| int KoPoint::roundX | ( | ) | const [inline] |
| int KoPoint::roundY | ( | ) | const [inline] |
| QPoint KoPoint::floorQPoint | ( | ) | const [inline] |
| QPoint KoPoint::roundQPoint | ( | ) | const [inline] |
| KoPoint KoPoint::transform | ( | const QMatrix & | m | ) | const [inline] |
| bool KoPoint::isNear | ( | const KoPoint & | p, | |
| double | range | |||
| ) | const [inline] |
| double KoPoint::manhattanLength | ( | ) | const [inline] |
| QPoint KoPoint::toQPoint | ( | ) | const [inline] |
| QPointF KoPoint::toPointF | ( | ) | const [inline] |
double KoPoint::m_x [private] |
Définition à la ligne 117 du fichier KoPoint.h.
Référencé par isNear(), isNull(), KoPoint(), manhattanLength(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), rx(), setCoords(), setX(), toQPoint(), transform(), et x().
double KoPoint::m_y [private] |
Définition à la ligne 117 du fichier KoPoint.h.
Référencé par isNear(), isNull(), KoPoint(), manhattanLength(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator=(), operator==(), ry(), setCoords(), setY(), toQPoint(), transform(), et y().
1.5.1-p1