|
Krita Source Code Documentation
|
This class manages a stack of filter effects. More...
#include <KoFilterEffectStack.h>
Inheritance diagram for KoFilterEffectStack:Public Member Functions | |
| void | appendFilterEffect (KoFilterEffect *filter) |
| QRectF | clipRect () const |
| Returns the clipping rectangle used for this filter in bounding box units. | |
| QRectF | clipRectForBoundingRect (const QRectF &boundingRect) const |
| Returns the clipping rectangle for the given bounding rect. | |
| bool | deref () |
| QList< KoFilterEffect * > | filterEffects () const |
| void | insertFilterEffect (int index, KoFilterEffect *filter) |
| bool | isEmpty () const |
| KoFilterEffectStack () | |
| Creates an empty filter effect stack. | |
| Private () | |
| bool | ref () |
| void | removeFilterEffect (int index) |
| QSet< QString > | requiredStandardsInputs () const |
| Returns list of required standard inputs. | |
| void | save (KoXmlWriter &writer, const QString &filterId) |
| void | setClipRect (const QRectF &clipRect) |
| Sets the clipping rectangle used for this filter in bounding box units. | |
| KoFilterEffect * | takeFilterEffect (int index) |
| int | useCount () const |
| Return reference counter. | |
| ~KoFilterEffectStack () | |
| Destroys the filter effect stack, deleting all filter effects. | |
| ~Private () | |
Public Attributes | |
| QRectF | clipRect |
| QList< KoFilterEffect * > | filterEffects |
| QAtomicInt | refCount |
Private Attributes | |
| Private *const | d |
Private Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Additional Inherited Members | |
Private Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
This class manages a stack of filter effects.
Definition at line 16 of file KoFilterEffectStack.cpp.
|
inline |
Definition at line 24 of file KoFilterEffectStack.cpp.
| KoFilterEffectStack::KoFilterEffectStack | ( | ) |
Creates an empty filter effect stack.
Definition at line 34 of file KoFilterEffectStack.cpp.
| KoFilterEffectStack::~KoFilterEffectStack | ( | ) |
Destroys the filter effect stack, deleting all filter effects.
Definition at line 39 of file KoFilterEffectStack.cpp.
References d.
| void KoFilterEffectStack::appendFilterEffect | ( | KoFilterEffect * | filter | ) |
Appends a new filter at the end of the filter list.
The filter stack take ownership of the appended filter effect.
| filter | the new filter to append |
Definition at line 60 of file KoFilterEffectStack.cpp.
References d.
| QRectF KoFilterEffectStack::clipRect | ( | ) | const |
Returns the clipping rectangle used for this filter in bounding box units.
| QRectF KoFilterEffectStack::clipRectForBoundingRect | ( | const QRectF & | boundingRect | ) | const |
Returns the clipping rectangle for the given bounding rect.
Definition at line 89 of file KoFilterEffectStack.cpp.
References d.
| bool KoFilterEffectStack::deref | ( | ) |
Decrements the use-value. Returns true if the new value is non-zero, false otherwise.
Definition at line 103 of file KoFilterEffectStack.cpp.
References d.
| QList< KoFilterEffect * > KoFilterEffectStack::filterEffects | ( | ) | const |
The first filter of the list is the first to be applied.
| void KoFilterEffectStack::insertFilterEffect | ( | int | index, |
| KoFilterEffect * | filter ) |
Inserts a new filter at the given position in the filter list.
The filter stack take ownership of the inserted filter effect.
| index | the list index to insert the new filter at |
| filter | the new filter to insert |
Definition at line 54 of file KoFilterEffectStack.cpp.
References d.
| bool KoFilterEffectStack::isEmpty | ( | ) | const |
Returns if the filter effect stack is empty.
Definition at line 49 of file KoFilterEffectStack.cpp.
References d.
|
inline |
Definition at line 19 of file KoFilterEffectStack.cpp.
| bool KoFilterEffectStack::ref | ( | ) |
Increments the use-value. Returns true if the new value is non-zero, false otherwise.
Definition at line 98 of file KoFilterEffectStack.cpp.
References d.
| void KoFilterEffectStack::removeFilterEffect | ( | int | index | ) |
Removes the filter with the given index from the filter list.
The filter gets deleted after removal from the list.
| index | the index of the filter to remove |
Definition at line 66 of file KoFilterEffectStack.cpp.
References takeFilterEffect().
| QSet< QString > KoFilterEffectStack::requiredStandardsInputs | ( | ) | const |
Returns list of required standard inputs.
Definition at line 131 of file KoFilterEffectStack.cpp.
References d, KoFilterEffect::inputs, and isEmpty().
| void KoFilterEffectStack::save | ( | KoXmlWriter & | writer, |
| const QString & | filterId ) |
Saves filter stack using given xml writer.
| writer | the xml writer to write data to |
| id | the filter id to write, used for referencing the filter |
Definition at line 113 of file KoFilterEffectStack.cpp.
References KoXmlWriter::addAttribute(), d, KoXmlWriter::endElement(), KoFilterEffect::save(), and KoXmlWriter::startElement().
| void KoFilterEffectStack::setClipRect | ( | const QRectF & | clipRect | ) |
| KoFilterEffect * KoFilterEffectStack::takeFilterEffect | ( | int | index | ) |
Take filter effect with given index from the stack and returns it.
| index | the index of the filter to take |
Definition at line 72 of file KoFilterEffectStack.cpp.
References d.
| int KoFilterEffectStack::useCount | ( | ) | const |
| QRectF KoFilterEffectStack::clipRect |
Definition at line 30 of file KoFilterEffectStack.cpp.
|
private |
Definition at line 112 of file KoFilterEffectStack.h.
| QList< KoFilterEffect * > KoFilterEffectStack::filterEffects |
Definition at line 29 of file KoFilterEffectStack.cpp.
| QAtomicInt KoFilterEffectStack::refCount |
Definition at line 31 of file KoFilterEffectStack.cpp.