⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 colorunit.h

📁 对测井数据显示、编辑、处理
💻 H
字号:
// ColorUnit.h: interface for the CColorUnit class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COLORUNIT_H__4ED89A01_8E9A_4A05_A8E0_A1BA3DEA0AFD__INCLUDED_)
#define AFX_COLORUNIT_H__4ED89A01_8E9A_4A05_A8E0_A1BA3DEA0AFD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "DataBase.h"

#include "RoadUnit.h"

class CColorUnit : public CDataBase  
{
private:
	CRect		m_rect;
	float		m_fLeftValue;
	float		m_fRightValue;
	COLORREF	m_color[64];
public:
	
	void		SetColorValue(COLORREF color[]);
	void		SetRectValue(CRect rect);
	void		SetValueLeft(float fValue);
	void		SetValueRight(float fValue);

	void		SetTopPosition(int nTopPos);
	void		SetBottomPosition(int nBottomPos);

	void		SetRoad(CRoadUnit* pRoadUnit);
    
	
	CRect		GetLayerRect();
	
	COLORREF    GetIndexColor(int nIndex);
	float		GetLeftValue();
	float		GetRightValue();
	int			GetTopPosition();
	int			GetBottomPosition();

	void		InitColorFromFile();


	void		Draw(CDC *pDC);
public:
	CColorUnit();
	CColorUnit(float fLeftValue, float fRightValue, CRect rect);
	virtual ~CColorUnit();

};

#endif // !defined(AFX_COLORUNIT_H__4ED89A01_8E9A_4A05_A8E0_A1BA3DEA0AFD__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -