|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
//文件 PointNameRect.h
|
|
|
//主要功能:
|
|
|
//
|
|
|
//程序编写: 2005-12-07
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#pragma once
|
|
|
#include ".\pointnamebase.h"
|
|
|
#include "rect8ex.h"
|
|
|
|
|
|
|
|
|
//主要用作其它带height,width变量的基类
|
|
|
class AFX_EXT_CLASS CPointNameRect :
|
|
|
public CPointNameBase
|
|
|
{
|
|
|
public:
|
|
|
CPointNameRect(void);
|
|
|
virtual ~CPointNameRect(void);
|
|
|
|
|
|
CSize8 m_size;
|
|
|
|
|
|
void Serialize(CArchive& ar, const short &ver) override;
|
|
|
virtual int Read(CFile& fr, const short& ver);
|
|
|
virtual void Write(CFile& fw, const short& ver);
|
|
|
|
|
|
virtual void WriteDML(CFile &fw, const short& ver, int nBaseTabNum);
|
|
|
|
|
|
virtual void WritePCG(CFile &fw, const short& ver, int nBaseTabNum);
|
|
|
|
|
|
virtual bool GetRange(CRect8& range);
|
|
|
virtual int IsInRange(CRect8& range);
|
|
|
|
|
|
virtual void ScaleCoor(double xs, double ys, double dx, double dy);
|
|
|
virtual void ScaleProperty(double sx, double sy);
|
|
|
virtual void ScaleCoordinate(double sx, double sy, int mode); //mode=0:加,1:减,2:乘,3:除
|
|
|
|
|
|
// type为校正类型,比如两点校位、四点校位等;pValue为类对象指针,如CCalibrate2、CCalibrate4等
|
|
|
virtual void Calibrate(int type, void* pValue);
|
|
|
virtual void ExchangeXY(void);
|
|
|
virtual void ExchangeXY(void* pProjection); //转换到指定投影坐标,CPrljectio* pProjection
|
|
|
virtual void Rotate(double xs, double ys, double dAngle);
|
|
|
|
|
|
void operator=(CPointNameRect& pt);
|
|
|
virtual CRect8 GetRect(void);
|
|
|
virtual void SetRect(CRect8 rect);
|
|
|
};
|