QElectroTech  0.8-dev
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Createdxf Class Reference

#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 &)
 
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)
 Createdxf::drawArc draw arc in dx format. More...
 
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)
 Createdxf::drawText draw simple text in dxf format without any alignment specified. More...
 
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, 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
 

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()

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:

◆ drawCircle()

void Createdxf::drawCircle ( const QString &  fileName,
double  radius,
double  x,
double  y,
int  colour 
)
static
Here is the caller 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 &  filapath,
double  x1,
double  y1,
double  x2,
double  y2,
const int &  clorcode 
)
static
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 Conveniance function to draw line.

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

◆ drawRectangle() [1/2]

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

Createdxf::drawRectangle Conveniance function for draw rectangle.

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

◆ drawRectangle() [2/2]

void Createdxf::drawRectangle ( const QString &  filepath,
double  x1,
double  y1,
double  width,
double  height,
const int &  colorcode 
)
static
Here is the caller graph for this function:

◆ drawText()

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

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

Parameters
fileName
text
x
y
height
rotation
colour
Here is the caller 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,
bool  leftAlign = false,
float  scale = 0 
)
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:

◆ dxfEnd()

void Createdxf::dxfEnd ( const QString &  fileName)
static
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: