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.
44 lines
1010 B
C++
44 lines
1010 B
C++
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//FillBoundaryFactory.h
|
|
|
|
#pragma once
|
|
|
|
#define FILLBOUNDARY_MEMORYSIZE 256
|
|
|
|
#include "FillBoundary.h"
|
|
|
|
class CGDFLayer;
|
|
|
|
class CFillBoundaryMemory
|
|
{
|
|
public:
|
|
CFillBoundaryMemory();
|
|
~CFillBoundaryMemory();
|
|
|
|
CFillBoundary m_fillboundaryarray[FILLBOUNDARY_MEMORYSIZE];
|
|
BYTE m_flag[FILLBOUNDARY_MEMORYSIZE];
|
|
DWORD m_dwCount;
|
|
|
|
CFillBoundary* NewFillBoundary();
|
|
BOOL DeleteFillBoundary(CFillBoundary* pFillBoundary);
|
|
};
|
|
|
|
class CFillBoundaryCreator
|
|
{
|
|
public:
|
|
CFillBoundaryCreator();
|
|
~CFillBoundaryCreator();
|
|
//Attributes
|
|
private:
|
|
CTypedPtrArray<CPtrArray,CFillBoundaryMemory*> m_fillboundaryarray;
|
|
//Operations
|
|
public:
|
|
CFillBoundary* NewFillBoundary();
|
|
void DeleteFillBoundary(CFillBoundary* pFillBoundary);
|
|
void DeleteFillBoundary(CTypedPtrArray<CPtrArray,CFillBoundary*>& fillboundaryarray);
|
|
};
|
|
|
|
extern "C" AFX_EXT_API CFillBoundaryCreator* WINAPI AfxGetFillBoundaryFactory();
|
|
|
|
|