Référence de la classe KoPoint

#include <KoPoint.h>

Liste de tous les membres

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 ()
KoPointoperator= (const KoPoint &rhs)
KoPointoperator+= (const KoPoint &rhs)
KoPointoperator-= (const KoPoint &rhs)
KoPointoperator *= (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)


Description détaillée

A point whose coordinates are floating-point values ( "double"s ).

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.


Documentation des contructeurs et destructeur

KoPoint::KoPoint (  )  [inline]

Définition à la ligne 41 du fichier KoPoint.h.

Références m_x, et m_y.

Référencé par transform().

Voici le graphe d'appel pour cette fonction :

KoPoint::KoPoint ( const double &  x,
const double &  y 
) [inline]

Définition à la ligne 42 du fichier KoPoint.h.

KoPoint::KoPoint ( const QPoint &  p  )  [inline]

Définition à la ligne 43 du fichier KoPoint.h.

KoPoint::KoPoint ( const QPointF &  pt  )  [inline]

Définition à la ligne 44 du fichier KoPoint.h.

KoPoint::~KoPoint (  )  [inline]

Définition à la ligne 46 du fichier KoPoint.h.


Documentation des fonctions membres

bool KoPoint::operator== ( const KoPoint rhs  )  const [inline]

Définition à la ligne 48 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

bool KoPoint::operator!= ( const KoPoint rhs  )  const [inline]

Définition à la ligne 49 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

bool KoPoint::isNull ( void   )  const [inline]

Définition à la ligne 51 du fichier KoPoint.h.

Références m_x, et m_y.

Référencé par main().

Voici le graphe d'appel pour cette fonction :

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 KoPoint rhs  )  [inline]

Définition à la ligne 61 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

KoPoint& KoPoint::operator+= ( const KoPoint rhs  )  [inline]

Définition à la ligne 62 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

KoPoint& KoPoint::operator-= ( const KoPoint rhs  )  [inline]

Définition à la ligne 63 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

KoPoint& KoPoint::operator *= ( const double &  c  )  [inline]

Définition à la ligne 64 du fichier KoPoint.h.

Références m_x, et m_y.

void KoPoint::setCoords ( const double &  x,
const double &  y 
) [inline]

Définition à la ligne 73 du fichier KoPoint.h.

Références m_x, et m_y.

Référencé par KoRect::setCoords(), et KoRect::setRect().

Voici le graphe d'appel pour cette fonction :

int KoPoint::floorX (  )  const [inline]

Définition à la ligne 75 du fichier KoPoint.h.

Références x().

Voici le graphe d'appel pour cette fonction :

int KoPoint::floorY (  )  const [inline]

Définition à la ligne 76 du fichier KoPoint.h.

Références y().

Voici le graphe d'appel pour cette fonction :

int KoPoint::roundX (  )  const [inline]

Définition à la ligne 77 du fichier KoPoint.h.

Références x().

Voici le graphe d'appel pour cette fonction :

int KoPoint::roundY (  )  const [inline]

Définition à la ligne 78 du fichier KoPoint.h.

Références y().

Voici le graphe d'appel pour cette fonction :

QPoint KoPoint::floorQPoint (  )  const [inline]

Définition à la ligne 80 du fichier KoPoint.h.

Références x(), et y().

Voici le graphe d'appel pour cette fonction :

QPoint KoPoint::roundQPoint (  )  const [inline]

Définition à la ligne 81 du fichier KoPoint.h.

Références x(), et y().

Voici le graphe d'appel pour cette fonction :

KoPoint KoPoint::transform ( const QMatrix &  m  )  const [inline]

Définition à la ligne 83 du fichier KoPoint.h.

Références KoPoint(), m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

bool KoPoint::isNear ( const KoPoint p,
double  range 
) const [inline]

Définition à la ligne 90 du fichier KoPoint.h.

Références m_x, m_y, x(), et y().

Voici le graphe d'appel pour cette fonction :

static double KoPoint::getAngle ( const KoPoint p1,
const KoPoint p2 
) [inline, static]

Définition à la ligne 95 du fichier KoPoint.h.

Références main::a, x(), et y().

Référencé par main().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

double KoPoint::manhattanLength (  )  const [inline]

Définition à la ligne 102 du fichier KoPoint.h.

Références m_x, et m_y.

QPoint KoPoint::toQPoint (  )  const [inline]

Convert to a QPoint - with precision loss!

Définition à la ligne 108 du fichier KoPoint.h.

Références m_x, et m_y.

QPointF KoPoint::toPointF (  )  const [inline]

Convert to a Qt4 floating point QPoint.

Définition à la ligne 114 du fichier KoPoint.h.

Références x(), et y().

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions amies et associées

KoPoint operator+ ( const KoPoint p1,
const KoPoint p2 
) [friend]

Définition à la ligne 120 du fichier KoPoint.h.

KoPoint operator- ( const KoPoint p1,
const KoPoint p2 
) [friend]

Définition à la ligne 123 du fichier KoPoint.h.

KoPoint operator * ( const KoPoint p,
const double &  c 
) [friend]

Définition à la ligne 126 du fichier KoPoint.h.

KoPoint operator * ( const double &  c,
const KoPoint p 
) [friend]

Définition à la ligne 129 du fichier KoPoint.h.

double operator * ( const KoPoint a,
const KoPoint b 
) [friend]

Définition à la ligne 132 du fichier KoPoint.h.


Documentation des données membres

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().


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Wed Nov 22 23:48:27 2006 pour KPlato par  doxygen 1.5.1-p1