www.pudn.com > QuadTreeLOD4cs.rar > Bit.h, change:2003-08-12,size:702b
// Bit.h: interface for the CBit class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_BIT_H__451EDEB9_A144_4D46_AA91_85624633314F__INCLUDED_)
#define AFX_BIT_H__451EDEB9_A144_4D46_AA91_85624633314F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CBit
{
unsigned char *m_pBits;
int m_nXBytes; //X方向的字节数
int m_nZRows;//Z方向上的行数
public:
int m_nSclae;
void Set(int x,int y,bool bFlag = true);
void Reset();
bool Create(int nXBits,int nZRows);
bool IsTrue(int x,int y);
CBit();
virtual ~CBit();
};
#endif // !defined(AFX_BIT_H__451EDEB9_A144_4D46_AA91_85624633314F__INCLUDED_)