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.

38 lines
1.4 KiB
C

#pragma once
#include "ObjBase.h"
class CModule;
class CObjCircle :public CObjBase
{
public:
CObjCircle(void);
~CObjCircle(void);
virtual CObjCircle * Clone(){return new CObjCircle(*this);};
virtual CString GetStr();
virtual OBJ_TYPE GetType(){return _TYPE_CIRCLE;};
virtual CMFCPropertyGridProperty *CreatSpecialGridProperty(CModule *pModule);
virtual void OnSpecialPropertyChanged();
virtual void WriteWorkFileExt(vector<CLab> &LabVec);
virtual void ReadWorkFileExt(CLabVecRang &LabVecRang);
virtual void CreatByRadius(double Radius,Dbxy CenterPt,int EdgeCnt);
virtual void Draw(CDC* pDC,CPen &Pen);
virtual void GetPtData(vector<vector<Dbxy>> &vec);
virtual void DrawPtCoord(CDC* pDC);
void Creat(CCirclePar ObjCirclePar);
void ReCreat(double Radius,int DEdgeCnt);
void OnlyDrawCenterPt(){m_bOnlyDrawCenterPt = true;};
private:
double m_OldRadius;//<2F>뾶(<28><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD><E4BBAF>)
double m_OldDiameter;//ֱ<><D6B1>(<28><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD><E4BBAF>)
int m_OldEdgeCnt;//<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>Ƿ<EFBFBD><C7B7><EFBFBD><E4BBAF>)
double m_Radius;//<2F>
double m_Diameter;//ֱ<><D6B1>
int m_EdgeCnt;//<2F><><EFBFBD><EFBFBD>
bool m_bOnlyDrawCenterPt;//ֻ<><D6BB><EFBFBD><EFBFBD>Բ<EFBFBD><D4B2>ʮ<EFBFBD><CAAE>
};