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) |
|
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/(). |
|
Constructs a point with x value xpos and y value ypos.
Definition at line 22 of file qwt_double_rect.cpp. |
|
Copy constructor.
Definition at line 29 of file qwt_double_rect.cpp. |
|
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. |
|
Returns the point formed by multiplying both components by c.
Definition at line 81 of file qwt_double_rect.cpp. References QwtDoublePoint(). |
|
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. |
|
Returns TRUE if point and other are not equal; otherwise returns FALSE.
Definition at line 42 of file qwt_double_rect.cpp. References operator==(). |
|
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(). |
|
Adds point other to this point and returns a reference to this point.
Definition at line 95 of file qwt_double_rect.cpp. |
|
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(). |
|
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(). |
|
Subtracts point other from this point and returns a reference to this point.
Definition at line 104 of file qwt_double_rect.cpp. |
|
Returns the point formed by dividing both components by c.
Definition at line 88 of file qwt_double_rect.cpp. References QwtDoublePoint(). |
|
Divides both x and y by c, and returns a reference to this point.
Definition at line 122 of file qwt_double_rect.cpp. |
|
Returns TRUE if point and other are equal; otherwise returns FALSE.
Definition at line 36 of file qwt_double_rect.cpp. Referenced by operator!=(). |
|
Returns a reference to the x coordinate of the point.
Definition at line 211 of file qwt_double_rect.h. |
|
Returns a reference to the y coordinate of the point.
Definition at line 217 of file qwt_double_rect.h. |
|
Sets the x coordinate of the point to x.
Definition at line 199 of file qwt_double_rect.h. |
|
Sets the y coordinate of the point to x.
Definition at line 205 of file qwt_double_rect.h. |
|
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(). |
|
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(). |