录井剖面追加背景色
This commit is contained in:
parent
6d1f4bd4db
commit
1485db1730
|
|
@ -97,6 +97,7 @@ public:
|
||||||
//设置解释结论
|
//设置解释结论
|
||||||
void setLith(QString filePath, QString colorPath){
|
void setLith(QString filePath, QString colorPath){
|
||||||
m_Lith = filePath;
|
m_Lith = filePath;
|
||||||
|
m_Color = colorPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawLith(double left_Low, double right_Hight, double lY1, double lY2)
|
void drawLith(double left_Low, double right_Hight, double lY1, double lY2)
|
||||||
|
|
@ -129,6 +130,13 @@ public:
|
||||||
painter.fillRect(fillRect,Qt::white);
|
painter.fillRect(fillRect,Qt::white);
|
||||||
//
|
//
|
||||||
//painter.setBrush(QBrush(QPixmap(colorPath)));
|
//painter.setBrush(QBrush(QPixmap(colorPath)));
|
||||||
|
//颜色
|
||||||
|
QString strLastColor = m_Color.right(4);
|
||||||
|
if(strLastColor.toLower()==".svg")
|
||||||
|
{
|
||||||
|
//拉伸
|
||||||
|
DrawSVGSteched(&painter,m_Color,fillRect,0);
|
||||||
|
}
|
||||||
|
|
||||||
// bool isStrech=false;
|
// bool isStrech=false;
|
||||||
// QSvgRenderer m_SvgRenderer;
|
// QSvgRenderer m_SvgRenderer;
|
||||||
|
|
@ -199,12 +207,19 @@ public:
|
||||||
QPainter painter(&image);
|
QPainter painter(&image);
|
||||||
QRectF fillRect(0,0,newWidth, newHeight);
|
QRectF fillRect(0,0,newWidth, newHeight);
|
||||||
painter.fillRect(fillRect,Qt::white);
|
painter.fillRect(fillRect,Qt::white);
|
||||||
|
//颜色
|
||||||
|
QString strLastColor = m_Color.right(4);
|
||||||
|
if(strLastColor.toLower()==".svg")
|
||||||
|
{
|
||||||
|
//拉伸
|
||||||
|
DrawSVGSteched(&painter,m_Color,fillRect,0);
|
||||||
|
}
|
||||||
//
|
//
|
||||||
bool isOne=true;
|
bool isOne=true;
|
||||||
bool isStech=true;
|
bool isStech=true;
|
||||||
bool isHorizon=false;
|
bool isHorizon=false;
|
||||||
float cm = g_dPixelPerCm;//一厘米对应的像素个数
|
float cm = g_dPixelPerCm;//一厘米对应的像素个数
|
||||||
QColor bkColor = QColor(255,255,255,255);
|
QColor bkColor = QColor(255,255,255,0);
|
||||||
|
|
||||||
float GeoResult = m_drawGeo.seleGeo("岩性符号库", basename, &painter, fillRect, isOne, isStech, isHorizon, cm, bkColor);
|
float GeoResult = m_drawGeo.seleGeo("岩性符号库", basename, &painter, fillRect, isOne, isStech, isHorizon, cm, bkColor);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user