Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDumbProjectionPlane Class Reference

#include <kis_abstract_projection_plane.h>

+ Inheritance diagram for KisDumbProjectionPlane:

Public Member Functions

QRect accessRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override
 
void apply (KisPainter *painter, const QRect &rect) override
 
QRect changeRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override
 
KisPaintDeviceList getLodCapableDevices () const override
 
QRect looseUserVisibleBounds () const override
 
QRect needRect (const QRect &rect, KisLayer::PositionToFilthy pos) const override
 
QRect needRectForOriginal (const QRect &rect) const override
 
QRect recalculate (const QRect &rect, KisNodeSP filthyNode, KisRenderPassFlags flags) override
 
QRect tightUserVisibleBounds () const override
 
- Public Member Functions inherited from KisAbstractProjectionPlane
 KisAbstractProjectionPlane ()
 
virtual ~KisAbstractProjectionPlane ()
 

Detailed Description

A simple implementation of KisAbstractProjectionPlane interface that does nothing.

Definition at line 103 of file kis_abstract_projection_plane.h.

Member Function Documentation

◆ accessRect()

QRect KisDumbProjectionPlane::accessRect ( const QRect & rect,
KisLayer::PositionToFilthy pos ) const
overridevirtual

Works like KisNode::needRect(), but includes more transformations of the layer

Implements KisAbstractProjectionPlane.

Definition at line 44 of file kis_abstract_projection_plane.cpp.

45{
46 Q_UNUSED(pos);
47 return rect;
48}

◆ apply()

void KisDumbProjectionPlane::apply ( KisPainter * painter,
const QRect & rect )
overridevirtual

Writes the data of the projection plane onto a global projection using painter object.

Implements KisAbstractProjectionPlane.

Definition at line 25 of file kis_abstract_projection_plane.cpp.

26{
27 Q_UNUSED(painter);
28 Q_UNUSED(rect);
29}

◆ changeRect()

QRect KisDumbProjectionPlane::changeRect ( const QRect & rect,
KisLayer::PositionToFilthy pos ) const
overridevirtual

Works like KisNode::changeRect(), but includes more transformations of the layer

Implements KisAbstractProjectionPlane.

Definition at line 38 of file kis_abstract_projection_plane.cpp.

39{
40 Q_UNUSED(pos);
41 return rect;
42}

◆ getLodCapableDevices()

KisPaintDeviceList KisDumbProjectionPlane::getLodCapableDevices ( ) const
overridevirtual

Returns a list of devices which should synchronize the lod cache on update

Implements KisAbstractProjectionPlane.

Definition at line 65 of file kis_abstract_projection_plane.cpp.

66{
67 // arghm...
68 return KisPaintDeviceList();
69}
QList< KisPaintDeviceSP > KisPaintDeviceList
Definition kis_types.h:267

◆ looseUserVisibleBounds()

QRect KisDumbProjectionPlane::looseUserVisibleBounds ( ) const
overridevirtual

Return an approximate (loose) rectangle, where the contents of the plane is placed from user's point of view. It includes everything belonging to the plane (e.g. layer styles).

This rectangle contains or is bigger than the rectangle returned by tightUserVisibleBounds().

Implements KisAbstractProjectionPlane.

Definition at line 60 of file kis_abstract_projection_plane.cpp.

61{
62 return QRect();
63}

◆ needRect()

QRect KisDumbProjectionPlane::needRect ( const QRect & rect,
KisLayer::PositionToFilthy pos ) const
overridevirtual

Works like KisNode::needRect(), but includes more transformations of the layer

Implements KisAbstractProjectionPlane.

Definition at line 32 of file kis_abstract_projection_plane.cpp.

33{
34 Q_UNUSED(pos);
35 return rect;
36}

◆ needRectForOriginal()

QRect KisDumbProjectionPlane::needRectForOriginal ( const QRect & rect) const
overridevirtual

Works like KisLayer::needRectForOriginal(), but includes needed rects of layer styles

Implements KisAbstractProjectionPlane.

Definition at line 50 of file kis_abstract_projection_plane.cpp.

51{
52 return rect;
53}

◆ recalculate()

QRect KisDumbProjectionPlane::recalculate ( const QRect & rect,
KisNodeSP filthyNode,
KisRenderPassFlags flags )
overridevirtual

Is called by the async merger when the node is filthy and should recalculate its internal representation. For usual layers it means just calling updateProjection().

Implements KisAbstractProjectionPlane.

Definition at line 18 of file kis_abstract_projection_plane.cpp.

19{
20 Q_UNUSED(filthyNode);
21 Q_UNUSED(flags);
22 return rect;
23}

◆ tightUserVisibleBounds()

QRect KisDumbProjectionPlane::tightUserVisibleBounds ( ) const
overridevirtual

Return a tight rectangle, where the contents of the plane is placed from user's point of view. It includes everything belonging to the plane (e.g. layer styles).

Implements KisAbstractProjectionPlane.

Definition at line 55 of file kis_abstract_projection_plane.cpp.

56{
57 return QRect();
58}

The documentation for this class was generated from the following files: