QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Createdxf Class Reference

The Createdxf class This class exports the project to DXF Format. More...

#include <createdxf.h>

Collaboration diagram for Createdxf:
Collaboration graph

Public Member Functions

 Createdxf ()
 
 ~Createdxf ()
 

Static Public Member Functions

static void dxfBegin (const QString &)
 
static void dxfEnd (const QString &)
 Createdxf::dxfEnd End Section of every DXF File.
 
static void drawCircle (const QString &, double, double, double, int)
 Createdxf::drawCircle draw circle in dxf format.
 
static void drawCircle (const QString &, QPointF, double, int)
 Createdxf::drawCircle draw circle in qt format.
 
static void drawArc (const QString &, double x, double y, double rad, double startAngle, double endAngle, int color)
 Createdxf::drawArc draw arc in dx format.
 
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 drawArcEllipse (const QString &file_path, QRectF rect, qreal startAngle, qreal spanAngle, QPointF hotspot, 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.
 
static void drawRectangle (const QString &filepath, double, double, double, double, const int &colorcode)
 Createdxf::drawRectangle draw rectangle in dxf format.
 
static void drawRectangle (const QString &filepath, const QRectF &rect, const int &colorcode)
 Createdxf::drawRectangle Convenience function for draw rectangle.
 
static void drawPolygon (const QString &filepath, const QPolygonF &poly, const int &colorcode)
 Createdxf::drawPolygon Convenience function for draw polygon.
 
static void drawLine (const QString &filapath, double, double, double, double, const int &clorcode)
 Createdxf::drawLine draw line in DXF Format.
 
static void drawLine (const QString &filepath, const QLineF &line, const int &colorcode)
 Createdxf::drawLine Convenience function to draw line.
 
static void drawText (const QString &, const QString &, double, double, double, double, int, double xScale=1.0)
 Createdxf::drawText draw simple text in dxf format without any alignment specified.
 
static void drawText (const QString &, const QString &, QPointF, double, double, int, double xScale=1.0)
 Createdxf::drawText draw simple text in dxf format without any alignment specified.
 
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, double xScale, int colour)
 
static void drawPolyline (const QString &filepath, const QPolygonF &poly, const int &colorcode, bool preScaled=false)
 Createdxf::drawPolyline Convenience function for draw polyline.
 
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.
 
static int dxfColor (QColor color)
 
static int dxfColor (QPen pen)
 

Static Public Attributes

static long RGBcodeTable []
 
static const double sheetWidth = 4000
 
static const double sheetHeight = 2700
 
static double xScale = 1
 
static double yScale = 1
 

Detailed Description

The Createdxf class This class exports the project to DXF Format.

Constructor & Destructor Documentation

◆ Createdxf()

Createdxf::Createdxf ( )

◆ ~Createdxf()

Createdxf::~Createdxf ( )

Member Function Documentation

◆ drawArc()

void Createdxf::drawArc ( const QString &  fileName,
double  x,
double  y,
double  rad,
double  startAngle,
double  endAngle,
int  color 
)
static

Createdxf::drawArc draw arc in dx format.

Parameters
fileName
x
y
rad
startAngle
endAngle
color
Here is the caller graph for this function:

◆ drawArcEllipse() [1/2]

void Createdxf::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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawArcEllipse() [2/2]

void Createdxf::drawArcEllipse ( const QString &  file_path,
QRectF  rect,
qreal  startAngle,
qreal  spanAngle,
QPointF  hotspot,
qreal  rotation_angle,
const int &  colorcode 
)
static
Here is the call graph for this function:

◆ drawCircle() [1/2]

void Createdxf::drawCircle ( const QString &  fileName,
double  radius,
double  x,
double  y,
int  colour 
)
static

Createdxf::drawCircle draw circle in dxf format.

Parameters
fileName
radius
x
y
colour
Here is the caller graph for this function:

◆ drawCircle() [2/2]

void Createdxf::drawCircle ( const QString &  fileName,
QPointF  center,
double  radius,
int  colour 
)
static

Createdxf::drawCircle draw circle in qt format.

Parameters
fileName
center
radius
colour
Here is the call graph for this function:

◆ drawDonut()

static void Createdxf::drawDonut ( QString  ,
double  ,
double  ,
double  ,
int   
)
static

◆ drawEllipse()

