Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 92 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
bool operator== (const QwtDoubleSize &) const
bool operator!= (const QwtDoubleSize &) const
const QwtDoubleSize operator+ (const QwtDoubleSize &) const
const QwtDoubleSize operator- (const QwtDoubleSize &) const
const QwtDoubleSize operator * (double) const
const QwtDoubleSize operator/ (double) const
QwtDoubleSizeoperator+= (const QwtDoubleSize &)
QwtDoubleSizeoperator-= (const QwtDoubleSize &)
QwtDoubleSizeoperator *= (double c)
QwtDoubleSizeoperator/= (double c)


Constructor & Destructor Documentation

QwtDoubleSize::QwtDoubleSize  ) 
 

Constructs an invalid size.

Definition at line 163 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 width width and height height.

Definition at line 170 of file qwt_double_rect.cpp.

QwtDoubleSize::QwtDoubleSize const QSize &   ) 
 

Constructs a size with floating point accuracy from the given size.

Definition at line 177 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 207 of file qwt_double_rect.cpp.

References 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 195 of file qwt_double_rect.cpp.

References QwtDoubleSize().

Referenced by QwtPlotZoomer::end().

double QwtDoubleSize::height  )  const
 

Returns the height.

Definition at line 291 of file qwt_double_rect.h.

Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().

bool QwtDoubleSize::isEmpty  )  const
 

Returns true if the width is <= 0.0 or the height is <= 0.0, otherwise false.

Definition at line 270 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 261 of file qwt_double_rect.h.

bool QwtDoubleSize::isValid  )  const
 

Returns true if the width is equal to or greater than 0.0 and the height is equal to or greater than 0.0; otherwise returns false.

Definition at line 279 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 251 of file qwt_double_rect.cpp.

References QwtDoubleSize().

bool QwtDoubleSize::operator!= const QwtDoubleSize  )  const
 

Returns true if s1 and s2 are different; otherwise returns false.

Definition at line 223 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 232 of file qwt_double_rect.cpp.

References QwtDoubleSize().

QwtDoubleSize & QwtDoubleSize::operator+= const QwtDoubleSize  ) 
 

Adds size other to 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- 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 243 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 271 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 257 of file qwt_double_rect.cpp.

References QwtDoubleSize().

bool QwtDoubleSize::operator== const QwtDoubleSize  )  const
 

Returns true if s1 and s2 are equal; otherwise returns false.

Definition at line 217 of file qwt_double_rect.cpp.

References d_height, and d_width.

Referenced by operator!=().

void QwtDoubleSize::setHeight double  h  ) 
 

Sets the height to height.

Definition at line 303 of file qwt_double_rect.h.

void QwtDoubleSize::setWidth double  w  ) 
 

Sets the width to width.

Definition at line 297 of file qwt_double_rect.h.

void QwtDoubleSize::transpose  ) 
 

Swaps the width and height values.

Definition at line 184 of file qwt_double_rect.cpp.

double QwtDoubleSize::width  )  const
 

Returns the width.

Definition at line 285 of file qwt_double_rect.h.

Referenced by QwtPlotZoomer::begin(), and QwtDoubleRect::setSize().


Generated on Wed Aug 31 23:03:09 2005 for Qwt User's Guide by  doxygen 1.4.1