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

#include <SvgMeshGradient.h>

Public Types

enum  Shading { BILINEAR , BICUBIC }
 

Public Member Functions

QRectF boundingRect () const
 
const QScopedPointer< SvgMeshArray > & getMeshArray () const
 
KoFlake::CoordinateSystem gradientUnits () const
 
bool isValid () const
 
void setGradientUnits (KoFlake::CoordinateSystem units=KoFlake::UserSpaceOnUse)
 
void setTransform (const QTransform &matrix)
 
void setType (Shading type)
 
 SvgMeshGradient ()
 
 SvgMeshGradient (const SvgMeshGradient &other)
 
SvgMeshGradient::Shading type () const
 

Private Attributes

KoFlake::CoordinateSystem m_gradientUnits
 
QScopedPointer< SvgMeshArraym_mesharray
 
Shading m_type
 

Detailed Description

Definition at line 15 of file SvgMeshGradient.h.

Member Enumeration Documentation

◆ Shading

Enumerator
BILINEAR 
BICUBIC 

Definition at line 18 of file SvgMeshGradient.h.

Constructor & Destructor Documentation

◆ SvgMeshGradient() [1/2]

SvgMeshGradient::SvgMeshGradient ( )

Definition at line 8 of file SvgMeshGradient.cpp.

12{
13}
QScopedPointer< SvgMeshArray > m_mesharray
KoFlake::CoordinateSystem m_gradientUnits

◆ SvgMeshGradient() [2/2]

SvgMeshGradient::SvgMeshGradient ( const SvgMeshGradient & other)

Definition at line 15 of file SvgMeshGradient.cpp.

16 : m_type(other.m_type)
19{
20}

Member Function Documentation

◆ boundingRect()

QRectF SvgMeshGradient::boundingRect ( ) const

Definition at line 42 of file SvgMeshGradient.cpp.

43{
44 return m_mesharray->boundingRect();
45}

References m_mesharray.

◆ getMeshArray()

const QScopedPointer< SvgMeshArray > & SvgMeshGradient::getMeshArray ( ) const

Definition at line 47 of file SvgMeshGradient.cpp.

48{
49 return m_mesharray;
50}

References m_mesharray.

◆ gradientUnits()

KoFlake::CoordinateSystem SvgMeshGradient::gradientUnits ( ) const
inline

Definition at line 36 of file SvgMeshGradient.h.

36 {
37 return m_gradientUnits;
38 }

◆ isValid()

bool SvgMeshGradient::isValid ( ) const

Definition at line 37 of file SvgMeshGradient.cpp.

38{
39 return m_mesharray->numRows() > 0 && m_mesharray->numColumns() > 0;
40}

References m_mesharray.

◆ setGradientUnits()

void SvgMeshGradient::setGradientUnits ( KoFlake::CoordinateSystem units = KoFlake::UserSpaceOnUse)
inline

Definition at line 32 of file SvgMeshGradient.h.

32 {
33 m_gradientUnits = units;
34 }

◆ setTransform()

void SvgMeshGradient::setTransform ( const QTransform & matrix)

Definition at line 32 of file SvgMeshGradient.cpp.

33{
34 m_mesharray->setTransform(matrix);
35}

References m_mesharray.

◆ setType()

void SvgMeshGradient::setType ( SvgMeshGradient::Shading type)

Definition at line 22 of file SvgMeshGradient.cpp.

23{
24 m_type = type;
25}
SvgMeshGradient::Shading type() const

References m_type, and type().

◆ type()

SvgMeshGradient::Shading SvgMeshGradient::type ( ) const

Definition at line 27 of file SvgMeshGradient.cpp.

28{
29 return m_type;
30}

References m_type.

Member Data Documentation

◆ m_gradientUnits

KoFlake::CoordinateSystem SvgMeshGradient::m_gradientUnits
private

Definition at line 47 of file SvgMeshGradient.h.

◆ m_mesharray

QScopedPointer<SvgMeshArray> SvgMeshGradient::m_mesharray
private

Definition at line 48 of file SvgMeshGradient.h.

◆ m_type

Shading SvgMeshGradient::m_type
private

Definition at line 46 of file SvgMeshGradient.h.


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