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.
|
|
|
|
#pragma once
|
|
|
|
|
#include "ObjBase.h"
|
|
|
|
|
#include "SmartPtr.h"
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD>߶<EFBFBD>
|
|
|
|
|
class CObjPline :public CObjBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CObjPline(void);
|
|
|
|
|
~CObjPline(void);
|
|
|
|
|
virtual CObjPline * Clone(){return new CObjPline(*this);};
|
|
|
|
|
virtual CString GetStr();
|
|
|
|
|
virtual OBJ_TYPE GetType(){return _TYPE_PLINE;};
|
|
|
|
|
public:
|
|
|
|
|
void Creat(Dbxy point1,double w,double h);
|
|
|
|
|
void Creat(Dbxy point1,Dbxy point2);
|
|
|
|
|
void Clone(CObjPline *p);
|
|
|
|
|
void CreatMidNode();
|
|
|
|
|
void AddObj(Sptr<CObjBase> &pObj,bool bReverse);
|
|
|
|
|
void CreatRect(DbRect rect);
|
|
|
|
|
private:
|
|
|
|
|
void CreatRect(Dbxy point1,Dbxy point2);
|
|
|
|
|
void AddMidNodePoint(Dbxy point1,Dbxy point2);
|
|
|
|
|
};
|
|
|
|
|
|