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.
32 lines
859 B
C++
32 lines
859 B
C++
#pragma once
|
|
#include "ObjBase.h"
|
|
#include "GlobalDefine.h"
|
|
#include "DataPoint.h"
|
|
|
|
|
|
|
|
class CModule;
|
|
|
|
//圆弧对象
|
|
class CObjArc :public CObjBase
|
|
{
|
|
public:
|
|
CObjArc(void);
|
|
~CObjArc(void);
|
|
virtual CObjArc * Clone(){return new CObjArc(*this);};
|
|
virtual CString GetStr();
|
|
virtual OBJ_TYPE GetType(){return _TYPE_ARC;};
|
|
virtual void WriteWorkFileExt(vector<CLab> &LabVec);
|
|
virtual void ReadWorkFileExt(CLabVecRang &LabVecRang);
|
|
virtual void Operate(SObjOperatePar &par);
|
|
virtual void Draw(CDC* pDC,CPen &Pen);
|
|
virtual void GetPtData(vector<vector<Dbxy>> &vec);
|
|
void SetCenterPt(Dbxy pt);
|
|
void SetbDir(bool b){m_bDir = b;};
|
|
private:
|
|
CDataPoint m_CenterPt;//圆心点
|
|
int m_EdgeCnt;//边数
|
|
bool m_bDir;//圆弧的方向
|
|
};
|
|
|