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.

56 lines
1.3 KiB
C++

#ifndef LEGEND_H
#define LEGEND_H
#pragma once
#include "WellPoleLib/InTrackTextBase.h"
#include "WellPoleLib/InTrackPicture.h"
//////////////////////////////////////////////////////////////////////////////
//文件 Legend.h
//主要功能:
// 图例类
/////////////////////////////////////////////////////////////////////////////
class AFX_EXT_CLASS CMWSectionLegend : public CWellBaseObj
{
public:
CMWSectionLegend(void);
~CMWSectionLegend(void);
void operator=(CMWSectionLegend& Object);
CLONE_WELLOBJECT(CMWSectionLegend)
public:
CString m_strText; // 图例名
CString m_strLitho; // 岩性名称
CString m_strSymbol; // 符号名称
double m_fBorderWidth; // 边界宽度
double m_fBorderHeight; // 边界高度
CInTrackPicture *m_pPicture;
CXy* m_pMarkFill; // 填充符号指针
protected:
DWORD m_nLegendFlags; // 图例开关状态
// 连层类Flags
enum LegendFlags
{
FlagNULL = 0x0000, // 空白
LegendFlagBottomText = 0x0001, // 文字写在底部
};
public:
virtual void Serialize(CArchive& ar, const short &ver);
virtual void Draw(CXyDC* pDC);
//开关变量值
virtual void SetLegendFlags(DWORD flags);
virtual void SetBottomText(BOOL bFlag);
virtual DWORD GetLegendFlags();
virtual BOOL IsBottomText();
void MoveHandleTo(int nHandle, CPoint2D point);
};
#endif