Référence de la classe KoRect

#include <KoRect.h>

Graphe de collaboration de KoRect:

[légende]
Liste de tous les membres

Fonctions membres publiques

 KoRect ()
 KoRect (const KoPoint &topleft, const KoPoint &bottomright)
 KoRect (const KoPoint &topleft, const KoSize &size)
 KoRect (const double &left, const double &top, const double &width, const double &height)
 ~KoRect ()
bool isNull () const
bool isEmpty () const
bool isValid () const
KoRect normalize () const
double left () const
double top () const
double right () const
double bottom () const
double & rLeft ()
double & rTop ()
double & rRight ()
double & rBottom ()
double x () const
double y () const
void setLeft (const double &left)
void setTop (const double &top)
void setRight (const double &right)
void setBottom (const double &bottom)
void setX (const double &x)
void setY (const double &y)
KoPoint topLeft () const
KoPoint bottomRight () const
KoPoint topRight () const
KoPoint bottomLeft () const
KoPoint center () const
void setTopLeft (const KoPoint &topleft)
void setBottomRight (const KoPoint &bottomright)
void setTopRight (const KoPoint &topright)
void setBottomLeft (const KoPoint &bottomleft)
void moveTopLeft (const KoPoint &topleft)
void moveBottomRight (const KoPoint &bottomright)
void moveTopRight (const KoPoint &topright)
void moveBottomLeft (const KoPoint &bottomleft)
void moveBy (const double &dx, const double &dy)
void setRect (const double &x, const double &y, const double &width, const double &height)
void setRect (const KoRect &rect)
void setCoords (const double &x1, const double &y1, const double &x2, const double &y2)
KoSize size () const
double width () const
double height () const
void setWidth (const double &width)
void setHeight (const double &height)
void setSize (const KoSize &size)
KoRectoperator|= (const KoRect &rhs)
KoRectoperator &= (const KoRect &rhs)
bool contains (const KoPoint &p) const
bool contains (const double &x, const double &y) const
 Helper function for the above function.
bool contains (const KoRect &r) const
 Helper function for the above function.
KoRect unite (const KoRect &r) const
KoRect intersect (const KoRect &r) const
bool intersects (const KoRect &r) const
KoRect transform (const QMatrix &m) const
KoRect translate (double dx, double dy) const
QRect toQRect () const

Fonctions membres publiques statiques

static KoRect fromQRect (const QRect &rect)

Attributs privés

KoPoint m_tl
KoPoint m_br

Description détaillée

A rect whose coordinates are floating-point values ( "double"s ). The API isn't documented, it's a perfect mirror of QRect.

Définition à la ligne 31 du fichier KoRect.h.


Documentation des contructeurs et destructeur

KoRect::KoRect (  )  [inline]

Définition à la ligne 34 du fichier KoRect.h.

Référencé par fromQRect(), transform(), et translate().

Voici le graphe d'appel pour cette fonction :

KoRect::KoRect ( const KoPoint topleft,
const KoPoint bottomright 
) [inline]

Définition à la ligne 36 du fichier KoRect.h.

KoRect::KoRect ( const KoPoint topleft,
const KoSize size 
) [inline]

Définition à la ligne 38 du fichier KoRect.h.

Références testguiform::size.

KoRect::KoRect ( const double &  left,
const double &  top,
const double &  width,
const double &  height 
) [inline]

Définition à la ligne 40 du fichier KoRect.h.

KoRect::~KoRect (  )  [inline]

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


Documentation des fonctions membres

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

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

Référencé par KoRectTest::testEmptyRect(), KoRectTest::testNonEmptyRect(), et KoRectTest::testUnion().

bool KoRect::isEmpty (  )  const [inline]

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

Référencé par operator|(), operator|=(), KoRectTest::testEmptyRect(), KoRectTest::testNonEmptyRect(), et KoRectTest::testUnion().

Voici le graphe d'appel pour cette fonction :

bool KoRect::isValid (  )  const [inline]

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

KoRect KoRect::normalize (  )  const

Définition à la ligne 21 du fichier KoRect.cpp.

Références bottom(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), et top().

Voici le graphe d'appel pour cette fonction :

double KoRect::left (  )  const [inline]

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

Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), KoGuideLineDia::KoGuideLineDia(), normalize(), operator &(), operator &=(), operator<<(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toQRect(), translate(), et KoZoomHandler::zoomRectOld().

Voici le graphe d'appel pour cette fonction :

double KoRect::top (  )  const [inline]

Définition à la ligne 52 du fichier KoRect.h.

Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), normalize(), operator &(), operator &=(), operator<<(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), toQRect(), translate(), et KoZoomHandler::zoomRectOld().

Voici le graphe d'appel pour cette fonction :

double KoRect::right (  )  const [inline]

