📄 interface.h
字号:
#ifndef __GENERALPLUS_OCTREE_INTERFACE_H_20080712__
#define __GENERALPLUS_OCTREE_INTERFACE_H_20080712__
#include <ole2.h>
#include "define.h"
interface I_Palette
{
virtual HRESULT Initialize(WORD wPaletteSize)=0;
virtual void Clear()=0;
virtual HRESULT AddColor(S_Color * psClr)=0;
virtual DWORD NearestColorIndex(S_Color * psClr)=0;
virtual HRESULT GetPalette(S_Palette * psPalette)=0;
};
interface I_OCTree
{
virtual HRESULT Initialize(WORD wTotalLeafs,WORD wTotalLevels)=0;
virtual HRESULT AddPixel(S_Color * psClr)=0;
virtual HRESULT FetchPalette(I_Palette * pIPalette)= 0;
virtual void Release()=0;
};
interface I_ReduceList
{
virtual HRESULT AddNode(S_Node * psNode)=0;
virtual HRESULT Reduce(WORD * pwReduceCount)=0 ;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -