⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graphicfactory.h

📁 包含几乎所有的c语言的库函数
💻 H
字号:
// GraphicFactory.h: interface for the GraphicFactory class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GRAPHICFACTORY_H__B075C7A8_7615_485B_AE4F_1BF446BEDF48__INCLUDED_)
#define AFX_GRAPHICFACTORY_H__B075C7A8_7615_485B_AE4F_1BF446BEDF48__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Point.h"
#include "Line.h"
#include "Circle.h"
#include "Rect.h"

//=================================================================
//类工厂基类 : 子类为单件类工厂(SingleTon);
//=================================================================
class GraphicFactory  
{
public:
	virtual ~GraphicFactory();

protected:
	//不允许客户实例化;
	GraphicFactory();

public:
    //创建点图形元素;
	virtual Point*     CreatePoint    ()=0;

	//创建直线图形元素;
	virtual Line*      CreateLine     ()=0;

	//创建圆图形元素;
	virtual Circle*    CreateCircle   ()=0;

	//创建矩形图形元素;
	virtual Rect* CreateRectangle()=0;

};

#endif // !defined(AFX_GRAPHICFACTORY_H__B075C7A8_7615_485B_AE4F_1BF446BEDF48__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -