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.
71 lines
2.1 KiB
C++
71 lines
2.1 KiB
C++
#ifndef TRACKCOREPOSITIONOBJ_H
|
|
#define TRACKCOREPOSITIONOBJ_H
|
|
#pragma once
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
//主要功能:
|
|
// 取芯位置道类
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class AFX_EXT_CLASS CTrackCorePosition : public CInclinedTrack
|
|
{
|
|
protected:
|
|
//DECLARE_SERIAL(CTrackCorePosition);
|
|
void Init();
|
|
public:
|
|
CTrackCorePosition();
|
|
CTrackCorePosition(const CRect8& position);
|
|
~CTrackCorePosition();
|
|
|
|
protected:
|
|
|
|
DWORD m_nTrackCorePosFlags;//取芯位置道状态
|
|
|
|
// 埋深道Flags
|
|
enum TrackBuryFlags
|
|
{
|
|
TrackCorePosFlagDepth = 0x0001, //显示深度值
|
|
TrackCorePosFlagLength = 0x0002, //显示长度值
|
|
TrackCorePosFlagPercent = 0x0004 //显示百分比
|
|
};
|
|
// Implementation
|
|
public:
|
|
virtual void AddObjChild(); //创建取芯位置符号
|
|
virtual void ResetChildProperties();//重设取芯位置符号的属性
|
|
virtual void Serialize(CArchive& ar, const short &ver);
|
|
//virtual void CalcBorders();
|
|
|
|
//开关变量值
|
|
virtual void SetTrackCorePosFlags(DWORD flags);
|
|
virtual void SetShowDepth(BOOL bFlag);
|
|
virtual void SetShowLength(BOOL bFlag);
|
|
virtual void SetShowPercent(BOOL bFlag);
|
|
|
|
virtual DWORD GetTrackCorePosFlags();
|
|
virtual BOOL IsShowDepth();
|
|
virtual BOOL IsShowLength();
|
|
virtual BOOL IsShowPercent();
|
|
////// 2015.9.17 从工区导入数据时创建道内子对象
|
|
void BuidChildObject(vector<CString> &fields, StringVectorSet &datas, BOOL bInit=FALSE);
|
|
////// 2015.8.26 获取道内对象的具体内容
|
|
void GetChildDatas(StringVectorSet &dataContent , BOOL bHaveWellName = TRUE);
|
|
|
|
//读pcg格式的道
|
|
virtual int ReadPCG_Self(CFile &fr,CXmlParse& xp,const short& ver );
|
|
//读pcg格式的数据
|
|
virtual int ReadPCG_Data(CFile &fr,const short& ver);
|
|
//写pcg格式的道
|
|
virtual void WritePCG_Trace(CFile &fw,int nBaseTabNum);
|
|
//写pcg格式的道内数据
|
|
virtual void WritePCG_Data(CFile &fw,int nBaseTabNum);
|
|
|
|
|
|
virtual int ReadPCG_Self(CKXmlParse& xp, const short& ver);
|
|
//读pcg格式的数据
|
|
virtual int ReadPCG_Data(CKXmlParse& xp, const short& ver);
|
|
|
|
virtual void GetChildDatas(CString& jsonStr);
|
|
virtual BOOL SetChildDatas(CString& jsonStr);
|
|
};
|
|
|
|
#endif |