📄 pandl.h
字号:
// Entity.h: interface for the CEntity class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_PANDL_H__BE769D85_6C72_43F4_88FB_5521CA66FC8E__INCLUDED_)
#define AFX_PANDL_H__BE769D85_6C72_43F4_88FB_5521CA66FC8E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\inc\GeomCalc\cadbase.h"
class CPointtest:public CObject
{
public:
//attribs
POINT3D pt3;
public:
//constructor && destructor
CPointtest();
~CPointtest();
protected:
};
//apoint
class APoint:public CObject
{
//attribs
public:
CTypedPtrArray<CObArray,CPointtest*> m_PointList;
public:
//constructor && destructor
APoint();
~APoint();
// operation
const APoint& operator=(const APoint&);
void Add(CPointtest* pt3);
BOOL LoadSTLFile(LPCTSTR file);
void Clear();
//attrib accessing
BOOL IsEmpty();
protected:
// POINT3D* pt3;
};
class CLine:public CObject
{
public:
//attribs
CTypedPtrArray<CObArray,CPointtest*> m_PointList2;
public:
//constructor && destructor
CLine();
~CLine();
protected:
};
class CALine:public CObject
{
//attribs
public:
CTypedPtrArray<CObArray,CLine*> m_LineList2;
public:
//constructor && destructor
CALine();
~CALine();
void Add(CLine* line);
BOOL LoadTXTFile(LPCTSTR file);
void Clear();
void Del(int index);
//attrib accessing
BOOL IsEmpty();
};
class CTriChip:public CObject
{
public:
//attribs
POINT3D vex[3];
VECTOR3D normal;
public:
//constructor && destructor
CTriChip();
CTriChip(const POINT3D& v0,const POINT3D& v1,const POINT3D& v2,const VECTOR3D& norm);
virtual ~CTriChip();
VECTOR3D ComputerVector(const POINT3D& v0,const POINT3D& v1,const POINT3D& v2);
//operator
const CTriChip& operator=(const CTriChip&);
protected:
};
//tessellated model
class CSTLModel: public CObject
{
//attribs
public:
CTypedPtrArray<CObArray,CTriChip*> m_TriList;
public:
//constructor && destructor
CSTLModel();
virtual ~CSTLModel();
// operation
const CSTLModel& operator=(const CSTLModel&);
void Add(CTriChip* tri);
BOOL LoadSTLFile(LPCTSTR file);
void Clear();
//attrib accessing
BOOL IsEmpty();
protected:
};
#endif // !defined(AFX_ENTITY_H__BE769D85_6C72_43F4_88FB_5521CA66FC8E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -