Seamly2D
Code documentation
VObjPaintDevice Class Reference

#include <vobjpaintdevice.h>

Inheritance diagram for VObjPaintDevice:
Collaboration diagram for VObjPaintDevice:

Public Member Functions

 VObjPaintDevice ()
 
virtual ~VObjPaintDevice () Q_DECL_OVERRIDE
 
virtual QPaintEngine * paintEngine () const Q_DECL_OVERRIDE
 
QString getFileName () const
 
void setFileName (const QString &value)
 
QSize getSize ()
 
void setSize (const QSize &size)
 
QIODevice * getOutputDevice ()
 
void setOutputDevice (QIODevice *outputDevice)
 
int getResolution () const
 
void setResolution (int dpi)
 

Protected Member Functions

virtual int metric (PaintDeviceMetric metric) const Q_DECL_OVERRIDE
 

Private Attributes

QSharedPointer< VObjEngineengine
 
QString fileName
 
uint owns_iodevice
 

Detailed Description

Definition at line 65 of file vobjpaintdevice.h.

Constructor & Destructor Documentation

◆ VObjPaintDevice()

VObjPaintDevice::VObjPaintDevice ( )

Definition at line 62 of file vobjpaintdevice.cpp.

References owns_iodevice.

◆ ~VObjPaintDevice()

VObjPaintDevice::~VObjPaintDevice ( )
virtual

Definition at line 69 of file vobjpaintdevice.cpp.

References engine, and owns_iodevice.

Member Function Documentation

◆ getFileName()

QString VObjPaintDevice::getFileName ( ) const

Definition at line 86 of file vobjpaintdevice.cpp.

References fileName.

◆ getOutputDevice()

QIODevice * VObjPaintDevice::getOutputDevice ( )

Definition at line 130 of file vobjpaintdevice.cpp.

References engine.

◆ getResolution()

int VObjPaintDevice::getResolution ( ) const

Definition at line 149 of file vobjpaintdevice.cpp.

References engine.

◆ getSize()

QSize VObjPaintDevice::getSize ( )

Definition at line 113 of file vobjpaintdevice.cpp.

References engine.

◆ metric()

int VObjPaintDevice::metric ( PaintDeviceMetric  metric) const
protectedvirtual

Definition at line 161 of file vobjpaintdevice.cpp.

References engine.

◆ paintEngine()

QPaintEngine * VObjPaintDevice::paintEngine ( ) const
virtual

Definition at line 79 of file vobjpaintdevice.cpp.

References engine.

◆ setFileName()

void VObjPaintDevice::setFileName ( const QString &  value)

Definition at line 92 of file vobjpaintdevice.cpp.

References engine, fileName, and owns_iodevice.

Referenced by MainWindowsNoGUI::ObjFile().

◆ setOutputDevice()

void VObjPaintDevice::setOutputDevice ( QIODevice *  outputDevice)

Definition at line 136 of file vobjpaintdevice.cpp.

References engine, fileName, and owns_iodevice.

◆ setResolution()

void VObjPaintDevice::setResolution ( int  dpi)

Definition at line 155 of file vobjpaintdevice.cpp.

References engine.

Referenced by MainWindowsNoGUI::ObjFile().

◆ setSize()

void VObjPaintDevice::setSize ( const QSize &  size)

Definition at line 119 of file vobjpaintdevice.cpp.

References engine.

Referenced by MainWindowsNoGUI::ObjFile().

Member Data Documentation

◆ engine

◆ fileName

QString VObjPaintDevice::fileName
private

Definition at line 89 of file vobjpaintdevice.h.

Referenced by getFileName(), setFileName(), and setOutputDevice().

◆ owns_iodevice

uint VObjPaintDevice::owns_iodevice
private

Definition at line 90 of file vobjpaintdevice.h.

Referenced by setFileName(), setOutputDevice(), VObjPaintDevice(), and ~VObjPaintDevice().


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