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.
78 lines
2.2 KiB
C++
78 lines
2.2 KiB
C++
/**************************************************************************************
|
|
吸水剖面道内数据
|
|
**************************************************************************************/
|
|
#ifndef INTRACKWATERPROFILE_H
|
|
#define INTRACKWATERPROFILE_H
|
|
|
|
#include "InTrackTextRange.h"
|
|
|
|
#pragma once
|
|
|
|
class AFX_EXT_CLASS CInTrackWaterInjectionProfile: public CInTrackTextRange
|
|
{
|
|
|
|
public:
|
|
CInTrackWaterInjectionProfile();
|
|
CInTrackWaterInjectionProfile(const CRect8& position);
|
|
~CInTrackWaterInjectionProfile();
|
|
CLONE_WELLOBJECT(CInTrackWaterInjectionProfile)
|
|
virtual void operator=(CInTrackWaterInjectionProfile& object);
|
|
|
|
public:
|
|
|
|
//画吸水参数表
|
|
virtual void Draw(CXyDC* pDC);
|
|
|
|
protected:
|
|
|
|
void DrawInclined(CXyDC* pDC);
|
|
|
|
DWORD m_nTrackInWaterAbsorFlag; //开关变量
|
|
|
|
enum TrackInWaterAbsorFlag
|
|
{
|
|
TrackInWaterAbsorFlagRelative = 0x0001, //显示相对吸水量
|
|
TrackInWaterAbsorFlagAbsolute = 0x0002, //显示绝对吸水量
|
|
TracKInWaterAbsorFlagUnit = 0x0004, //显示单位
|
|
TracKInWaterAbsorFlagBarText = 0x0008, //显示文本
|
|
TrackInWaterAbsorFlagReverseLayer = 0x0016, //反向绘制层
|
|
};
|
|
|
|
public:
|
|
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
|
|
//开关变量
|
|
virtual void SetShowRelative(BOOL bFlag);
|
|
virtual void SetShowAbsolute(BOOL bFlag);
|
|
virtual void SetShowUnit(BOOL bFlag);
|
|
virtual void SetShowText(BOOL bFlag);
|
|
virtual void SetReverseLayer(BOOL bFlag);
|
|
|
|
virtual BOOL IsShowRelative();
|
|
virtual BOOL IsShowAbsolute();
|
|
virtual BOOL IsShowUnit();
|
|
virtual BOOL IsShowText();
|
|
virtual BOOL IsReverseLayer();
|
|
|
|
virtual bool CalcInclinedBorder();
|
|
|
|
public:
|
|
double m_dAbsorptionAmount; //吸水量
|
|
double m_dRelativeAbsorpt; //相对吸水
|
|
CString m_strConclusion; //结论
|
|
int m_nAlign; //对齐方式
|
|
CString m_strTextLineAlign; //文本对齐方式
|
|
double m_LayerInnerSpace; //层内空
|
|
double m_LayerValueSpace; //层上下空
|
|
protected:
|
|
CCurveEx m_curveMid; //中间线
|
|
|
|
void DrawRect(CXyDC*pDC,CRect8 showRect);
|
|
|
|
public:
|
|
virtual int ReadPCG_SelfData(CKXmlParse& xp, const short& ver, CTrackObj* pTrack);
|
|
virtual void WritePCG_SelfData(CFile& fw, int nBaseTabNum);
|
|
};
|
|
|
|
#endif |