krita
KisBrush Class Reference
Inheritance diagram for KisBrush:

Detailed Description
Definition at line 54 of file kis_brush.h.
Public Member Functions | |
KisBrush (const QString &filename) | |
KisBrush (const QString &filename, const QByteArray &data, Q_UINT32 &dataPos) | |
KisBrush (KisPaintDevice *image, int x, int y, int w, int h) | |
KisBrush (const QImage &image, const QString &name=QString("")) | |
virtual | ~KisBrush () |
virtual bool | load () |
virtual bool | save () |
virtual QImage | img () |
virtual bool | saveToDevice (QIODevice *dev) const |
virtual KisAlphaMaskSP | mask (const KisPaintInformation &info, double subPixelX=0, double subPixelY=0) const |
virtual KisPaintDeviceSP | image (KisColorSpace *colorSpace, const KisPaintInformation &info, double subPixelX=0, double subPixelY=0) const |
void | setHotSpot (KisPoint) |
KisPoint | hotSpot (const KisPaintInformation &info=KisPaintInformation()) const |
void | setSpacing (double s) |
double | spacing () const |
double | xSpacing (double pressure=PRESSURE_DEFAULT) const |
double | ySpacing (double pressure=PRESSURE_DEFAULT) const |
Q_INT32 | maskWidth (const KisPaintInformation &info) const |
Q_INT32 | maskHeight (const KisPaintInformation &info) const |
virtual void | setUseColorAsMask (bool useColorAsMask) |
virtual bool | useColorAsMask () const |
virtual bool | hasColor () const |
virtual void | makeMaskImage () |
Q_INT32 | width () const |
Q_INT32 | height () const |
virtual enumBrushType | brushType () const |
virtual KisBoundary | boundary () |
virtual bool | canPaintFor (const KisPaintInformation &) |
virtual KisBrush * | clone () const |
Protected Member Functions | |
void | setWidth (Q_INT32 w) |
void | setHeight (Q_INT32 h) |
void | setImage (const QImage &img) |
void | setBrushType (enumBrushType type) |
Static Protected Member Functions | |
static double | scaleForPressure (double pressure) |
Constructor & Destructor Documentation
|
Construct brush to load filename later as brush.
Definition at line 83 of file kis_brush.cc. |
|
Load brush from the specified data, at position dataPos, and set the filename.
Definition at line 93 of file kis_brush.cc. |
|
Load brush from the specified paint device, in the specified region.
Definition at line 110 of file kis_brush.cc. |
|
Load brush as a copy from the specified QImage (handy when you need to copy a brush!).
Definition at line 123 of file kis_brush.cc. |
Member Function Documentation
|
Returns true if this brush can return something useful for the info. This is used by Pipe Brushes that can't paint sometimes Reimplemented in KisImagePipeBrush. Definition at line 117 of file kis_brush.h. |
|
Returns a QImage representing this resource. This image could be null. Implements KisResource. Reimplemented in KisImagePipeBrush. Definition at line 359 of file kis_brush.cc. |
|
Load this resource.
Implements KisResource. Reimplemented in KisAutobrushResource, KisImagePipeBrush, and KisTextBrushResource. Definition at line 144 of file kis_brush.cc. |
|
Reimplemented in KisImagePipeBrush. Definition at line 378 of file kis_brush.cc. |
|
synchronous, doesn't emit any signal (none defined!)
Implements KisResource. Reimplemented in KisImagePipeBrush. Definition at line 286 of file kis_brush.cc. |
The documentation for this class was generated from the following files: