Merge branch 'main' of http://git.hivekion.com:3000/jiayulong/logplus
This commit is contained in:
commit
90fe46cd50
|
|
@ -13,6 +13,10 @@
|
|||
#include "DrawTvd.h"
|
||||
#pragma warning( pop )
|
||||
|
||||
|
||||
extern int g_iY1;
|
||||
extern int g_iY2;
|
||||
|
||||
//BEGIN_OSGGRAPHICS_NAMESPACE;
|
||||
|
||||
CDrawTvd::CDrawTvd(void)
|
||||
|
|
@ -65,6 +69,15 @@ CDrawTvd::CDrawTvd(void)
|
|||
Xmin=9999.;
|
||||
Ymax=-9999.;
|
||||
Ymin=9999.;
|
||||
//
|
||||
m_SDep = -g_iY2;
|
||||
m_EDep = -g_iY1;
|
||||
rgbList.append(QRgb(4294967295));
|
||||
rgbList.append(QRgb(4294966617));
|
||||
rgbList.append(QRgb(4294944512));
|
||||
rgbList.append(QRgb(4293345792));
|
||||
rgbList.append(QRgb(4288741473));
|
||||
rgbList.append(QRgb(4278190080));
|
||||
|
||||
QString ConfigName = ::GetConfPath()+"TvdTable.ini";
|
||||
QFile file(ConfigName);
|
||||
|
|
@ -72,6 +85,7 @@ CDrawTvd::CDrawTvd(void)
|
|||
if(file.open(QIODevice::ReadOnly ))
|
||||
{
|
||||
QTextStream textstream( &file );
|
||||
textstream.setCodec("UTF-8"); // 设置UTF-8编码
|
||||
while(!textstream.atEnd())
|
||||
{
|
||||
QString line = textstream.readLine();
|
||||
|
|
@ -637,8 +651,8 @@ void CDrawTvd::DrawTvd(QPainter* pDC,QRectF mrt)
|
|||
// }
|
||||
// else h=0;
|
||||
|
||||
m_Width=mrt.width()/GetPixelPerCm()-3;
|
||||
m_Height=mrt.width()/GetPixelPerCm()-3;
|
||||
// m_Width=mrt.width()/GetPixelPerCm();
|
||||
// m_Height=mrt.width()/GetPixelPerCm();
|
||||
sdep=m_SDep;
|
||||
edep=m_EDep;
|
||||
|
||||
|
|
@ -675,7 +689,7 @@ void CDrawTvd::DrawTvd(QPainter* pDC,QRectF mrt)
|
|||
TitleFontWidth=TitleFontHeight=fm4.height()/2.0;
|
||||
|
||||
XCenter=mrt.left()+m_Left*100.+(mrt.width()-(m_Left+m_Right)*100.)/2.;
|
||||
if(1) {
|
||||
if(0) {
|
||||
//if(m_pWellSceneManager->GetIsColorPrint()) {
|
||||
m_GuiJiPen=QPen(m_GuijiColor,m_GuijiWidth*(int)(fbl/2.+0.5));
|
||||
m_FramePen=QPen(m_FrameColor,m_FrameWidth*(int)(fbl/2.+0.5));;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@
|
|||
|
||||
//BEGIN_OSGGRAPHICS_NAMESPACE;
|
||||
|
||||
#define GetClassID_ObjDrawTvd() "{98EB165F-1371-4D9F-9476-E4F5C19869B7}"
|
||||
#pragma execution_character_set("utf-8")
|
||||
|
||||
//#define GetClassID_ObjDrawTvd() "{98EB165F-1371-4D9F-9476-E4F5C19869B7}"
|
||||
typedef struct BxPointMessage
|
||||
{
|
||||
int Style;
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
#include <QColor>
|
||||
#include <QFont>
|
||||
|
||||
#pragma execution_character_set("utf-8")
|
||||
class CViewInfo : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
|||
|
|
@ -1310,7 +1310,7 @@ void FormDraw::s_addSantuyibiao(QString strUuid, QString strSlfName, QString str
|
|||
{
|
||||
dHight = 32767;
|
||||
}
|
||||
curv->setGeometry(0, 0, g_iOneWidth, (int)dHight);
|
||||
curv->setGeometry(0, 0, g_iOneWidth*4, (int)dHight);
|
||||
curv->show();
|
||||
|
||||
//斜井三图一表
|
||||
|
|
|
|||
|
|
@ -18,15 +18,15 @@ FormLine::FormLine(QWidget *parent, QString strSlfName, QString strWellName, QSt
|
|||
|
||||
void FormLine::DrawTvd()
|
||||
{
|
||||
//
|
||||
QPainter painter(this);
|
||||
QRect rect = this->rect();
|
||||
//背景透明
|
||||
painter.fillRect(rect.left(), rect.top(), rect.width(), rect.height(), QColor(0, 0, 0, 0)); //QColor(67, 67, 67, 100)
|
||||
// //
|
||||
// QPainter painter(this);
|
||||
// QRect rect = this->rect();
|
||||
// //背景透明
|
||||
// painter.fillRect(rect.left(), rect.top(), rect.width(), rect.height(), QColor(0, 0, 0, 0)); //QColor(67, 67, 67, 100)
|
||||
|
||||
CDrawTvd *drawTvd = new CDrawTvd();
|
||||
drawTvd->sFilePath = m_strSlfName;
|
||||
drawTvd->DrawTvd(&painter, rect);
|
||||
// CDrawTvd *drawTvd = new CDrawTvd();
|
||||
// drawTvd->sFilePath = m_strSlfName;
|
||||
// drawTvd->DrawTvd(&painter, rect);
|
||||
}
|
||||
|
||||
FormLine::~FormLine()
|
||||
|
|
@ -36,6 +36,16 @@ FormLine::~FormLine()
|
|||
|
||||
void FormLine::paintEvent(QPaintEvent*)
|
||||
{
|
||||
//
|
||||
QPainter painter(this);
|
||||
QRect rect = this->rect();
|
||||
//背景透明
|
||||
painter.fillRect(rect.left(), rect.top(), rect.width(), rect.height(), QColor(0, 0, 0, 0)); //QColor(67, 67, 67, 100)
|
||||
|
||||
CDrawTvd *drawTvd = new CDrawTvd();
|
||||
drawTvd->sFilePath = m_strSlfName;
|
||||
drawTvd->DrawTvd(&painter, rect);
|
||||
|
||||
// QPainter painter(this);
|
||||
// QRect rect = this->rect();
|
||||
// //背景透明
|
||||
|
|
|
|||
|
|
@ -1437,7 +1437,7 @@ void MainWindowCurve::NewWellAndTrack(QString strWellName, QString strSlfName, Q
|
|||
if(strType=="SantuyibiaoObject")
|
||||
{
|
||||
//斜井三图一表
|
||||
nW = g_iOneWidth*2;
|
||||
nW = g_iOneWidth*4;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user