rsiptic.h

来自「基于小波的SAR斑点处理」· C头文件 代码 · 共 58 行

H
58
字号
#ifndef _RSIPTIC_H_
#define _RSIPTIC_H_

#if _MSC_VER > 1000
#pragma once
#endif //_MSC_VER

#define TICS_CORRECTION_PARA	18
#define RSIPTICS				19990824
#define SIMULATE_TIME			2
#define	MIN_VALID_TICS_NUMBER	6

class CRSIPTics : public CObject
{
public:
	DWORD			m_dwTicsNumber;

	CObArray		m_aMapPoints;
	CObArray		m_aGeoPoints;
	DWORD			m_dwSimulateTime;
	BOOL			m_bCorrectionReady;

	DWORD			m_dwReserved[5];

	double		m_dCoefficient[TICS_CORRECTION_PARA];
	double		m_dInvertCoefficient[TICS_CORRECTION_PARA];

public:
	CRSIPTics();
	~CRSIPTics();
	void Reset();

public:
	CGisPoint		GetGeoPosition(const CGisPoint srcpoint);
	CGisPoint		MapToGeo(const CGisPoint pntMap);
	CGisPoint		GeoToMap(const CGisPoint pntGeo);
	int Calculate();

// operation
public:
	int				AddTic(const CGisPoint pntMap, const CGisPoint pntGeo);
	void			RemoveTic(DWORD order);
	void			SetMapPoint(const CGisPoint pntMap,DWORD Order);
	void			SetGeoPoint(const CGisPoint pntGeo,DWORD Order);
	void			GetPoints(DWORD order,CGisPoint & pntMap,CGisPoint & pntGeo);
	
	void ClearReady(){ m_bCorrectionReady = FALSE; }

	int ReadFrom(CFile &File);
	int WriteTo(CFile &File);

public:
	void	operator =(const CRSIPTics & AnotherTics);
};

typedef CRSIPTics * LPCRSIPTics;		//Long point to CRSIPTics object 

#endif // _RSIPTIC_H_ 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?