Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorSmudgeInterstrokeData Struct Reference

#include <KisColorSmudgeInterstrokeData.h>

+ Inheritance diagram for KisColorSmudgeInterstrokeData:

Public Member Functions

void beginTransaction () override
 
KUndo2CommandendTransaction () override
 
 KisColorSmudgeInterstrokeData (KisPaintDeviceSP source)
 
 ~KisColorSmudgeInterstrokeData () override
 
- Public Member Functions inherited from KisInterstrokeData
bool isStillCompatible () const
 
 KisInterstrokeData (KisPaintDeviceSP device)
 
virtual ~KisInterstrokeData ()
 

Public Attributes

KisPaintDeviceSP colorBlendDevice
 
KisPaintDeviceSP heightmapDevice
 
KisOverlayPaintDeviceWrapper overlayDeviceWrapper
 
KisPaintDeviceSP projectionDevice
 

Private Attributes

QScopedPointer< KisTransactionm_heightmapDeviceTransaction
 
QScopedPointer< KUndo2Commandm_parentCommand
 

Detailed Description

Interstroke data needed for the lightness mode of colorsmudge brush. It stores separate high-precision projections for the heightmap and color layers. The layer itself stores only the low-precision final projection, so as soon as the interstroke data is reset, the paint is considered as "dried-out".

Definition at line 23 of file KisColorSmudgeInterstrokeData.h.

Constructor & Destructor Documentation

◆ KisColorSmudgeInterstrokeData()

KisColorSmudgeInterstrokeData::KisColorSmudgeInterstrokeData ( KisPaintDeviceSP source)

Definition at line 14 of file KisColorSmudgeInterstrokeData.cpp.

17{
21 heightmapDevice->setDefaultBounds(source->defaultBounds());
22 heightmapDevice->setSupportsWraparoundMode(source->supportsWraproundMode());
23}
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
KisInterstrokeData(KisPaintDeviceSP device)
KisPaintDeviceSP overlay(int index=0) const
void setDefaultBounds(KisDefaultBoundsBaseSP bounds)
void setSupportsWraparoundMode(bool value)
KisOverlayPaintDeviceWrapper overlayDeviceWrapper
static KoColorSpaceRegistry * instance()

References colorBlendDevice, heightmapDevice, KoColorSpaceRegistry::instance(), KisOverlayPaintDeviceWrapper::overlay(), overlayDeviceWrapper, projectionDevice, KisPaintDevice::setDefaultBounds(), KisPaintDevice::setSupportsWraparoundMode(), and source().

◆ ~KisColorSmudgeInterstrokeData()

KisColorSmudgeInterstrokeData::~KisColorSmudgeInterstrokeData ( )
override

Definition at line 25 of file KisColorSmudgeInterstrokeData.cpp.

26{
29 }
30}
#define KIS_SAFE_ASSERT_RECOVER(cond)
Definition kis_assert.h:126
typedef void(QOPENGLF_APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC)(GLuint buffer)
QScopedPointer< KUndo2Command > m_parentCommand

References KisOverlayPaintDeviceWrapper::endTransaction(), KIS_SAFE_ASSERT_RECOVER, m_parentCommand, overlayDeviceWrapper, and void().

Member Function Documentation

◆ beginTransaction()

◆ endTransaction()

KUndo2Command * KisColorSmudgeInterstrokeData::endTransaction ( )
overridevirtual

Implements KisInterstrokeData.

Definition at line 41 of file KisColorSmudgeInterstrokeData.cpp.

42{
44
45 // the internal undo commands are owned by m_parentCommand
46 (void) m_heightmapDeviceTransaction->endAndTake();
48
49 return m_parentCommand.take();
50}
#define KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE(cond, val)
Definition kis_assert.h:129

References KisOverlayPaintDeviceWrapper::endTransaction(), KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE, m_heightmapDeviceTransaction, m_parentCommand, overlayDeviceWrapper, and void().

Member Data Documentation

◆ colorBlendDevice

KisPaintDeviceSP KisColorSmudgeInterstrokeData::colorBlendDevice

Definition at line 25 of file KisColorSmudgeInterstrokeData.h.

◆ heightmapDevice

KisPaintDeviceSP KisColorSmudgeInterstrokeData::heightmapDevice

Definition at line 26 of file KisColorSmudgeInterstrokeData.h.

◆ m_heightmapDeviceTransaction

QScopedPointer<KisTransaction> KisColorSmudgeInterstrokeData::m_heightmapDeviceTransaction
private

Definition at line 39 of file KisColorSmudgeInterstrokeData.h.

◆ m_parentCommand

QScopedPointer<KUndo2Command> KisColorSmudgeInterstrokeData::m_parentCommand
private

Definition at line 38 of file KisColorSmudgeInterstrokeData.h.

◆ overlayDeviceWrapper

KisOverlayPaintDeviceWrapper KisColorSmudgeInterstrokeData::overlayDeviceWrapper

Definition at line 28 of file KisColorSmudgeInterstrokeData.h.

◆ projectionDevice

KisPaintDeviceSP KisColorSmudgeInterstrokeData::projectionDevice

Definition at line 27 of file KisColorSmudgeInterstrokeData.h.


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