MuseScore  3.4
Music composition and notation
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
SvgPaintEngine Class Reference
Inheritance diagram for SvgPaintEngine:
Inheritance graph
[legend]
Collaboration diagram for SvgPaintEngine:
Collaboration graph
[legend]

Public Member Functions

 SvgPaintEngine ()
 
bool begin (QPaintDevice *device)
 
bool end ()
 
void updateState (const QPaintEngineState &state)
 
void popGroup ()
 
void drawPath (const QPainterPath &path)
 
void drawPixmap (const QRectF &r, const QPixmap &pm, const QRectF &sr)
 
void drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode)
 
void drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlag=Qt::AutoColor)
 
QPaintEngine::Type type () const
 
QSize size () const
 
void setSize (const QSize &size)
 
QRectF viewBox () const
 
void setViewBox (const QRectF &viewBox)
 
QString documentTitle () const
 
void setDocumentTitle (const QString &title)
 
QString documentDescription () const
 
void setDocumentDescription (const QString &description)
 
QIODevice * outputDevice () const
 
void setOutputDevice (QIODevice *device)
 
int resolution ()
 
void setResolution (int resolution)
 
QTextStream & stream ()
 
const QString qpenToSvg (const QPen &spen)
 
const QString qbrushToSvg (const QBrush &sbrush)
 

Protected Member Functions

void writeImage (const QRectF &r, const QByteArray &imageData, const QString &mimeFormat)
 

Protected Attributes

const Ms::Element_element = NULL
 

Private Attributes

Q_DECLARE_PRIVATE(SvgPaintEngine) private QTextStream stateStream
 
SvgPaintEnginePrivated_ptr
 
qreal _dx
 
qreal _dy
 

Friends

class SvgGenerator
 

Constructor & Destructor Documentation

◆ SvgPaintEngine()

SvgPaintEngine::SvgPaintEngine ( )
inline

Member Function Documentation

◆ begin()

bool SvgPaintEngine::begin ( QPaintDevice *  device)

◆ documentDescription()

QString SvgPaintEngine::documentDescription ( ) const
inline

◆ documentTitle()

QString SvgPaintEngine::documentTitle ( ) const
inline

◆ drawImage()

void SvgPaintEngine::drawImage ( const QRectF &  r,
const QImage &  pm,
const QRectF &  sr,
Qt::ImageConversionFlag  flags = Qt::AutoColor 
)

◆ drawPath()

void SvgPaintEngine::drawPath ( const QPainterPath &  path)

◆ drawPixmap()

void SvgPaintEngine::drawPixmap ( const QRectF &  r,
const QPixmap &  pm,
const QRectF &  sr 
)

◆ drawPolygon()

void SvgPaintEngine::drawPolygon ( const QPointF *  points,
int  pointCount,
PolygonDrawMode  mode 
)

◆ end()

bool SvgPaintEngine::end ( )

◆ outputDevice()

QIODevice* SvgPaintEngine::outputDevice ( ) const
inline

◆ popGroup()

void SvgPaintEngine::popGroup ( )

◆ qbrushToSvg()

const QString SvgPaintEngine::qbrushToSvg ( const QBrush &  sbrush)
inline

◆ qpenToSvg()

const QString SvgPaintEngine::qpenToSvg ( const QPen &  spen)
inline

◆ resolution()

int SvgPaintEngine::resolution ( )
inline

◆ setDocumentDescription()

void SvgPaintEngine::setDocumentDescription ( const QString &  description)
inline

◆ setDocumentTitle()

void SvgPaintEngine::setDocumentTitle ( const QString &  title)
inline

◆ setOutputDevice()

void SvgPaintEngine::setOutputDevice ( QIODevice *  device)
inline

◆ setResolution()

void SvgPaintEngine::setResolution ( int  resolution)
inline

◆ setSize()

void SvgPaintEngine::setSize ( const QSize &  size)
inline

◆ setViewBox()

void SvgPaintEngine::setViewBox ( const QRectF &  viewBox)
inline

◆ size()

QSize SvgPaintEngine::size ( ) const
inline

◆ stream()

QTextStream& SvgPaintEngine::stream ( )
inline

◆ type()

QPaintEngine::Type SvgPaintEngine::type ( ) const
inline

◆ updateState()

void SvgPaintEngine::updateState ( const QPaintEngineState &  state)

◆ viewBox()

QRectF SvgPaintEngine::viewBox ( ) const
inline

◆ writeImage()

void SvgPaintEngine::writeImage ( const QRectF &  r,
const QByteArray &  imageData,
const QString &  mimeFormat 
)
protected

Friends And Related Function Documentation

◆ SvgGenerator

friend class SvgGenerator
friend

Member Data Documentation

◆ _dx

qreal SvgPaintEngine::_dx
private

◆ _dy

qreal SvgPaintEngine::_dy
private

◆ _element

const Ms::Element* SvgPaintEngine::_element = NULL
protected

◆ d_ptr

SvgPaintEnginePrivate* SvgPaintEngine::d_ptr
private

◆ stateStream

Q_DECLARE_PRIVATE (SvgPaintEngine) private QTextStream SvgPaintEngine::stateStream
private

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