QwtColorFilter(3)

NAME
QwtColorFilter - A base class for color filters.

SYNOPSIS

#include <qwt_clrfltr.h>

Inherited by QwtFltrDim, QwtFltrGray, and QwtFltrInv.

  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

  virtual QwtColorFilter::~QwtColorFilter () [virtual]

Dtor.

MEMBER FUNCTION DOCUMENTATION

  virtual 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.

AUTHOR

Generated automatically by Doxygen for Qwt User's Guide from the source code.