18 #ifndef QGSPREVIEWEFFECT_H
19 #define QGSPREVIEWEFFECT_H
21 #include <QGraphicsEffect>
49 void setMode( PreviewMode mode );
58 virtual void draw( QPainter *painter );
64 QRgb simulateColorBlindness( QRgb &originalColor,
PreviewMode type );
65 void simulateProtanopeLMS(
double &L,
double &M,
double &S );
66 void simulateDeuteranopeLMS(
double &L,
double &M,
double &S );
69 #endif // QGSPREVIEWEFFECT_H
A graphics effect which can be applied to a widget to simulate various printing and color blindness m...
PreviewMode mode() const
Returns the mode used for the preview effect.