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

📄 modelspace.h

📁 我自己写的代码 可能比较简单 我实现了模拟图层的功能
💻 H
字号:
///////////////////////////////////////////////////////////
//  ModelSpace.h
//  Implementation of the Class ModelSpace
//  Created on:      18-二月-2009 17:17:29
//  Original author: pangyj
///////////////////////////////////////////////////////////

#if !defined(EA_49BE5DEA_F496_481a_8BBE_659462B4EA6E__INCLUDED_)
#define EA_49BE5DEA_F496_481a_8BBE_659462B4EA6E__INCLUDED_

#include "ErrorStatus.h"
#include "OpenMode.h"
#include "EntityObject.h"
#include "geometryprimitive.h"
class ModelSpace
{

public:
	ModelSpace();
	virtual ~ModelSpace();

	unsigned long AddObjectToModelSpace(EntityObject*& pObj);
	ErrorStatus close(EntityObject*& pEnt);
	ErrorStatus erase(unsigned long id);
	ErrorStatus open(EntityObject*& pEnt, unsigned long id, OpenMode mode);
	ErrorStatus write(fstream &);
	bool isEmpty()const;
	ErrorStatus open(EntityObject *& pEnt,const char * sName,OpenMode mode);
	lit_list<unsigned long>& subEntityIds();
public:
	lit_list<unsigned long> layers;

private:
	lit_list<unsigned long> entities;
	UEMAP idObjectMap;
	unsigned long lastId;
};
#endif // !defined(EA_49BE5DEA_F496_481a_8BBE_659462B4EA6E__INCLUDED_)

⌨️ 快捷键说明

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