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

QwtColorFilter Class Reference

A base class for color filters. More...

#include <qwt_clrfltr.h>

Inherited by QwtFltrDim, QwtFltrGray, and QwtFltrInv.

Inheritance diagram for QwtColorFilter

Inheritance graph
[legend]
List of all members.

Public Methods

virtual ~QwtColorFilter ()
virtual QColor operator() (const QColor& c) const

Detailed Description

A base class for color filters.

A color filter is a class which can be used to modify colors in a specific way. A QwtColorFilter has an @QwtColorFilter::operator()@ which takes a reference to a QColor as its argument and returns the result of the modification. The QwtColorFilter class itself does not modify colors, but is intended as a base class for user-defined color filters. Building a color filter is quite easy: Derive a class from QwtColorFilter and redefine the operator() member. Qwt has several pre-defined color filters (see below).

Color filters are used by QwtPlot::print().


Constructor & Destructor Documentation

QwtColorFilter::~QwtColorFilter ( ) [virtual]
 

Dtor.


Member Function Documentation

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

Filter function.

The filter function can be redefined by derived classes.

Returns:
The default implementation returns its argument.
Parameters:
c   modified color

Reimplemented in QwtFltrDim, QwtFltrGray, and QwtFltrInv.


The documentation for this class was generated from the following file:
Generated at Thu Dec 14 00:27:13 2000 for Qwt User's Guide by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000