Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

# QwtDoubleSize Class Reference

List of all members.

## Detailed Description

The QwtDoubleSize class defines a size in double coordinates

Definition at line 62 of file qwt_double_rect.h.

## Public Member Functions
| QwtDoubleSize ()
| QwtDoubleSize (double width, double height)
| QwtDoubleSize (const QSize &)
bool | isNull () const
bool | isEmpty () const
bool | isValid () const
double | width () const
double | height () const
void | setWidth (double w)
void | setHeight (double h)
void | transpose ()
QwtDoubleSize | expandedTo (const QwtDoubleSize &) const
QwtDoubleSize | boundedTo (const QwtDoubleSize &) const
double & | rwidth ()
double & | rheight ()
bool | operator== (const QwtDoubleSize &) const
bool | operator!= (const QwtDoubleSize &) const
const QwtDoubleSize | operator- () const
const QwtDoubleSize | operator+ (const QwtDoubleSize &) const
const QwtDoubleSize | operator- (const QwtDoubleSize &) const
const QwtDoubleSize | operator * (double) const
const QwtDoubleSize | operator/ (double) const
QwtDoubleSize & | operator+= (const QwtDoubleSize &)
QwtDoubleSize & | operator-= (const QwtDoubleSize &)
QwtDoubleSize & | operator *= (double c)
QwtDoubleSize & | operator/= (double c)

## Constructor & Destructor Documentation

QwtDoubleSize::QwtDoubleSize | ( |  | ) |

| Constructs a size with a width and height of 0.0. Definition at line 131 of file qwt_double_rect.cpp. Referenced by boundedTo(), expandedTo(), operator *(), operator+(), operator-(), and operator/().

QwtDoubleSize::QwtDoubleSize | ( | double | width,
|  | double | height
| ) |

| Constructs a size with a width w and height h. Definition at line 139 of file qwt_double_rect.cpp.

QwtDoubleSize::QwtDoubleSize | ( | const QSize & |  | ) |

| Copy constructor. Definition at line 147 of file qwt_double_rect.cpp.

## Member Function Documentation

QwtDoubleSize QwtDoubleSize::boundedTo | ( | const QwtDoubleSize & | other | ) | const

| Returns a size with the minimum width and height of this size and other. Definition at line 181 of file qwt_double_rect.cpp. References d_height, d_width, and QwtDoubleSize().

QwtDoubleSize QwtDoubleSize::expandedTo | ( | const QwtDoubleSize & | other | ) | const

| Returns a size with the maximum width and height of this size and other. Definition at line 167 of file qwt_double_rect.cpp. References d_height, d_width, and QwtDoubleSize(). Referenced by QwtPlotZoomer::end().

double QwtDoubleSize::height | ( |  | ) | const

| Returns the height. Definition at line 256 of file qwt_double_rect.h. Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().

bool QwtDoubleSize::isEmpty | ( |  | ) | const

| Returns TRUE if the width is <= 0 or the height is <= 0, otherwise FALSE. Definition at line 235 of file qwt_double_rect.h.

bool QwtDoubleSize::isNull | ( |  | ) | const

| Returns TRUE if the width is 0 and the height is 0; otherwise returns FALSE. Definition at line 226 of file qwt_double_rect.h.

bool QwtDoubleSize::isValid | ( |  | ) | const

| Returns TRUE if the width is equal to or greater than 0 and the height is equal to or greater than 0; otherwise returns FALSE. Definition at line 244 of file qwt_double_rect.h. Referenced by QwtPlotZoomer::begin().

const QwtDoubleSize QwtDoubleSize::operator * | ( | double |  | ) | const

| Returns the size formed by multiplying both components by c. Definition at line 240 of file qwt_double_rect.cpp. References QwtDoubleSize().

bool QwtDoubleSize::operator!= | ( | const QwtDoubleSize & |  | ) | const

| Returns TRUE if the size is not equal to other; otherwise returns FALSE. Definition at line 199 of file qwt_double_rect.cpp. References operator==().

const QwtDoubleSize QwtDoubleSize::operator+ | ( | const QwtDoubleSize & | other | ) | const

| Returns the size formed by adding both components by the components of other. Each component is added separately. Definition at line 219 of file qwt_double_rect.cpp. References d_height, d_width, and QwtDoubleSize().

QwtDoubleSize & QwtDoubleSize::operator+= | ( | const QwtDoubleSize & |  | ) |

| Adds size other to this size and returns a reference to this size. Definition at line 254 of file qwt_double_rect.cpp. References d_height, and d_width.

const QwtDoubleSize QwtDoubleSize::operator- | ( | const QwtDoubleSize & | other | ) | const

| Returns the size formed by subtracting both components by the components of other. Each component is subtracted separately. Definition at line 231 of file qwt_double_rect.cpp. References d_height, d_width, and QwtDoubleSize().

const QwtDoubleSize QwtDoubleSize::operator- | ( |  | ) | const

| Returns the size formed by changing the sign of both components, equivalent to QwtDoubleSize(-width(), -height()); Definition at line 209 of file qwt_double_rect.cpp. References QwtDoubleSize().

QwtDoubleSize & QwtDoubleSize::operator-= | ( | const QwtDoubleSize & |  | ) |

| Subtracts size other from this size and returns a reference to this size. Definition at line 263 of file qwt_double_rect.cpp. References d_height, and d_width.

const QwtDoubleSize QwtDoubleSize::operator/ | ( | double |  | ) | const

| Returns the size formed by dividing both components by c. Definition at line 247 of file qwt_double_rect.cpp. References QwtDoubleSize().

bool QwtDoubleSize::operator== | ( | const QwtDoubleSize & |  | ) | const

| Returns TRUE if the size is equal to other; otherwise returns FALSE. Definition at line 192 of file qwt_double_rect.cpp. References d_height, and d_width. Referenced by operator!=().

double & QwtDoubleSize::rheight | ( |  | ) |

| Returns a reference to the height. Definition at line 280 of file qwt_double_rect.h.

double & QwtDoubleSize::rwidth | ( |  | ) |

| Returns a reference to the width. Definition at line 274 of file qwt_double_rect.h.

void QwtDoubleSize::setHeight | ( | double | h | ) |

| Sets the height to height. Definition at line 268 of file qwt_double_rect.h.

void QwtDoubleSize::setWidth | ( | double | w | ) |

| Sets the width to width. Definition at line 262 of file qwt_double_rect.h.

void QwtDoubleSize::transpose | ( |  | ) |

| Swaps the values of width and height. Definition at line 155 of file qwt_double_rect.cpp.

double QwtDoubleSize::width | ( |  | ) | const

| Returns the width. Definition at line 250 of file qwt_double_rect.h. Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().