QElectroTech
0.70
|
#include <createdxf.h>
Public Member Functions | |
Createdxf () | |
~Createdxf () | |
Static Public Member Functions | |
static void | dxfBegin (const QString &) |
static void | dxfEnd (const QString &) |
static void | drawCircle (const QString &, double, double, double, int) |
static void | drawArc (const QString &, double x, double y, double rad, double startAngle, double endAngle, int color) |
static void | drawDonut (QString, double, double, double, int) |
static void | drawArcEllipse (const QString &file_path, qreal x, qreal y, qreal w, qreal h, qreal startAngle, qreal spanAngle, qreal hotspot_x, qreal hotspot_y, qreal rotation_angle, const int &colorcode) |
static void | drawEllipse (const QString &filepath, const QRectF &rect, const int &colorcode) |
Createdxf::drawEllipse Conveniance function for draw ellipse. More... | |
static void | drawRectangle (const QString &filepath, double, double, double, double, const int &colorcode) |
static void | drawRectangle (const QString &filepath, const QRectF &rect, const int &colorcode) |
Createdxf::drawRectangle Conveniance function for draw rectangle. More... | |
static void | drawLine (const QString &filapath, double, double, double, double, const int &clorcode) |
static void | drawLine (const QString &filepath, const QLineF &line, const int &colorcode) |
Createdxf::drawLine Conveniance function to draw line. More... | |
static void | drawText (const QString &, const QString &, double, double, double, double, int) |
static void | drawTextAligned (const QString &fileName, const QString &text, double x, double y, double height, double rotation, double oblique, int hAlign, int vAlign, double xAlign, int colour, bool leftAlign=false, float scale=0) |
static int | getcolorCode (const long red, const long green, const long blue) |
Createdxf::getcolorCode This function returns the ACI color which is the "nearest" color to the color defined by the red, green and blue (RGB) values passed in argument. More... | |
Static Public Attributes | |
static long | RGBcodeTable [] |
static const double | sheetWidth = 4000 |
static const double | sheetHeight = 2700 |
static double | xScale = 1 |
static double | yScale = 1 |
Definition at line 26 of file createdxf.h.
Createdxf::Createdxf | ( | ) |
Definition at line 32 of file createdxf.cpp.
Createdxf::~Createdxf | ( | ) |
Definition at line 37 of file createdxf.cpp.
|
static |
Definition at line 671 of file createdxf.cpp.
Referenced by drawArcEllipse().
|
static |
Definition at line 426 of file createdxf.cpp.
References drawArc(), and ExportDialog::rotation_transformed().
Referenced by drawEllipse(), and ExportDialog::generateDxf().
|
static |
Definition at line 256 of file createdxf.cpp.
Referenced by ExportDialog::generateDxf().
|
static |
|
static |
Createdxf::drawEllipse Conveniance function for draw ellipse.
filepath | |
rect | |
colorcode |
Definition at line 556 of file createdxf.cpp.
References drawArcEllipse(), sheetHeight, xScale, and yScale.
Referenced by QetShapeItem::toDXF().
|
static |
Definition at line 290 of file createdxf.cpp.
Referenced by drawLine(), ExportDialog::generateDxf(), and QetShapeItem::toDXF().
|
static |
Createdxf::drawLine Conveniance function to draw line.
filepath | |
line | |
colorcode |
Definition at line 418 of file createdxf.cpp.
References drawLine(), sheetHeight, xScale, and yScale.
|
static |
Definition at line 565 of file createdxf.cpp.
Referenced by BorderTitleBlock::drawDxf(), drawRectangle(), ExportDialog::generateDxf(), TitleBlockTemplate::renderDxf(), and QetShapeItem::toDXF().
|
static |
Createdxf::drawRectangle Conveniance function for draw rectangle.
filepath | |
rect | |
color |
Definition at line 662 of file createdxf.cpp.
References drawRectangle(), sheetHeight, xScale, and yScale.
|
static |
Definition at line 708 of file createdxf.cpp.
Referenced by ExportDialog::generateDxf().
|
static |
Definition at line 747 of file createdxf.cpp.
Referenced by BorderTitleBlock::drawDxf(), ExportDialog::fillRow(), and TitleBlockTemplate::renderTextCellDxf().
|
static |
Definition at line 42 of file createdxf.cpp.
Referenced by ExportDialog::generateDxf().
|
static |
Definition at line 232 of file createdxf.cpp.
Referenced by ExportDialog::generateDxf().
|
static |
Createdxf::getcolorCode This function returns the ACI color which is the "nearest" color to the color defined by the red, green and blue (RGB) values passed in argument.
red | |
green | |
blue |
Definition at line 389 of file createdxf.cpp.
References RGBcodeTable.
Referenced by QetShapeItem::toDXF().
|
static |
Definition at line 53 of file createdxf.h.
Referenced by getcolorCode().
|
static |
Definition at line 56 of file createdxf.h.
Referenced by BorderTitleBlock::drawDxf(), drawEllipse(), drawLine(), drawRectangle(), ExportDialog::fillRow(), ExportDialog::generateDxf(), and TitleBlockTemplate::renderDxf().
|
static |
Definition at line 55 of file createdxf.h.
Referenced by ExportDialog::generateDxf().
|
static |
Definition at line 57 of file createdxf.h.
Referenced by BorderTitleBlock::drawDxf(), drawEllipse(), drawLine(), drawRectangle(), ExportDialog::fillRow(), ExportDialog::generateDxf(), TitleBlockTemplate::renderDxf(), and TitleBlockTemplate::renderTextCellDxf().
|
static |
Definition at line 58 of file createdxf.h.
Referenced by BorderTitleBlock::drawDxf(), drawEllipse(), drawLine(), drawRectangle(), ExportDialog::fillRow(), ExportDialog::generateDxf(), TitleBlockTemplate::renderDxf(), and TitleBlockTemplate::renderTextCellDxf().