NAME
QwtDoublePoint -
SYNOPSIS
Detailed Description
The QwtDoublePoint class defines a point in double coordinates
Definition at line 22 of file qwt_double_rect.h.
Public Member Functions
QwtDoublePoint ()
QwtDoublePoint (double x, double y)
QwtDoublePoint (const QPoint &)
bool isNull () const
double x () const
double y () const
void setX (double x)
void setY (double y)
double & rx ()
double & ry ()
bool operator== (const QwtDoublePoint &) const
bool operator!= (const QwtDoublePoint &) const
const QwtDoublePoint operator- () const
const QwtDoublePoint operator+ (const QwtDoublePoint &) const
const QwtDoublePoint operator- (const QwtDoublePoint &) const
const QwtDoublePoint operator * (double) const
const QwtDoublePoint operator/ (double) const
QwtDoublePoint & operator+= (const QwtDoublePoint &)
QwtDoublePoint & operator-= (const QwtDoublePoint &)
QwtDoublePoint & operator *= (double)
QwtDoublePoint & operator/= (double)
Constructor & Destructor Documentation
QwtDoublePoint::QwtDoublePoint ()
Constructs a point with coordinates (0.0, 0.0) (isNull() returns TRUE).
Definition at line 14 of file qwt_double_rect.cpp.
Referenced by operator *(), operator+(), operator-(), and operator/().
QwtDoublePoint::QwtDoublePoint (double x, double y)
Constructs a point with x value xpos and y value ypos.
Definition at line 22 of file qwt_double_rect.cpp.
QwtDoublePoint::QwtDoublePoint (const QPoint &)
Copy constructor.
Definition at line 29 of file qwt_double_rect.cpp.
Member Function Documentation
bool QwtDoublePoint::isNull () const
Returns TRUE if both the x value and the y value are 0; otherwise
returns FALSE. Definition at line 181 of file qwt_double_rect.h.
const QwtDoublePoint QwtDoublePoint::operator * (double) const
Returns the point formed by multiplying both components by c.
Definition at line 81 of file qwt_double_rect.cpp.
References QwtDoublePoint().
QwtDoublePoint & QwtDoublePoint::operator *= (double)
Multiplies this point’s x and y by c, and returns a reference to this
point.
Definition at line 113 of file qwt_double_rect.cpp.
bool QwtDoublePoint::operator!= (const QwtDoublePoint &) const
Returns TRUE if point and other are not equal; otherwise returns FALSE.
Definition at line 42 of file qwt_double_rect.cpp.
References operator==().
const QwtDoublePoint QwtDoublePoint::operator+ (const QwtDoublePoint &
other) const
Returns the point formed by adding both components by the components of
other. Each component is added separately. Definition at line 62 of
file qwt_double_rect.cpp.
References d_x, d_y, and QwtDoublePoint().
QwtDoublePoint & QwtDoublePoint::operator+= (const QwtDoublePoint &)
Adds point other to this point and returns a reference to this point.
Definition at line 95 of file qwt_double_rect.cpp.
References d_x, and d_y.
const QwtDoublePoint QwtDoublePoint::operator- (const QwtDoublePoint &
other) const
Returns the point formed by subtracting both components by the
components of other. Each component is subtracted separately.
Definition at line 73 of file qwt_double_rect.cpp.
References d_x, d_y, and QwtDoublePoint().
const QwtDoublePoint QwtDoublePoint::operator- () const
Returns the point formed by changing the sign of both components,
equivalent to QDoublePoint(-x(), -y()); Definition at line 52 of file
qwt_double_rect.cpp.
References QwtDoublePoint().
QwtDoublePoint & QwtDoublePoint::operator-= (const QwtDoublePoint &)
Subtracts point other from this point and returns a reference to this
point.
Definition at line 104 of file qwt_double_rect.cpp.
References d_x, and d_y.
const QwtDoublePoint QwtDoublePoint::operator/ (double) const
Returns the point formed by dividing both components by c.
Definition at line 88 of file qwt_double_rect.cpp.
References QwtDoublePoint().
QwtDoublePoint & QwtDoublePoint::operator/= (double)
Divides both x and y by c, and returns a reference to this point.
Definition at line 122 of file qwt_double_rect.cpp.
bool QwtDoublePoint::operator== (const QwtDoublePoint &) const
Returns TRUE if point and other are equal; otherwise returns FALSE.
Definition at line 36 of file qwt_double_rect.cpp.
References d_x, and d_y.
Referenced by operator!=().
double & QwtDoublePoint::rx ()
Returns a reference to the x coordinate of the point.
Definition at line 211 of file qwt_double_rect.h.
double & QwtDoublePoint::ry ()
Returns a reference to the y coordinate of the point.
Definition at line 217 of file qwt_double_rect.h.
void QwtDoublePoint::setX (double x)
Sets the x coordinate of the point to x.
Definition at line 199 of file qwt_double_rect.h.
void QwtDoublePoint::setY (double y)
Sets the y coordinate of the point to x.
Definition at line 205 of file qwt_double_rect.h.
double QwtDoublePoint::x () const
Returns the x coordinate of the point.
Definition at line 187 of file qwt_double_rect.h.
Referenced by QwtDoubleRect::contains(), QwtPlotPicker::cursorLabel(),
QwtDoubleRect::moveCenter(), and QwtPlotPicker::transform().
double QwtDoublePoint::y () const
Returns the y coordinate of the point.
Definition at line 193 of file qwt_double_rect.h.
Referenced by QwtDoubleRect::contains(), QwtPlotPicker::cursorLabel(),
QwtDoubleRect::moveCenter(), and QwtPlotPicker::transform().
Author
Generated automatically by Doxygen for Qwt User’s Guide from the source
code.