Krita Source Code Documentation
Loading...
Searching...
No Matches
KisInterstrokeData.cpp
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#include "
KisInterstrokeData.h
"
8
9
#include <
KoColorSpace.h
>
10
#include <
kis_paint_device.h
>
11
12
KisInterstrokeData::KisInterstrokeData
(
KisPaintDeviceSP
device)
13
: m_linkedDeviceOffset(device->offset())
14
, m_linkedColorSpace(device->colorSpace())
15
, m_linkedPaintDevice(device)
16
{
17
18
}
19
20
KisInterstrokeData::~KisInterstrokeData
()
21
{
22
}
23
24
bool
KisInterstrokeData::isStillCompatible
()
const
25
{
26
KIS_ASSERT_RECOVER_RETURN_VALUE
(
m_linkedPaintDevice
,
false
);
27
28
return
m_linkedDeviceOffset
==
m_linkedPaintDevice
->
offset
() &&
29
*
m_linkedColorSpace
== *
m_linkedPaintDevice
->
colorSpace
();
30
}
KisInterstrokeData.h
KoColorSpace.h
KisInterstrokeData::KisInterstrokeData
KisInterstrokeData(KisPaintDeviceSP device)
Definition
KisInterstrokeData.cpp:12
KisInterstrokeData::m_linkedPaintDevice
KisPaintDeviceWSP m_linkedPaintDevice
Definition
KisInterstrokeData.h:45
KisInterstrokeData::~KisInterstrokeData
virtual ~KisInterstrokeData()
Definition
KisInterstrokeData.cpp:20
KisInterstrokeData::isStillCompatible
bool isStillCompatible() const
Definition
KisInterstrokeData.cpp:24
KisInterstrokeData::m_linkedColorSpace
const KoColorSpace * m_linkedColorSpace
Definition
KisInterstrokeData.h:44
KisInterstrokeData::m_linkedDeviceOffset
QPoint m_linkedDeviceOffset
Definition
KisInterstrokeData.h:43
KisPaintDevice::colorSpace
const KoColorSpace * colorSpace() const
Definition
kis_paint_device.cc:2075
KisPaintDevice::offset
QPoint offset() const
Definition
kis_paint_device.cc:1223
KisSharedPtr< KisPaintDevice >
KIS_ASSERT_RECOVER_RETURN_VALUE
#define KIS_ASSERT_RECOVER_RETURN_VALUE(cond, val)
Definition
kis_assert.h:85
kis_paint_device.h
libs
image
KisInterstrokeData.cpp
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52