krita
KisAdjustmentLayer Class Reference
#include <kis_adjustment_layer.h>
Inheritance diagram for KisAdjustmentLayer:

Detailed Description
Class that contains a KisFilter and optionally a KisSelection.The combination is used by to influence the rendering of the layers under this layer in the layerstack
Definition at line 38 of file kis_adjustment_layer.h.
Public Member Functions | |
| KisAdjustmentLayer (KisImageSP img, const QString &name, KisFilterConfiguration *kfc, KisSelectionSP selection) | |
| KisAdjustmentLayer (const KisAdjustmentLayer &rhs) | |
| virtual | ~KisAdjustmentLayer () |
| virtual KisLayerSP | clone () const |
| KisFilterConfiguration * | filter () |
| void | setFilter (KisFilterConfiguration *filterConfig) |
| KisSelectionSP | selection () |
| void | setSelection (KisSelectionSP selection) |
| virtual void | paintSelection (QImage &img, Q_INT32 x, Q_INT32 y, Q_INT32 w, Q_INT32 h) |
| virtual void | paintSelection (QImage &img, const QRect &scaledImageRect, const QSize &scaledImageSize, const QSize &imageSize) |
| virtual Q_INT32 | x () const |
| virtual void | setX (Q_INT32) |
| virtual Q_INT32 | y () const |
| virtual void | setY (Q_INT32) |
| virtual QRect | extent () const |
| virtual QRect | exactBounds () const |
| virtual bool | accept (KisLayerVisitor &) |
| virtual void | resetCache () |
| virtual KisPaintDeviceSP | cachedPaintDevice () |
| bool | showSelection () const |
| void | setSelection (bool b) |
| virtual QImage | createThumbnail (Q_INT32 w, Q_INT32 h) |
| virtual KisLayer * | layer () |
Constructor & Destructor Documentation
| KisAdjustmentLayer::KisAdjustmentLayer | ( | KisImageSP | img, | |
| const QString & | name, | |||
| KisFilterConfiguration * | kfc, | |||
| KisSelectionSP | selection | |||
| ) |
Create a new adjustment layer with the given configuration and selection.
Note that the selection will be _copied_.
Definition at line 33 of file kis_adjustment_layer.cc.
Member Function Documentation
| KisLayerSP KisAdjustmentLayer::clone | ( | ) | const [virtual] |
Return a copy of this layer.
Implements KisLayer.
Definition at line 69 of file kis_adjustment_layer.cc.
| void KisAdjustmentLayer::setSelection | ( | KisSelectionSP | selection | ) |
Set the selction of this adjustment layer to a copy of selection.
Definition at line 99 of file kis_adjustment_layer.cc.
| void KisAdjustmentLayer::paintSelection | ( | QImage & | img, | |
| Q_INT32 | x, | |||
| Q_INT32 | y, | |||
| Q_INT32 | w, | |||
| Q_INT32 | h | |||
| ) | [virtual] |
paints a mask where the selection on this layer resides
Reimplemented from KisLayer.
Definition at line 180 of file kis_adjustment_layer.cc.
| QRect KisAdjustmentLayer::extent | ( | ) | const [virtual] |
Returns an approximation of where the bounds on actual data are in this layer.
Implements KisLayer.
Definition at line 155 of file kis_adjustment_layer.cc.
| QRect KisAdjustmentLayer::exactBounds | ( | ) | const [virtual] |
Returns the exact bounds of where the actual data resides in this layer.
Implements KisLayer.
Definition at line 165 of file kis_adjustment_layer.cc.
| bool KisAdjustmentLayer::accept | ( | KisLayerVisitor & | ) | [virtual] |
Accept the KisLayerVisitor (for the Visitor design pattern), should call the correct function on the KisLayerVisitor for this layer type.
Implements KisLayer.
Definition at line 175 of file kis_adjustment_layer.cc.
| QImage KisAdjustmentLayer::createThumbnail | ( | Q_INT32 | w, | |
| Q_INT32 | h | |||
| ) | [virtual] |
Returns a thumbnail in requested size.
The QImage may have transparent parts. May also return 0
Reimplemented from KisLayer.
Definition at line 192 of file kis_adjustment_layer.cc.
The documentation for this class was generated from the following files:

