www.pudn.com > MyImageDB(imageobject).rar > MyReguTex.h


// MyReguTex.h: interface for the MyReguTex class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MYREGUTEX_H__305C0099_445A_4CAE_8782_42ACE823B27D__INCLUDED_) 
#define AFX_MYREGUTEX_H__305C0099_445A_4CAE_8782_42ACE823B27D__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include  
 
typedef struct tagLineElement 
{ 
	BOOL iscombined;//归并纹理区或新纹理区; 
	INT  rgid;//该区编号; 
	INT  stpos, endpos;//起终点位置; 
	INT  texindexid;//据此在纹理列表中搜索该元素的纹理基元; 
	FLOAT averval;//均值; 
	INT   len;//长度;(除均值和方差外也可包含其它统计量; 
}LineElement; 
 
class MyReguTex   
{ 
public: 
	MyReguTex(); 
    MyReguTex(INT inindexid//基元索引标识 
	  , INT  inlevel//基元所在层次; 
	  , FLOAT initensity//该基元各像素的平均值; 
	  , INT   intexlen//纹理尺寸; 
	  , CString insubRegutex//所包含的子基元的索引标识号,各子基元之间用逗号分隔; 
	  , CString inparent//该基元的父基元的索引标识号; 
	  );//赋值; 
 
    void SetValue(INT inindexid//基元索引标识 
	  , INT  inlevel//基元所在层次; 
	  , FLOAT initensity//该基元各像素的平均值; 
	  , INT   intexlen//纹理尺寸; 
	  , CString insubRegutex//所包含的子基元的索引标识号,各子基元之间用逗号分隔; 
	  , CString inparent//该基元的父基元的索引标识号; 
	  );//赋值; 
 
 
	virtual ~MyReguTex(); 
 
public: 
	void SetParentReguTex(MyReguTex* parent); 
    void SetParentReguTex(INT iparentid); 
    void SetParentReguTex(CString sparentid); 
 
	void AddSubReguTex(MyReguTex* child); 
    void AddSubReguTex(INT iparentid); 
    void AddSubReguTex(CString sparentid); 
 
public: 
	INT   myIndexid;//本基元的标识号; 
	INT   myLevel;//基元所在层次; 
	FLOAT myItensity;//该基元各像素的平均值; 
	INT   myTexlen;//纹理尺寸; 
	CString mySubRegutex;//所包含的子基元的标识号,各子基元之间用逗号分隔; 
	CString myParent;//该基元的父基元的标识号; 
 
    bool operator==(const MyReguTex& y); 
    bool operator<(const MyReguTex& y); 
}; 
#endif // !defined(AFX_MYREGUTEX_H__305C0099_445A_4CAE_8782_42ACE823B27D__INCLUDED_)