You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.0 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
/////////////////////////////////////////////////////////////////////////
//class CWellIcon
//#define COLORBLACK RGB(0,0,0)
//#define COLORRED RGB(255,0,0)
//#define COLORGREEN RGB(0,255,0)
//#define COLORBLUE RGB(0,0,255)
//#define COLORPURPLE RGB(255,0,255)
struct DPoint
{
double x;
double y;
};
//三角形
//class CTriangle :public CObject
//{
////Attributes:
//public:
// int m_Point1; //顶点1
// int m_Point2; //顶点2
// int m_Point3; //顶点3
// CPoint m_lgPoint1; //逻辑顶点1
// CPoint m_lgPoint2; //逻辑顶点2
// CPoint m_lgPoint3; //逻辑顶点3
// int m_Side1; //顶点1
// int m_Side2; //顶点2
// int m_Side3; //顶点3
//public:
// CTriangle();
// ~CTriangle();
// void DrawTriangle(CDC *pDC);
// void FillTriangle(CDC *pDC,COLORREF t_color);
//};
class AFX_EXT_CLASS CWellInfo :public CObject
{
public:
bool m_bShowName; //井号显示标记
bool m_bound; //是否为边界控制点
CPoint m_ptWellPos; //井位逻辑坐标
private:
CString m_sWellName; //井号
double m_fWellPosX; //井位的大地坐标(横坐标)
double m_fWellPosY; //(纵坐标)
int m_nWellType; //井类别 //0:虚拟井 >0正常实井 -1:边界虚拟井
int m_nFaceValue; //沉积相
int m_layernumbers; //含小层数
public:
CPoint GetWellPos();
CWellInfo(void);
CWellInfo(double x,double y,int iFacies);
~CWellInfo(void);
void SetLayers(int m_Layers);
void InitLayerArray();
void SetWellName(CString sWellName);
void SetWellPos(double fXPosition, double fYPosition);
void SetWellPos(int nXLogical, int nYLogical);
void SetWellPos(CPoint ptWellPos);
void SetWellFace(int nFaceValue);
void SetWellType(int nWellType);
CString GetWellName();
void GetWellPos(double &fWellPosX, double &fWellPosY);
double GetWellXPos();
double GetWellYPos();
int GetWellType();
int GetWellFace();
int GetLayers();
BOOL PTInWellRgn(CPoint point);
void PopOutPoint(CDC *pDC,double fZoom);
void Serialize(CArchive &ar);
};