|
LibreCAD
|
Painting line patterns on a QPaintDevice. More...
#include <linepatternpainter.h>
Public Member Functions | |
| LinePatternPainter (QPaintDevice *device, lc::DxfLinePatternByValue_CSPtr linePattern, int width=1) | |
| Constructor used to paint DxfLinePatterns. More... | |
| LinePatternPainter (QPaintDevice *device, double width, lc::DxfLinePatternByValue_CSPtr linePattern=nullptr) | |
| Constructor used to paint line width. More... | |
| void | drawLinePattern () |
| Paint line. More... | |
Private Attributes | |
| QPaintDevice * | _device |
| lc::DxfLinePatternByValue_CSPtr | _linePattern |
| int | _width |
Painting line patterns on a QPaintDevice.
Definition at line 10 of file linepatternpainter.h.
| LinePatternPainter::LinePatternPainter | ( | QPaintDevice * | device, |
| lc::DxfLinePatternByValue_CSPtr | linePattern, | ||
| int | width = 1 |
||
| ) |
Constructor used to paint DxfLinePatterns.
| device | Pointer to QPaintDevice |
| linePattern | LinePattern to paint |
| width | Width of the line (optional) |
Definition at line 3 of file linepatternpainter.cpp.
| LinePatternPainter::LinePatternPainter | ( | QPaintDevice * | device, |
| double | width, | ||
| lc::DxfLinePatternByValue_CSPtr | linePattern = nullptr |
||
| ) |
Constructor used to paint line width.
| device | Pointer to QPaintDevice |
| width | Width of the line |
| linePattern | LinePattern to paint (optional) |
Definition at line 9 of file linepatternpainter.cpp.
| void LinePatternPainter::drawLinePattern | ( | ) |
Paint line.
Definition at line 15 of file linepatternpainter.cpp.
|
private |
Definition at line 33 of file linepatternpainter.h.
|
private |
Definition at line 34 of file linepatternpainter.h.
|
private |
Definition at line 35 of file linepatternpainter.h.