QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsDxfPaintDevice Class Reference

A paint device for drawing into dxf files. More...

#include <qgsdxfpaintdevice.h>

Inheritance diagram for QgsDxfPaintDevice:
Inheritance graph
[legend]

Public Member Functions

 QgsDxfPaintDevice (QgsDxfExport *dxf)
 
 ~QgsDxfPaintDevice ()
 
QPointF dxfCoordinates (QPointF pt) const
 Converts a point from device coordinates to dxf coordinates. More...
 
int metric (PaintDeviceMetric metric) const override
 
QPaintEnginepaintEngine () const override
 
void setDrawingSize (QSizeF size)
 
void setLayer (const QString &layer)
 
void setOutputSize (const QRectF &r)
 
void setShift (QPointF shift)
 
double widthScaleFactor () const
 Returns scale factor for line width. More...
 
- Public Member Functions inherited from QPaintDevice
virtual ~QPaintDevice ()
 
int colorCount () const
 
int depth () const
 
int height () const
 
int heightMM () const
 
int logicalDpiX () const
 
int logicalDpiY () const
 
int numColors () const
 
virtual QPaintEnginepaintEngine () const=0
 
bool paintingActive () const
 
int physicalDpiX () const
 
int physicalDpiY () const
 
int width () const
 
int widthMM () const
 
int x11Cells () const
 
Qt::HANDLE x11Colormap () const
 
bool x11DefaultColormap () const
 
bool x11DefaultVisual () const
 
int x11Depth () const
 
Display * x11Display () const
 
int x11Screen () const
 
void * x11Visual () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QPaintDevice
int x11AppCells (int screen)
 
Qt::HANDLE x11AppColormap (int screen)
 
bool x11AppDefaultColormap (int screen)
 
bool x11AppDefaultVisual (int screen)
 
int x11AppDepth (int screen)
 
Display * x11AppDisplay ()
 
int x11AppDpiX (int screen)
 
int x11AppDpiY (int screen)
 
Qt::HANDLE x11AppRootWindow (int screen)
 
int x11AppScreen ()
 
void * x11AppVisual (int screen)
 
void x11SetAppDpiX (int dpi, int screen)
 
void x11SetAppDpiY (int dpi, int screen)
 
- Protected Member Functions inherited from QPaintDevice
 QPaintDevice ()
 

Detailed Description

A paint device for drawing into dxf files.

Note
not available in Python bindings

Definition at line 32 of file qgsdxfpaintdevice.h.

Constructor & Destructor Documentation

◆ QgsDxfPaintDevice()

QgsDxfPaintDevice::QgsDxfPaintDevice ( QgsDxfExport dxf)

Definition at line 20 of file qgsdxfpaintdevice.cpp.

◆ ~QgsDxfPaintDevice()

QgsDxfPaintDevice::~QgsDxfPaintDevice ( )

Definition at line 25 of file qgsdxfpaintdevice.cpp.

Member Function Documentation

◆ dxfCoordinates()

QPointF QgsDxfPaintDevice::dxfCoordinates ( QPointF  pt) const

Converts a point from device coordinates to dxf coordinates.

Definition at line 76 of file qgsdxfpaintdevice.cpp.

◆ metric()

int QgsDxfPaintDevice::metric ( PaintDeviceMetric  metric) const
overridevirtual

Reimplemented from QPaintDevice.

Definition at line 35 of file qgsdxfpaintdevice.cpp.

◆ paintEngine()

QPaintEngine * QgsDxfPaintDevice::paintEngine ( ) const
override

Definition at line 30 of file qgsdxfpaintdevice.cpp.

◆ setDrawingSize()

void QgsDxfPaintDevice::setDrawingSize ( QSizeF  size)
inline

Definition at line 40 of file qgsdxfpaintdevice.h.

◆ setLayer()

void QgsDxfPaintDevice::setLayer ( const QString layer)

Definition at line 88 of file qgsdxfpaintdevice.cpp.

◆ setOutputSize()

void QgsDxfPaintDevice::setOutputSize ( const QRectF r)
inline

Definition at line 41 of file qgsdxfpaintdevice.h.

◆ setShift()

void QgsDxfPaintDevice::setShift ( QPointF  shift)

Definition at line 96 of file qgsdxfpaintdevice.cpp.

◆ widthScaleFactor()

double QgsDxfPaintDevice::widthScaleFactor ( ) const

Returns scale factor for line width.

Definition at line 64 of file qgsdxfpaintdevice.cpp.


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