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

📄 publickit.h

📁 这是书上的代码
💻 H
字号:
//时间:5月4日20:02
#include "dbhatch.h "
#include "dbgroup.h"
#include "dbdict.h"
#include "dbxrecrd.h"
#include <afxtempl.h>
#include "dbents.h "
#include "dbsymtb.h "
#include "dbxrecrd.h "
#include "dbents.h "
#include <math.h>
typedef union _rexdata
{
	//此联合体用于存取扩展数据
	char * str;
	int int_value;
        long long_value;
	double double_value;
} rexdata;

BOOL check_stringvalid(CString *str);
BOOL check_groupname_exit(CString *str);
BOOL has_app();
BOOL enum_groupname(CString *str,CList<CString,CString> *strlist);
BOOL get_xdata(int n,rexdata *re,AcDbGroup *pGroup);
BOOL set_xdata(int n,rexdata *re,AcDbGroup *pGroup);
BOOL create_group(CString *str,struct resbuf *pr=NULL);
BOOL open_group(AcDbGroup *& pGroup,CString *s);
BOOL select_layer(CString s);
BOOL create_group(CString *str,struct resbuf *pr);
BOOL delete_group(CString *str);
double get_sina1(double,double,double);
double get_sina2(double,double,double);
char *get_dimstring(double data,int type);
void loadlinetype();
void setlayer();

//铸造实体类
class Ccast_entity
{
public:
	Ccast_entity(){}
	~Ccast_entity(){}
	virtual BOOL draw()=0;
	virtual BOOL drawoversee()=0;
	virtual BOOL drawleft()=0;
	virtual BOOL dim()=0;
	virtual BOOL dimoversee()=0;
	virtual BOOL dimleft()=0;
	virtual BOOL save_data()=0;
	virtual BOOL check_data()=0;
	virtual BOOL get_list()=0;
	virtual BOOL get_overlist()=0;
	virtual BOOL get_leftlist()=0;
protected:
	CString group_name;
	double basepoint[3][2];
	BOOL isok;
	//绘图和标注用的个关键点
	CArray<AcGePoint3d,AcGePoint3d> list;
	CArray<AcGePoint3d,AcGePoint3d> overlist;
	CArray<AcGePoint3d,AcGePoint3d> leftlist;
};

⌨️ 快捷键说明

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