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.

28 lines
873 B
C++

#pragma once
#include "GlobalDefine.h"
#include "ObjContainer.h"
#include "Module.h"
#include "EnumPropertieType.h"
class COutputWnd;
class CPltReader:public CModule
{
public:
CPltReader(void);
~CPltReader(void);
virtual void OnAppInitialize(){};
virtual CMFCPropertyGridProperty *CreatGridProperty();
virtual MODULE GetModuleType(){return _PLT_PROP;};
void OpenFile();
private:
bool AnalysePltFlie(CString FilePath);
CString FindNextP(CString str,int &pos);
void TranslatorToComposite(vector<PointType> &vec,CObjContainer &ObjContainer);
private:
vector<PointType> m_PtVec;//存储读取的数据点
//用于将读取的plt 文件缩放到cad 对应大小的比例
double m_ScaleX;
double m_ScaleY;
};
extern CPltReader* gPltReader;