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.
37 lines
791 B
C++
37 lines
791 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <string>
|
|
#include <map>
|
|
|
|
enum EBrushLibType
|
|
{
|
|
BrushNone,
|
|
BrushWaterFlooding, //Ë®ÑÍ
|
|
BrushFacies, //³Á»ýÏà
|
|
BrushLithology //ÑÒÐÔ
|
|
};
|
|
|
|
class AFX_EXT_CLASS CWellInterpretBrushLib
|
|
{
|
|
public:
|
|
CWellInterpretBrushLib();
|
|
~CWellInterpretBrushLib();
|
|
|
|
void Clear();
|
|
public:
|
|
BOOL InitLib(LPCTSTR lpszLibName);
|
|
|
|
BOOL GetColor(EBrushLibType brushType, CString name, COLORREF& color);
|
|
|
|
BOOL GetColor(CString strTable, CString Column, CString name, COLORREF& color);
|
|
|
|
void GetFaciesNames(CStringArray& strArr);
|
|
protected:
|
|
|
|
std::map<EBrushLibType, std::map<CString, COLORREF>*> m_BrushMaps;
|
|
|
|
BOOL m_bInit;
|
|
};
|
|
|
|
extern CWellInterpretBrushLib m_gInterpretBrushLib;
|
|
extern "C" AFX_EXT_API CWellInterpretBrushLib* WINAPI AfxGetGlobalInterpretBrushLib(); |