Donate Bitcoins
What changes do you want to see?

#pragma once
#include "Markup.h"
#include<stdio.h>
#include<math.h>
#include "baseline_func.h"
#include "resource.h"
#include "Functions.h"
#include <stdlib.h>
#include "Sar_CCDDoc.h"
#include "Sar_CCDView.h"
#include <vector>
#include "MemAlloc.h"
#include "ReadFiles.h"
#include<vector>
#include<map>
#include "afxwin.h"
#include "import.h"
#include "Geocode.h"


#define SOL 299792458.0
#define sqr(x) pow(x,2)
#define PI 3.14159265358979
#define ALOS_ST_SKIP 17
#define STATE_VEC_SIZE 66
//defined these constats for envisat
#define MPH 1247 // Main Product Header
#define SPH 6099 // ASAR Image Products SPH
#define SQ 170 //SQ ADSRs
#define MPP 2009 //Main Processing Parameters
#define DCP 55 //doppler centroid parameers
#define CP 1483 //chirp parameters
#define ADSR 5731
#define ENVI_VEC 5
#define new DEBUG_NEW

using namespace std;
vector<double> SplitString (string aString);


// baseline dialog
class baseline : public CDialog
{
DECLARE_DYNAMIC(baseline)


public:
baseline(CWnd* pParent = NULL); // standard constructor
virtual ~baseline();

// Dialog Data
enum { IDD = IDD_BASE_DIALOG };

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

DECLARE_MESSAGE_MAP()
public:

//Button_click Event for getting master file name
afx_msg void OnBnClickedInpmaster();

//Button_click Event for getting slave file name
afx_msg void OnBnClickedInpslave();

//Button click Event which calls appropriate functions which create slc file by examining value of selectedprocess
afx_msg void OnBnClickedCalculate();



//Button click Event which exits from dialog
afx_msg void OnBnClickedExit();

//Function called for browsing output directory
afx_msg void OnBnClickedOutdir();


//Invoked when dialog is called.Inserts columns in list control
virtual BOOL OnInitDialog();

//functions for validating user input
bool validate_input(void);

//functions for creating master slc par files for ers1
char* createERS_Master(void) ;

//functions for creating slave slc par files for ers2
char* createERS_Slave(void);

//functions for creating master slc par file for Terrasarx
char* createTERRA_Master(void);

//functions for creating slave slc par file for Terrasarx
char* createTERRA_Slave(void);

//functions for creating master slc par file for Alos
char* createAlos_Master(void);

//functions for creating slave slc parfile for Alos
char* createAlos_Slave(void);

//functions for creating master slc par file for rasat2
char* createRadarsat2_Master(void);

//functions for creating slave slc par file for rsat2
char* createRadarsat2_Slave(void);

//functions for creating master slc par file for envisat
char* createEnvisat_Master(void);

//functions for creating slave slc par file for envisat
char* createEnvisat_Slave(void);


//functions for master slc par file for cosmoskymed
char* createCosmo_Master(void);

//functions for slave slc par file for cosmoskymed
char* createCosmo_Slave(void);

//function for Calculating baseline ,which takes two master.slc_par & slave.slc_par file.
bool calc_baseline(char *fname1 , char*fname2);

//this function will itearate through all controls in a dialog box will set their font
void Set_AllControls_Font();

//this function returns pointer to document
inline CSar_CCDDoc* GetDocPtr();


//Program Declared Variables Here

//varible for indicating which submenu user invoked ,that is for which s
//atellite user is calculating baseline
int SelectedProcess;

//stores two input file names
CString PathName1,PathName2;

//variables storing final baseline calculations
double Bh,Bv,bpar,bperp,alpha,mpt1,inc_angle1, height_amb,theta,baseline1,spt1,crit_baseline;

int tln,tpx;

//Clistctrl variable to insert columns & column values
CListCtrl *list;

// Variable of IDC_EDIT1 of type string to take dialog control edit values
//when updatedata is false & set to edit control when updatedata is true
CString led_input1;

// Variable of IDC_EDIT2 of type string to take dialog control edit values
//when updatedata is false & set to edit control when updatedata is true
CString led_input2;

//array declared to hold no of cols inserted in a list control
int nitem[30];

//contains output directory path for parameter files
CString m_txtoutdir;

CString tt;

//pointer to of Cfunctions type use to access general use function
CFunctions Pfun;

//pointer to document
CSar_CCDDoc *pdoc;

//pointer of cmemalloc type used for memory allocation & deallocation
CMemAlloc mem;

//Bool variable showing successful completion of process
BOOL flag;

#pragma warning(disable:4430)

//write results to output file
void write_output();


baseline_func Bfun;
CReadFiles Pread;


afx_msg void OnDestroy();
virtual void PostNcDestroy();
afx_msg void OnBnClickedNxtBase();
CButton nextBaseline;


import iDlg;
};
View count: 59

Enjoy the site? All donations are appreciated. Paypal or BTC

Donate Bitcoins
Free Text Host is brought to you by Dagon Design
This site contains no adware, spyware, or popups
Questions? Comments?     Privacy Policy     Report abuse here