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

QwtFltrDim Class Reference

This color filter can be used to darken colors. More...

#include <qwt_clrfltr.h>

Inheritance diagram for QwtFltrDim::

QwtColorFilter List of all members.

Public Methods

 QwtFltrDim (int dim=100)
QColor operator() (const QColor &c) const
int dimFactor () const

Detailed Description

This color filter can be used to darken colors.


Constructor & Destructor Documentation

QwtFltrDim::QwtFltrDim int    factor = 100
 

ctor.

QwtFltrDim uses QColor::dark() (See Qt Manual)

Parameters:
factor  Darkening factor. A factor greater than 100 produces a darker color, a factor smaller than 100 produces a brighter color.


Member Function Documentation

int QwtFltrDim::dimFactor   const
 

Returns:
dim factor

QColor QwtFltrDim::operator() const QColor &    c const [virtual]
 

Filter function.

Darkens or brightens a specified color. The behaviour of the filter is influenced by the constructor argument.

See also:
QwtFltrDim::QwtFltrDim()

Reimplemented from QwtColorFilter.


The documentation for this class was generated from the following files:
Generated on Mon Oct 22 18:38:31 2001 for Qwt User's Guide by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001