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.

49 lines
1.5 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

//////////////////////////////////////////////////////////////////////////////
//文件 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);
};