Krita Source Code Documentation
Loading...
Searching...
No Matches
KisInterstrokeData Class Referenceabstract

#include <KisInterstrokeData.h>

+ Inheritance diagram for KisInterstrokeData:

Public Member Functions

virtual void beginTransaction ()=0
 
virtual KUndo2CommandendTransaction ()=0
 
bool isStillCompatible () const
 
 KisInterstrokeData (KisPaintDeviceSP device)
 
virtual ~KisInterstrokeData ()
 

Private Attributes

const KoColorSpacem_linkedColorSpace = 0
 
QPoint m_linkedDeviceOffset
 
KisPaintDeviceWSP m_linkedPaintDevice
 

Detailed Description

A special base class for storing temporary data inside a paint device between brush strokes. That might be used by the brushes to store data that needs to be passes between different strokes of the same brush, e.g. paint drying or heightmap information.

The data is stored inside device->interstrokeData() and added via passing a factory to the transaction.

The data is automatically removed when an incompatible change happens to a device, e.g. colorspace change or painting with incompatible brush.

Definition at line 31 of file KisInterstrokeData.h.

Constructor & Destructor Documentation

◆ KisInterstrokeData()

KisInterstrokeData::KisInterstrokeData ( KisPaintDeviceSP device)

Definition at line 12 of file KisInterstrokeData.cpp.

13 : m_linkedDeviceOffset(device->offset())
15 , m_linkedPaintDevice(device)
16{
17
18}
KisPaintDeviceWSP m_linkedPaintDevice
const KoColorSpace * m_linkedColorSpace
const KoColorSpace * colorSpace() const
QPoint offset() const

◆ ~KisInterstrokeData()

KisInterstrokeData::~KisInterstrokeData ( )
virtual

Definition at line 20 of file KisInterstrokeData.cpp.

21{
22}

Member Function Documentation

◆ beginTransaction()

virtual void KisInterstrokeData::beginTransaction ( )
pure virtual

◆ endTransaction()

virtual KUndo2Command * KisInterstrokeData::endTransaction ( )
pure virtual

◆ isStillCompatible()

bool KisInterstrokeData::isStillCompatible ( ) const

Member Data Documentation

◆ m_linkedColorSpace

const KoColorSpace* KisInterstrokeData::m_linkedColorSpace = 0
private

Definition at line 44 of file KisInterstrokeData.h.

◆ m_linkedDeviceOffset

QPoint KisInterstrokeData::m_linkedDeviceOffset
private

Definition at line 43 of file KisInterstrokeData.h.

◆ m_linkedPaintDevice

KisPaintDeviceWSP KisInterstrokeData::m_linkedPaintDevice
private

Definition at line 45 of file KisInterstrokeData.h.


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