Définition à la ligne 53 du fichier KoRect.h.

Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), KoGuideLineDia::KoGuideLineDia(), normalize(), operator &(), operator &=(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), et KoZoomHandler::zoomRectOld().

Voici le graphe d'appel pour cette fonction :

double KoRect::bottom (  )  const [inline]

Définition à la ligne 54 du fichier KoRect.h.

Référencé par center(), contains(), KoGuides::diffNextGuide(), intersects(), normalize(), operator &(), operator &=(), operator|(), operator|=(), KoGuides::repaintSnapping(), KoGuideLineDia::slotOrientationChanged(), KoGuides::snapToGuideLines(), et KoZoomHandler::zoomRectOld().

Voici le graphe d'appel pour cette fonction :

double& KoRect::rLeft (  )  [inline]

Définition à la ligne 56 du fichier KoRect.h.

double& KoRect::rTop (  )  [inline]

Définition à la ligne 57 du fichier KoRect.h.

double& KoRect::rRight (  )  [inline]

Définition à la ligne 58 du fichier KoRect.h.

double& KoRect::rBottom (  )  [inline]

Définition à la ligne 59 du fichier KoRect.h.

double KoRect::x (  )  const [inline]

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

Référencé par transform().

Voici le graphe d'appel pour cette fonction :

double KoRect::y (  )  const [inline]

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

Référencé par transform().

Voici le graphe d'appel pour cette fonction :

void KoRect::setLeft ( const double &  left  )  [inline]

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

void KoRect::setTop ( const double &  top  )  [inline]

Définition à la ligne 65 du fichier KoRect.h.

void KoRect::setRight ( const double &  right  )  [inline]

Définition à la ligne 66 du fichier KoRect.h.

void KoRect::setBottom ( const double &  bottom  )  [inline]

Définition à la ligne 67 du fichier KoRect.h.

void KoRect::setX ( const double &  x  )  [inline]

Définition à la ligne 69 du fichier KoRect.h.

void KoRect::setY ( const double &  y  )  [inline]

Définition à la ligne 70 du fichier KoRect.h.

KoPoint KoRect::topLeft (  )  const [inline]

Définition à la ligne 72 du fichier KoRect.h.

Référencé par operator!=(), operator==(), KoTextZoomHandler::ptToLayoutUnitPt(), et transform().

Voici le graphe d'appel pour cette fonction :

KoPoint KoRect::bottomRight (  )  const [inline]

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

Référencé par operator!=(), operator==(), KoTextZoomHandler::ptToLayoutUnitPt(), et transform().

Voici le graphe d'appel pour cette fonction :

KoPoint KoRect::topRight (  )  const [inline]

Définition à la ligne 74 du fichier KoRect.h.

KoPoint KoRect::bottomLeft (  )  const [inline]

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

KoPoint KoRect::center (  )  const

Définition à la ligne 64 du fichier KoRect.cpp.

Références bottom(), left(), right(), et top().

Voici le graphe d'appel pour cette fonction :

void KoRect::setTopLeft ( const KoPoint topleft  ) 

Définition à la ligne 41 du fichier KoRect.cpp.

Références m_tl.

void KoRect::setBottomRight ( const KoPoint bottomright  ) 

Définition à la ligne 46 du fichier KoRect.cpp.

Références m_br.

void KoRect::setTopRight ( const KoPoint topright  ) 

Définition à la ligne 51 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::setBottomLeft ( const KoPoint bottomleft  ) 

Définition à la ligne 57 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::moveTopLeft ( const KoPoint topleft  ) 

Définition à la ligne 69 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::moveBottomRight ( const KoPoint bottomright  ) 

Définition à la ligne 76 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::moveTopRight ( const KoPoint topright  ) 

Définition à la ligne 83 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::moveBottomLeft ( const KoPoint bottomleft  ) 