void Createdxf::drawEllipse ( const QString &  filepath,
const QRectF &  rect,
const int &  colorcode 
)
static

Createdxf::drawEllipse Conveniance function for draw ellipse.

Parameters
filepath
rect
colorcode
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawLine() [1/2]

void Createdxf::drawLine ( const QString &  fileName,
double  x1,
double  y1,
double  x2,
double  y2,
const int &  colour 
)
static

Createdxf::drawLine draw line in DXF Format.

Parameters
fileName
x1
y1
x2
y2
colour
Here is the caller graph for this function:

◆ drawLine() [2/2]

void Createdxf::drawLine ( const QString &  filepath,
const QLineF &  line,
const int &  colorcode 
)
static

Createdxf::drawLine Convenience function to draw line.

Parameters
filepath
line
colorcode
Here is the call graph for this function:

◆ drawPolygon()

void Createdxf::drawPolygon ( const QString &  filepath,
const QPolygonF &  poly,
const int &  colorcode 
)
static

Createdxf::drawPolygon Convenience function for draw polygon.

Parameters
filepath
poly
colorcode
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawPolyline()

void Createdxf::drawPolyline ( const QString &  filepath,
const QPolygonF &  poly,
const int &  colorcode,
bool  preScaled = false 
)
static

Createdxf::drawPolyline Convenience function for draw polyline.

Parameters
filepath
poly
colorcode
preScaled
Here is the caller graph for this function:

◆ drawRectangle() [1/2]

void Createdxf::drawRectangle ( const QString &  filepath,
const QRectF &  rect,
const int &  colorcode 
)
static

Createdxf::drawRectangle Convenience function for draw rectangle.

Parameters
filepath
rect
colorcode
Here is the call graph for this function:

◆ drawRectangle() [2/2]

void Createdxf::drawRectangle ( const QString &  fileName,
double  x1,
double  y1,
double  width,
double  height,
const int &  colour 
)
static

Createdxf::drawRectangle draw rectangle in dxf format.

Parameters
fileName
x1
y1
width
height
colour
Here is the call graph for this function:
Here is the caller graph for this function:

◆ drawText() [1/2]

void Createdxf::drawText ( const QString &  fileName,
const QString &  text,
double  x,
double  y,
double  height,
double  rotation,
int  colour,
double  xScaleW = 1.0 
)
static

Createdxf::drawText draw simple text in dxf format without any alignment specified.

Parameters
fileName
text
x
y
height
rotation
colour
xScaleW= 1
Here is the caller graph for this function:

◆ drawText() [2/2]

void Createdxf::drawText ( const QString &  fileName,
const QString &  text,
QPointF  point,
double  height,
double  rotation,
int  colour,
double  xScaleW = 1.0 
)
static

Createdxf::drawText draw simple text in dxf format without any alignment specified.

Parameters
fileName
text
point
height
rotation
colour
xScaleW= 1
Here is the call graph for this function:

◆ drawTextAligned()

void Createdxf::drawTextAligned ( const QString &  fileName,
const QString &  text,
double  x,
double  y,
double  height,
double  rotation,
double  oblique,
int  hAlign,
int  vAlign,
double  xAlign,
double  xScale,
int  colour 
)
static
Here is the caller graph for this function:

◆ dxfBegin()

void Createdxf::dxfBegin ( const QString &  fileName)
static
Here is the caller graph for this function:

◆ dxfColor() [1/2]

int Createdxf::dxfColor ( QColor  color)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ dxfColor() [2/2]

int Createdxf::dxfColor ( QPen  pen)
static
Here is the call graph for this function:

◆ dxfEnd()

void Createdxf::dxfEnd ( const QString &  fileName)
static

Createdxf::dxfEnd End Section of every DXF File.

Parameters
fileName
Here is the caller graph for this function:

◆ getcolorCode()

int Createdxf::getcolorCode ( const long  red,
const long  green,
const long  blue 
)
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.

Parameters
red
green
blue
Here is the caller graph for this function:

Member Data Documentation

◆ RGBcodeTable

long Createdxf::RGBcodeTable
static

◆ sheetHeight

const double Createdxf::sheetHeight = 2700
static

◆ sheetWidth

const double Createdxf::sheetWidth = 4000
static

◆ xScale

double Createdxf::xScale = 1
static

◆ yScale

double Createdxf::yScale = 1
static

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