colorunit.h

来自「对测井数据显示、编辑、处理」· C头文件 代码 · 共 56 行

H
56
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?