Définition à la ligne 91 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), KoPoint::ry(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

void KoRect::moveBy ( const double &  dx,
const double &  dy 
)

Définition à la ligne 99 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::rx(), et KoPoint::ry().

Voici le graphe d'appel pour cette fonction :

void KoRect::setRect ( const double &  x,
const double &  y,
const double &  width,
const double &  height 
)

Définition à la ligne 107 du fichier KoRect.cpp.

Références m_br, m_tl, et KoPoint::setCoords().

Voici le graphe d'appel pour cette fonction :

void KoRect::setRect ( const KoRect rect  ) 

Définition à la ligne 113 du fichier KoRect.cpp.

Références m_br, et m_tl.

void KoRect::setCoords ( const double &  x1,
const double &  y1,
const double &  x2,
const double &  y2 
)

Définition à la ligne 119 du fichier KoRect.cpp.

Références m_br, m_tl, et KoPoint::setCoords().

Référencé par operator &(), operator|(), et KoZoomHandler::unzoomRectOld().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KoSize KoRect::size (  )  const

Définition à la ligne 131 du fichier KoRect.cpp.

Références height(), et width().

Référencé par setSize().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

double KoRect::width (  )  const [inline]

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

Référencé par operator<<(), size(), toQRect(), et translate().

Voici le graphe d'appel pour cette fonction :

double KoRect::height (  )  const [inline]

Définition à la ligne 96 du fichier KoRect.h.

Référencé par operator<<(), size(), toQRect(), et translate().

Voici le graphe d'appel pour cette fonction :

void KoRect::setWidth ( const double &  width  )  [inline]

Définition à la ligne 97 du fichier KoRect.h.

Référencé par setSize().

Voici le graphe d'appel pour cette fonction :

void KoRect::setHeight ( const double &  height  )  [inline]

Définition à la ligne 98 du fichier KoRect.h.

Référencé par setSize().

Voici le graphe d'appel pour cette fonction :

void KoRect::setSize ( const KoSize size  ) 

Définition à la ligne 125 du fichier KoRect.cpp.

Références KoSize::height(), setHeight(), setWidth(), size(), et KoSize::width().

Voici le graphe d'appel pour cette fonction :

KoRect & KoRect::operator|= ( const KoRect rhs  ) 

Définition à la ligne 136 du fichier KoRect.cpp.

Références bottom(), isEmpty(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), top(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

KoRect & KoRect::operator &= ( const KoRect rhs  ) 

Définition à la ligne 156 du fichier KoRect.cpp.

Références bottom(), left(), m_br, m_tl, right(), KoPoint::setX(), KoPoint::setY(), top(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

bool KoRect::contains ( const KoPoint p  )  const

Returns if the point is contained in the rect.

Paramètres:
p the point to test Will return true if the point is contained in the 2d area this rect represents, this means that it will return true on everthing from the topleft() to the bottomright(); Note that for KoRect(0, 0, 100, 100) the KoPoint(0, 0) as well as KoPoint(100, 100) are mathmatically contained in the rect, this in contrary to pixel based rectangles.

Définition à la ligne 169 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

bool KoRect::contains ( const double &  x,
const double &  y 
) const

Helper function for the above function.

Définition à la ligne 173 du fichier KoRect.cpp.

Références m_br, m_tl, KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

bool KoRect::contains ( const KoRect r  )  const

Helper function for the above function.

Définition à la ligne 177 du fichier KoRect.cpp.

Références bottom(), left(), m_br, m_tl, right(), top(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

KoRect KoRect::unite ( const KoRect r  )  const

Définition à la ligne 182 du fichier KoRect.cpp.

KoRect KoRect::intersect ( const KoRect r  )  const

Définition à la ligne 186 du fichier KoRect.cpp.

bool KoRect::intersects ( const KoRect r  )  const

Définition à la ligne 190 du fichier KoRect.cpp.

Références bottom(), left(), m_br, m_tl, right(), top(), KoPoint::x(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

KoRect KoRect::transform ( const QMatrix &  m  )  const

Définition à la ligne 229 du fichier KoRect.cpp.

Références bottomRight(), KoRect(), m_br, m_tl, testguiform::result, topLeft(), x(), KoPoint::x(), y(), et KoPoint::y().

Voici le graphe d'appel pour cette fonction :

KoRect KoRect::translate ( double  dx,
double  dy 
) const

Définition à la ligne 260 du fichier KoRect.cpp.

Références height(), KoRect(), left(), top(), et width().

Voici le graphe d'appel pour cette fonction :

QRect KoRect::toQRect (  )  const

Définition à la ligne 265 du fichier KoRect.cpp.

Références height(), left(), top(), et width().

Voici le graphe d'appel pour cette fonction :

KoRect KoRect::fromQRect ( const QRect &  rect  )  [static]

Définition à la ligne 271 du fichier KoRect.cpp.

Références KoRect().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KoPoint KoRect::m_tl [private]

Définition à la ligne 127 du fichier KoRect.h.

Référencé par contains(), intersects(), moveBottomLeft(), moveBottomRight(), moveBy(), moveTopLeft(), moveTopRight(), normalize(), operator &=(), operator|=(), setBottomLeft(), setCoords(), setRect(), setTopLeft(), setTopRight(), et transform().

KoPoint KoRect::m_br [private]

Définition à la ligne 127 du fichier KoRect.h.

Référencé par contains(), intersects(), moveBottomLeft(), moveBottomRight(), moveBy(), moveTopLeft(), moveTopRight(), normalize(), operator &=(), operator|=(), setBottomLeft(), setBottomRight(), setCoords(), setRect(), setTopRight(), et transform().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:48:38 2006 pour KPlato par  doxygen 1.5.1-p1