代码拉取完成,页面将自动刷新
同步操作将从 falion/QtDrawRegion 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef DEFINEDATATYPE_H
#define DEFINEDATATYPE_H
#endif // DEFINEDATATYPE_H
#include <QPoint>
#include <QVector>
//矩形
struct DefRect
{
DefRect():X(0),Y(0),Width(0),Height(0)
{
}
DefRect(float x,float y,float width,float height)
{
X=x;
Y=y;
Width=width;
Height=height;
}
DefRect(QPointF TopLeftP,float width,float height)
{
X=TopLeftP.x();
Y=TopLeftP.y();
Width=width;
Height=height;
}
float X;
float Y;
float Width;
float Height;
};
//旋转矩形
struct DefRotateRect
{
DefRotateRect():X(0),Y(0),Width(0),Height(0),ang(0)
{
}
DefRotateRect(float x,float y,float Length1,float Length2,float angDeg)
{
X=x;
Y=y;
Width=Length1;
Height=Length2;
ang=angDeg;
}
DefRotateRect(QPointF Center,float Length1,float Length2,float angDeg)
{
X=Center.x();
Y=Center.y();
Width=Length1;
Height=Length2;
ang=angDeg;
}
float X;
float Y;
float Width;
float Height;
float ang;
QVector<QPointF> CornerP=QVector<QPointF>(4);//四个角点坐标
};
//圆形
struct DefCircle
{
DefCircle():X(0),Y(0),R(0)
{
}
DefCircle(float x,float y,float R)
{
X=x;
Y=y;
this->R=R;
}
DefCircle(QPointF Center,float R)
{
X=Center.x();
Y=Center.y();
this->R=R;
}
float X;
float Y;
float R;
};
//旋转椭圆
struct DefRotateEllipse
{
DefRotateEllipse():X(0),Y(0),Width(0),Height(0),ang(0)
{
}
DefRotateEllipse(float x,float y,float Length1,float Length2,float angDeg)
{
X=x;
Y=y;
Width=Length1;
Height=Length2;
ang=angDeg;
}
DefRotateEllipse(QPointF Center,float Length1,float Length2,float angDeg)
{
X=Center.x();
Y=Center.y();
Width=Length1;
Height=Length2;
ang=angDeg;
}
float X;
float Y;
float Width;
float Height;
float ang;
QVector<QPointF> CornerP=QVector<QPointF>(4);//四个角点坐标
};
//同心圆
struct DefConcentricCircle
{
DefConcentricCircle():X(0),Y(0),RMax(0),RMin(0)
{
}
DefConcentricCircle(float x,float y,float RMax,float RMin)
{
X=x;
Y=y;
this->RMax=RMax;
this->RMin=RMin;
}
DefConcentricCircle(QPointF Center,float RMax,float RMin)
{
X=Center.x();
Y=Center.y();
this->RMax=RMax;
this->RMin=RMin;
}
float X;
float Y;
float RMax;
float RMin;
};
//饼图
struct DefPie
{
DefPie():X(0),Y(0),R(0),AngStart(0),AngEnd(0)
{
}
DefPie(float x,float y,float r,float angStart,float angEnd)
{
X=x;
Y=y;
R=r;
AngStart=angStart;
AngEnd=angEnd;
}
DefPie(QPointF Center,float r,float angStart,float angEnd)
{
X=Center.x();
Y=Center.y();
R=r;
AngStart=angStart;
AngEnd=angEnd;
}
float X;
float Y;
float R;
float AngStart;
float AngEnd;
};
//圆角矩形
struct DefRoundRect
{
DefRoundRect():Width(0),Height(0),R(0),X(0),Y(0)
{}
DefRoundRect(float x,float y,float width,float height,float r)
{
R=r;
X=x;
Y=y;
Width=width;
Height=height;
}
DefRoundRect(QPointF TopLeftP,float width,float height,float r)
{
R=r;
X=TopLeftP.x();
Y=TopLeftP.y();
Width=width;
Height=height;
}
float Width;
float Height;
float R;
float X;
float Y;
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。