kis_paint_layer.h
37 KisPaintLayer(KisImage *img, const TQString& name, TQ_UINT8 opacity, KisColorSpace * colorSpace);
60 virtual void paintSelection(TQImage &img, const TQRect& scaledImageRect, const TQSize& scaledImageSize, const TQSize& imageSize);
62 virtual void paintMaskInactiveLayers(TQImage &img, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h);
A colorspace is the definition of a certain color model in Chalk.
Definition kis_colorspace.h:58
virtual TQRect extent() const
Returns an approximation of where the bounds on actual data are in this layer.
Definition kis_paint_layer.cpp:176
KisPaintDeviceSP createMask()
Create a mask if it does not yet exist, and return it.
Definition kis_paint_layer.cpp:222
virtual bool accept(KisLayerVisitor &v)
Accept the KisLayerVisitor (for the Visitor design pattern), should call the correct function on the ...
Definition kis_paint_layer.h:66
KisPaintDeviceSP getMask()
Returns the layer mask's device. Creates one if there is currently none.
Definition kis_paint_layer.cpp:286
virtual void setDirty(bool propagate=true)
Overridden to call the private convertMaskToSelection.
Definition kis_paint_layer.cpp:341
KNamedCommand * createMaskCommand()
Undoable version of createMask.
Definition kis_paint_layer.cpp:487
void createMaskFromPaintDevice(KisPaintDeviceSP from)
Convert the from argument to the mask.
Definition kis_paint_layer.cpp:239
bool editMask() const
When this returns true, the KisPaintDevice returned in paintDevice will actually be the layer mask (i...
Definition kis_paint_layer.h:127
void sigMaskInfoChanged()
When the mask is created/destroyed or the editmask or rendermask is changed.
virtual void paintMaskInactiveLayers(TQImage &img, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
paints where no data is on this layer. Useful when it is a transparent layer stacked on top of anothe...
Definition kis_paint_layer.cpp:119
virtual TQImage createThumbnail(TQ_INT32 w, TQ_INT32 h)
Returns a thumbnail in requested size.
Definition kis_paint_layer.cpp:143
KNamedCommand * maskFromSelectionCommand()
Undoable version of createMaskFromSelection.
Definition kis_paint_layer.cpp:491
KisSelectionSP getMaskAsSelection()
Returns the layer mask's device, converted to a selection. Creates one if there is currently none.
Definition kis_paint_layer.cpp:292
KNamedCommand * removeMaskCommand()
Undoable version of removeMask.
Definition kis_paint_layer.cpp:500
bool renderMask() const
Returns true if the masked part of the mask will be rendered instead of being transparent.
Definition kis_paint_layer.h:118
virtual void paintSelection(TQImage &img, TQ_INT32 x, TQ_INT32 y, TQ_INT32 w, TQ_INT32 h)
paints a mask where the selection on this layer resides
Definition kis_paint_layer.cpp:101
void applyMask()
Apply the layer mask to the paint device, this removes the mask afterwards.
Definition kis_paint_layer.cpp:203
void createMaskFromSelection(KisSelectionSP from)
Convert the from selection to a paint device (should convert the getMaskAsSelection result back to th...
Definition kis_paint_layer.cpp:249
virtual TQRect exactBounds() const
Returns the exact bounds of where the actual data resides in this layer.
Definition kis_paint_layer.cpp:183
KisPaintDeviceSP paintDeviceOrMask() const
Returns the paintDevice that accompanies this layer (or mask, see editMask).
Definition kis_paint_layer.h:77
KNamedCommand * maskToSelectionCommand()
Undoable, removes the current mask, but converts it to the current selection.
Definition kis_paint_layer.cpp:495
