Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgMeshGradient.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2020 Sharaf Zaman <sharafzaz121@gmail.com>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
#ifndef KISMESHGRADIENT_H
7
#define KISMESHGRADIENT_H
8
9
#include <QGradient>
10
11
#include <
KoFlakeCoordinateSystem.h
>
12
#include "
SvgMeshPatch.h
"
13
#include "
SvgMeshArray.h
"
14
15
class
KRITAFLAKE_EXPORT
SvgMeshGradient
16
{
17
public
:
18
enum
Shading
{
19
BILINEAR
,
20
BICUBIC
,
21
};
22
23
SvgMeshGradient
();
24
SvgMeshGradient
(
const
SvgMeshGradient
& other);
25
26
void
setType(Shading type);
27
SvgMeshGradient::Shading
type()
const
;
28
29
void
setTransform(
const
QTransform& matrix);
30
bool
isValid()
const
;
31
32
void
setGradientUnits
(
KoFlake::CoordinateSystem
units =
KoFlake::UserSpaceOnUse
) {
33
m_gradientUnits = units;
34
}
35
36
KoFlake::CoordinateSystem
gradientUnits
()
const
{
37
return
m_gradientUnits;
38
}
39
40
// returns boundingRect of the meshpatches in "user" coordinates (QPainter's)
41
QRectF boundingRect()
const
;
42
43
const
QScopedPointer<SvgMeshArray>& getMeshArray()
const
;
44
45
private
:
46
Shading
m_type
;
47
KoFlake::CoordinateSystem
m_gradientUnits
;
48
QScopedPointer<SvgMeshArray>
m_mesharray
;
49
};
50
51
#endif
// KISMESHGRADIENT_H
KoFlakeCoordinateSystem.h
SvgMeshArray.h
SvgMeshPatch.h
SvgMeshGradient
Definition
SvgMeshGradient.h:16
SvgMeshGradient::m_type
Shading m_type
Definition
SvgMeshGradient.h:46
SvgMeshGradient::Shading
Shading
Definition
SvgMeshGradient.h:18
SvgMeshGradient::BICUBIC
@ BICUBIC
Definition
SvgMeshGradient.h:20
SvgMeshGradient::BILINEAR
@ BILINEAR
Definition
SvgMeshGradient.h:19
SvgMeshGradient::m_mesharray
QScopedPointer< SvgMeshArray > m_mesharray
Definition
SvgMeshGradient.h:48
SvgMeshGradient::setGradientUnits
void setGradientUnits(KoFlake::CoordinateSystem units=KoFlake::UserSpaceOnUse)
Definition
SvgMeshGradient.h:32
SvgMeshGradient::gradientUnits
KoFlake::CoordinateSystem gradientUnits() const
Definition
SvgMeshGradient.h:36
SvgMeshGradient::m_gradientUnits
KoFlake::CoordinateSystem m_gradientUnits
Definition
SvgMeshGradient.h:47
KoFlake::CoordinateSystem
CoordinateSystem
Definition
KoFlakeCoordinateSystem.h:14
KoFlake::UserSpaceOnUse
@ UserSpaceOnUse
Definition
KoFlakeCoordinateSystem.h:15
libs
flake
svg
SvgMeshGradient.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52