diff --git a/ALLRelease/ALLRelease.cpp b/ALLRelease/ALLRelease.cpp new file mode 100644 index 0000000..2ffd8da --- /dev/null +++ b/ALLRelease/ALLRelease.cpp @@ -0,0 +1,20 @@ +// ALLRelease.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 +// + +#include + +int main() +{ + std::cout << "Hello World!\n"; +} + +// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 +// 调试程序: F5 或调试 >“开始调试”菜单 + +// 入门使用技巧: +// 1. 使用解决方案资源管理器窗口添加/管理文件 +// 2. 使用团队资源管理器窗口连接到源代码管理 +// 3. 使用输出窗口查看生成输出和其他消息 +// 4. 使用错误列表窗口查看错误 +// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 +// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件 diff --git a/ALLRelease/ALLRelease.vcxproj b/ALLRelease/ALLRelease.vcxproj new file mode 100644 index 0000000..0a567a8 --- /dev/null +++ b/ALLRelease/ALLRelease.vcxproj @@ -0,0 +1,161 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {8a71d19d-9ac6-42e9-81ec-9e82af8075b8} + ALLRelease + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {b8b40c54-f7fe-4809-b6fb-8bc014570d7b} + + + {4e6e79a3-048c-4fb4-bbb0-43c518a3e6d4} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + + + {070c157e-3c30-4e2b-a80c-cbc7b74df03f} + + + {8c8ca066-a93a-4098-9a46-b855efeaadf2} + + + {d603a623-132d-4304-ab03-638fc438f084} + + + {ed06dfcd-4b9f-41f7-8f25-1823c2398142} + + + + + + \ No newline at end of file diff --git a/ALLRelease/ALLRelease.vcxproj.filters b/ALLRelease/ALLRelease.vcxproj.filters new file mode 100644 index 0000000..d565bb1 --- /dev/null +++ b/ALLRelease/ALLRelease.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/BaseCommonLibrary/BaseCommonLibrary.vcxproj b/BaseCommonLibrary/BaseCommonLibrary.vcxproj index 9157a03..c2f724e 100644 --- a/BaseCommonLibrary/BaseCommonLibrary.vcxproj +++ b/BaseCommonLibrary/BaseCommonLibrary.vcxproj @@ -73,8 +73,7 @@ - - + @@ -168,9 +167,13 @@ Windows true true - true + DebugFull false + + true + compute_82,sm_82 + @@ -180,6 +183,7 @@ + @@ -205,12 +209,12 @@ Create Create + - - + \ No newline at end of file diff --git a/BaseCommonLibrary/BaseCommonLibrary.vcxproj.filters b/BaseCommonLibrary/BaseCommonLibrary.vcxproj.filters index 99541c8..f50236e 100644 --- a/BaseCommonLibrary/BaseCommonLibrary.vcxproj.filters +++ b/BaseCommonLibrary/BaseCommonLibrary.vcxproj.filters @@ -16,6 +16,9 @@ {bf5c3550-65f6-4dad-9908-26690551ffad} + + {4233f4e2-0d0f-4cf9-8722-367d80339b2c} + @@ -45,9 +48,6 @@ BaseTool - - BaseTool - BaseTool @@ -95,10 +95,19 @@ BaseTool + + ToolAbstract + - - BaseTool - + + 头文件 + + + ToolAbstract + + + + \ No newline at end of file diff --git a/BaseCommonLibrary/BaseTool/BaseConstVariable.h b/BaseCommonLibrary/BaseTool/BaseConstVariable.h index 2d65f01..0b9ca22 100644 --- a/BaseCommonLibrary/BaseTool/BaseConstVariable.h +++ b/BaseCommonLibrary/BaseTool/BaseConstVariable.h @@ -205,6 +205,82 @@ struct CUDA_AntSate_PtrList { double* h_antZaxisZ = nullptr, * d_antZaxisZ = nullptr; }; +/*********************************************** 卫星轨道坐标 ********************************************************************/ + + +/// +/// 轨道节点,坐标系统为WGS84 +/// +struct SatelliteOribtNode { + double time; + + double Px;// 位置 + double Py; + double Pz; + + double Vx;// 速度 + double Vy; + double Vz; + + double AVx; // 加速度 + double AVy; + double AVz; + + double AntXaxisX; // X天线指向,对应翻滚角等参数 + double AntXaxisY; // + double AntXaxisZ; // + + double AntYaxisX; // Y天线指向,对应翻滚角等参数 + double AntYaxisY; // + double AntYaxisZ; // + + double AntZaxisX; // Z天线指向,对应翻滚角等参数 + double AntZaxisY; // + double AntZaxisZ; // + + + double AntDirecX; // 天线指向,对应翻滚角等参数 + double AntDirecY; + double AntDirecZ; + + double zeroDopplerDirectX; // 0 多普勒方向 + double zeroDopplerDirectY; + double zeroDopplerDirectZ; + + double beamAngle; // 波位角 + double AzAngle;// 摆动角 + + +}; + + +struct SatelliteAntDirect { + double Xst; // 地面-->卫星矢量 + double Yst; + double Zst; + double Vxs; // 卫星速度 + double Vys; + double Vzs; + + double Xant; // 天线坐标系下的 矢量坐标 + double Yant; + double Zant; + + double Norm; + + double ThetaAnt; // 天线坐标系下的 theta 坐标系 + double PhiAnt; +}; + + + +struct RadiationPatternGainPoint { + double theta; + double phi; + double GainValue; +}; + + /*********************************************** 指针回收区域 ********************************************************************/ diff --git a/LAMPSARProcessProgram/QToolAbstract.cpp b/BaseCommonLibrary/ToolAbstract/QToolAbstract.cpp similarity index 100% rename from LAMPSARProcessProgram/QToolAbstract.cpp rename to BaseCommonLibrary/ToolAbstract/QToolAbstract.cpp diff --git a/LAMPSARProcessProgram/QToolAbstract.h b/BaseCommonLibrary/ToolAbstract/QToolAbstract.h similarity index 81% rename from LAMPSARProcessProgram/QToolAbstract.h rename to BaseCommonLibrary/ToolAbstract/QToolAbstract.h index 7a266fd..f818162 100644 --- a/LAMPSARProcessProgram/QToolAbstract.h +++ b/BaseCommonLibrary/ToolAbstract/QToolAbstract.h @@ -1,4 +1,7 @@ #pragma once +#ifndef QToolAbstract_H_ +#define QToolAbstract_H_ + #include #include @@ -24,5 +27,10 @@ public slots: public: QVector toolPath; QString toolname; - }; + +/* +// עṤ +void RegisterPreToolBox(RasterProcessTool* mainWindows); +*/ +#endif // !1 \ No newline at end of file diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/BaseCommonLibrary.write.1u.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/BaseCommonLibrary.write.1u.tlog index 66756fd..95a7672 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/BaseCommonLibrary.write.1u.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/BaseCommonLibrary.write.1u.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.command.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.command.1.tlog index 8ddafc5..d91d14f 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.command.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.command.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.read.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.read.1.tlog index 3076ccf..9f5b620 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.read.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.read.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.write.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.write.1.tlog index 8ea56a1..4c76711 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.write.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/CL.write.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/Cl.items.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/Cl.items.tlog index 389a1a3..95fe6ef 100644 --- a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/Cl.items.tlog +++ b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/Cl.items.tlog @@ -10,4 +10,6 @@ C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\BaseTool\S C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\BaseTool\stdafx.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\stdafx.obj C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\dllmain.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\dllmain.obj C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\pch.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\pch.obj +C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\ToolAbstract\QToolAbstract.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\QToolAbstract.obj +C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\qt\moc\moc_QToolAbstract.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\moc_QToolAbstract.obj C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\qt\moc\moc_QToolProcessBarDialog.cpp;C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\moc_QToolProcessBarDialog.obj diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.command.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.command.1.tlog index ba2a761..46c5d3a 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.command.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.command.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.read.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.read.1.tlog index b06768b..32b547d 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.read.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.read.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.secondary.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.secondary.1.tlog index 66d6567..e3a9ce0 100644 --- a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.secondary.1.tlog +++ b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.secondary.1.tlog @@ -1,4 +1,4 @@ -^C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\BASETOOL.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\DLLMAIN.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\ECHODATAFORMAT.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\FILEOPERATOR.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\GEOOPERATOR.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\IMAGEOPERATORBASE.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\LOGINFOCLS.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\MOC_QTOOLPROCESSBARDIALOG.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\PCH.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\QTOOLPROCESSBARDIALOG.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\RASTERTOOLBASE.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\SARSIMULATIONIMAGEL1.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\STDAFX.OBJ +^C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\BASETOOL.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\DLLMAIN.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\ECHODATAFORMAT.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\FILEOPERATOR.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\GEOOPERATOR.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\IMAGEOPERATORBASE.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\LOGINFOCLS.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\MOC_QTOOLABSTRACT.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\MOC_QTOOLPROCESSBARDIALOG.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\PCH.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\QTOOLABSTRACT.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\QTOOLPROCESSBARDIALOG.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\RASTERTOOLBASE.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\SARSIMULATIONIMAGEL1.OBJ|C:\USERS\30453\DESKTOP\RASTERTOOL\RASTERPROCESSTOOL\BASECOMMONLIBRARY\X64\RELEASE\STDAFX.OBJ C:\Users\30453\Desktop\RasterTool\RasterProcessTool\LAMPSARProcessProgram\x64\Release\BaseCommonLibrary.lib C:\Users\30453\Desktop\RasterTool\RasterProcessTool\LAMPSARProcessProgram\x64\Release\BaseCommonLibrary.EXP C:\Users\30453\Desktop\RasterTool\RasterProcessTool\BaseCommonLibrary\x64\Release\BaseCommonLibrary.IPDB diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.write.1.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.write.1.tlog index c9199bc..6328b8c 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.write.1.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/link.write.1.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.read.1u.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.read.1u.tlog index 9c6c4b5..a7dcd8c 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.read.1u.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.read.1u.tlog differ diff --git a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.write.1u.tlog b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.write.1u.tlog index ceb531f..ab16afa 100644 Binary files a/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.write.1u.tlog and b/BaseCommonLibrary/x64/Release/BaseComm.872ecd6f.tlog/moc.write.1u.tlog differ diff --git a/BaseCommonLibrary/x64/Release/qt/qmake/qtvars.pro b/BaseCommonLibrary/x64/Release/qt/qmake/qtvars.pro index 613685b..d455171 100644 --- a/BaseCommonLibrary/x64/Release/qt/qmake/qtvars.pro +++ b/BaseCommonLibrary/x64/Release/qt/qmake/qtvars.pro @@ -34,43 +34,3 @@ CONFIG += no_fixpath QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts CONFIG += no_fixpath QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts -CONFIG += no_fixpath -QT = core xml sql opengl gui svg xmlpatterns widgets location positioning openglextensions charts diff --git a/BaseToolBox/BaseToolBox.cpp b/BaseToolBox/BaseToolBox.cpp deleted file mode 100644 index b6903c7..0000000 --- a/BaseToolBox/BaseToolBox.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include "BaseToolBox.h" - -BaseToolBox::BaseToolBox() -{ -} diff --git a/GPUBaseLib/GPUBaseLib.vcxproj b/GPUBaseLib/GPUBaseLib.vcxproj new file mode 100644 index 0000000..2a56d4e --- /dev/null +++ b/GPUBaseLib/GPUBaseLib.vcxproj @@ -0,0 +1,148 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + + + + + + + + 17.0 + Win32Proj + {b8b40c54-f7fe-4809-b6fb-8bc014570d7b} + GPUBaseLib + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + DynamicLibrary + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + ..\BaseCommonLibrary;..\BaseCommonLibrary\BaseTool;..\BaseCommonLibrary\ToolAbstract;.;$(VC_IncludePath);$(WindowsSDK_IncludePath) + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;GPUBASELIB_API;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + true + compute_86,sm_86 + + + + + + + \ No newline at end of file diff --git a/GPUBaseLib/GPUBaseLib.vcxproj.filters b/GPUBaseLib/GPUBaseLib.vcxproj.filters new file mode 100644 index 0000000..bce8e49 --- /dev/null +++ b/GPUBaseLib/GPUBaseLib.vcxproj.filters @@ -0,0 +1,33 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {36bccaca-86b9-48c3-97b1-376ee3555915} + + + + + GPUTool + + + + + GPUTool + + + 头文件 + + + \ No newline at end of file diff --git a/GPUBaseLib/GPUTool/GPUBaseLibAPI.h b/GPUBaseLib/GPUTool/GPUBaseLibAPI.h new file mode 100644 index 0000000..e85e0b4 --- /dev/null +++ b/GPUBaseLib/GPUTool/GPUBaseLibAPI.h @@ -0,0 +1,12 @@ +#pragma once +#ifndef GPUBaseLib_H_ +#define GPUBaseLib_H_ + +#ifdef GPUBASELIB_API +#define GPUBASELIBAPI __declspec(dllexport) +#else +#define GPUBASELIBAPI __declspec(dllimport) +#endif + + +#endif // !GPUBaseLib_H_ diff --git a/LAMPSARProcessProgram/GPUTool/GPUTool.cu b/GPUBaseLib/GPUTool/GPUTool.cu similarity index 100% rename from LAMPSARProcessProgram/GPUTool/GPUTool.cu rename to GPUBaseLib/GPUTool/GPUTool.cu diff --git a/LAMPSARProcessProgram/GPUTool/GPUTool.cuh b/GPUBaseLib/GPUTool/GPUTool.cuh similarity index 54% rename from LAMPSARProcessProgram/GPUTool/GPUTool.cuh rename to GPUBaseLib/GPUTool/GPUTool.cuh index ff4bbf9..ebd4aec 100644 --- a/LAMPSARProcessProgram/GPUTool/GPUTool.cuh +++ b/GPUBaseLib/GPUTool/GPUTool.cuh @@ -1,6 +1,6 @@ #ifndef _GPUTOOL_H_ #define _GPUTOOL_H_ - +#include "GPUBaseLibAPI.h" #include "BaseConstVariable.h" #ifdef __CUDANVCC___ @@ -21,8 +21,7 @@ #define SHAREMEMORY_FLOAT_HALF 6144 #define SHAREMEMORY_FLOAT_HALF_STEP 24 -// ӡGPU -void printDeviceInfo(int deviceId); + enum LAMPGPUDATETYPE { @@ -70,38 +69,39 @@ extern __global__ void CUDAKernel_MemsetBlock(cuComplex* data, cuComplex init0, extern __global__ void CUDAKernel_MemsetBlock(float* data, float init0, long len); - +// ӡGPU +extern "C" void GPUBASELIBAPI printDeviceInfo(int deviceId); //  -extern "C" void checkCudaError(cudaError_t err, const char* msg); +extern "C" void GPUBASELIBAPI checkCudaError(cudaError_t err, const char* msg); // GPU ڴ溯 -extern "C" void* mallocCUDAHost( long memsize); // ڴ -extern "C" void FreeCUDAHost(void* ptr); -extern "C" void* mallocCUDADevice( long memsize); // GPUڴ -extern "C" void FreeCUDADevice(void* ptr); -extern "C" void HostToDevice(void* hostptr, void* deviceptr, long memsize);//GPU ڴת 豸 -> GPU -extern "C" void DeviceToHost(void* hostptr, void* deviceptr, long memsize);//GPU ڴת GPU -> 豸 -extern "C" void DeviceToDevice(void* s_deviceptr, void* t_deviceptr, long memsize);//GPU ڴת GPU -> 豸 +extern "C" void* GPUBASELIBAPI mallocCUDAHost( long memsize); // ڴ +extern "C" void GPUBASELIBAPI FreeCUDAHost(void* ptr); +extern "C" void* GPUBASELIBAPI mallocCUDADevice( long memsize); // GPUڴ +extern "C" void GPUBASELIBAPI FreeCUDADevice(void* ptr); +extern "C" void GPUBASELIBAPI HostToDevice(void* hostptr, void* deviceptr, long memsize);//GPU ڴת 豸 -> GPU +extern "C" void GPUBASELIBAPI DeviceToHost(void* hostptr, void* deviceptr, long memsize);//GPU ڴת GPU -> 豸 +extern "C" void GPUBASELIBAPI DeviceToDevice(void* s_deviceptr, void* t_deviceptr, long memsize);//GPU ڴת GPU -> 豸 -extern "C" void CUDA_MemsetBlock(cuComplex* data, cuComplex init0, long len); +extern "C" void GPUBASELIBAPI CUDA_MemsetBlock(cuComplex* data, cuComplex init0, long len); // ʸ㺯 -extern "C" void CUDAdistanceAB(float* Ax, float* Ay, float* Az, float* Bx, float* By, float* Bz, float* R, long member); -extern "C" void CUDABdistanceAs(float* Ax, float* Ay, float* Az, float Bx, float By, float Bz, float* R, long member); -extern "C" void CUDAmake_VectorA_B(float sX, float sY, float sZ, float* tX, float* tY, float* tZ, float* RstX, float* RstY, float* RstZ, long member); -extern "C" void CUDANorm_Vector(float* Vx, float* Vy, float* Vz, float* R, long member); -extern "C" void CUDAcosAngle_VA_AB(float* Ax, float* Ay, float* Az, float* Bx, float* By, float* Bz, float* anglecos, long len); +extern "C" void GPUBASELIBAPI CUDAdistanceAB(float* Ax, float* Ay, float* Az, float* Bx, float* By, float* Bz, float* R, long member); +extern "C" void GPUBASELIBAPI CUDABdistanceAs(float* Ax, float* Ay, float* Az, float Bx, float By, float Bz, float* R, long member); +extern "C" void GPUBASELIBAPI CUDAmake_VectorA_B(float sX, float sY, float sZ, float* tX, float* tY, float* tZ, float* RstX, float* RstY, float* RstZ, long member); +extern "C" void GPUBASELIBAPI CUDANorm_Vector(float* Vx, float* Vy, float* Vz, float* R, long member); +extern "C" void GPUBASELIBAPI CUDAcosAngle_VA_AB(float* Ax, float* Ay, float* Az, float* Bx, float* By, float* Bz, float* anglecos, long len); // ֵ㷨 -extern "C" void CUDAGridPointLinearInterp1(float* v, float* q, float* qv,long xlen, long qlen); -extern "C" void CUDADSin(double* y, double* X, int n); -extern "C" void CUDADCos(double* y, double* X, int n); +extern "C" void GPUBASELIBAPI CUDAGridPointLinearInterp1(float* v, float* q, float* qv,long xlen, long qlen); +extern "C" void GPUBASELIBAPI CUDADSin(double* y, double* X, int n); +extern "C" void GPUBASELIBAPI CUDADCos(double* y, double* X, int n); // ֿ -extern "C" long NextBlockPad(long num,long blocksize); +extern "C" long GPUBASELIBAPI NextBlockPad(long num,long blocksize); -extern "C" void PrintLasterError(const char* s); +extern "C" void GPUBASELIBAPI PrintLasterError(const char* s); #endif diff --git a/LAMPDataProcessEXE/LAMPDataProcessEXE.cpp b/LAMPDataProcessEXE/LAMPDataProcessEXE.cpp new file mode 100644 index 0000000..56b112d --- /dev/null +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.cpp @@ -0,0 +1,10 @@ +#include "LAMPDataProcessEXE.h" + +LAMPDataProcessEXE::LAMPDataProcessEXE(QWidget *parent) + : QMainWindow(parent) +{ + ui.setupUi(this); +} + +LAMPDataProcessEXE::~LAMPDataProcessEXE() +{} diff --git a/LAMPDataProcessEXE/LAMPDataProcessEXE.h b/LAMPDataProcessEXE/LAMPDataProcessEXE.h new file mode 100644 index 0000000..aba9c64 --- /dev/null +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include "ui_LAMPDataProcessEXE.h" + +class LAMPDataProcessEXE : public QMainWindow +{ + Q_OBJECT + +public: + LAMPDataProcessEXE(QWidget *parent = nullptr); + ~LAMPDataProcessEXE(); + +private: + Ui::LAMPDataProcessEXEClass ui; +}; diff --git a/LAMPDataProcessEXE/LAMPDataProcessEXE.qrc b/LAMPDataProcessEXE/LAMPDataProcessEXE.qrc new file mode 100644 index 0000000..acc808f --- /dev/null +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.qrc @@ -0,0 +1,4 @@ + + + + diff --git a/LAMPDataProcessEXE/LAMPDataProcessEXE.ui b/LAMPDataProcessEXE/LAMPDataProcessEXE.ui new file mode 100644 index 0000000..9ba9ad4 --- /dev/null +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.ui @@ -0,0 +1,28 @@ + + LAMPDataProcessEXEClass + + + LAMPDataProcessEXEClass + + + + 0 + 0 + 600 + 400 + + + + LAMPDataProcessEXE + + + + + + + + + + + + diff --git a/BaseToolBox/BaseToolBox.vcxproj b/LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj similarity index 71% rename from BaseToolBox/BaseToolBox.vcxproj rename to LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj index eaaf06b..1f13d0c 100644 --- a/BaseToolBox/BaseToolBox.vcxproj +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj @@ -11,22 +11,21 @@ - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45} + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4} QtVS_v304 10.0 10.0 - $(MSBuildProjectDirectory)\QtMsBuild + $(MSBuildProjectDirectory)\QtMsBuild - DynamicLibrary + Application v143 true Unicode - DynamicLibrary + Application v143 false true @@ -38,19 +37,16 @@ tools_qt5 - core + core;gui;widgets debug tools_qt5 - core + core;gui;widgets release - - + + @@ -66,11 +62,18 @@ + ..\BaseCommonLibrary;..\BaseCommonLibrary\BaseTool;..\BaseCommonLibrary\ToolAbstract;..\GPUBaseLib\GPUTool;..\LAMPSARProcessProgram;$(VC_IncludePath);$(WindowsSDK_IncludePath) + true + + + true + stdc11 + + true - BASETOOLBOX_LIB;%(PreprocessorDefinitions) Level3 true true @@ -83,7 +86,6 @@ true - BASETOOLBOX_LIB;%(PreprocessorDefinitions) Level3 true true @@ -91,17 +93,26 @@ true - Windows + Console false true true - - - - + + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + diff --git a/BaseToolBox/BaseToolBox.vcxproj.filters b/LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj.filters similarity index 75% rename from BaseToolBox/BaseToolBox.vcxproj.filters rename to LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj.filters index de32790..f847e34 100644 --- a/BaseToolBox/BaseToolBox.vcxproj.filters +++ b/LAMPDataProcessEXE/LAMPDataProcessEXE.vcxproj.filters @@ -23,15 +23,22 @@ - - Header Files - - + + Resource Files + + + Form Files + + Header Files - + Source Files - - + + + Source Files + + + \ No newline at end of file diff --git a/LAMPDataProcessEXE/main.cpp b/LAMPDataProcessEXE/main.cpp new file mode 100644 index 0000000..0242e3a --- /dev/null +++ b/LAMPDataProcessEXE/main.cpp @@ -0,0 +1,48 @@ +#include "LAMPDataProcessEXE.h" +#include +#include +#include +#include +#include +#include +#include "RasterProcessTool.h" + + +// ԶϢ +void customMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg) +{ + QByteArray localMsg = msg.toLocal8Bit(); + const char* file = context.file ? context.file : ""; + const char* function = context.function ? context.function : ""; + QString dateTime = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz"); + + QFile outFile("application.log"); + outFile.open(QIODevice::WriteOnly | QIODevice::Append); + QTextStream ts(&outFile); + + switch (type) { + case QtDebugMsg: + ts << dateTime << " Debug: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; + break; + case QtInfoMsg: + ts << dateTime << " Info: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; + break; + case QtWarningMsg: + ts << dateTime << " Warning: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; + break; + case QtCriticalMsg: + ts << dateTime << " Critical: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; + break; + case QtFatalMsg: + ts << dateTime << " Fatal: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; + abort(); + } +} + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + RasterProcessTool w; + w.show(); + return a.exec(); +} diff --git a/LAMPSARProcessProgram/RasterProcessTool.cpp b/LAMPSARProcessProgram/RasterProcessTool.cpp index 8d3f3b4..10d33f3 100644 --- a/LAMPSARProcessProgram/RasterProcessTool.cpp +++ b/LAMPSARProcessProgram/RasterProcessTool.cpp @@ -1,16 +1,13 @@ #include "RasterProcessTool.h" #include -#include "QMergeRasterProcessDialog.h" -#include "QImportGF3StripL1ADataset.h" -#include "QComplex2AmpPhase.h" -#include "QRDOrthProcessClass.h" -#include "QOrthSlrRaster.h" - +#include +#include "QToolAbstract.h" +#include "ui_RasterProcessTool.h" RasterProcessTool::RasterProcessTool(QWidget *parent) - : QMainWindow(parent) + : ui(new Ui::RasterProcessToolClass), QMainWindow(parent) { - ui.setupUi(this); + ui->setupUi(this); QObject::connect(this, SIGNAL(addBoxToolItemSIGNAL(QToolAbstract*)), this, SLOT(addBoxToolItemSLOT(QToolAbstract*))); } @@ -26,18 +23,18 @@ void RasterProcessTool::addBoxToolItemSLOT(QToolAbstract* item) QTreeWidgetItem* parentItem = findOrCreateParentItem(xnodepath); // øǷѾ toolButton - if (parentItem && ui.treeWidgetToolBox->itemWidget(parentItem, 0) == nullptr) { + if (parentItem && ui->treeWidgetToolBox->itemWidget(parentItem, 0) == nullptr) { QTreeWidgetItem* actionItem = new QTreeWidgetItem(parentItem); parentItem->addChild(actionItem); QIcon icon(QString::fromUtf8(":/RasterProcessTool/toolicon")); - QPushButton* button = new QPushButton(ui.treeWidgetToolBox); + QPushButton* button = new QPushButton(ui->treeWidgetToolBox); button->setIcon(icon); button->setText(toolName); button->setLayoutDirection(Qt::LeftToRight); button->setStyleSheet("QPushButton { text-align: left; }"); - ui.treeWidgetToolBox->setItemWidget(actionItem, 0, button); + ui->treeWidgetToolBox->setItemWidget(actionItem, 0, button); connect(button, SIGNAL(clicked()), item, SLOT(excute())); - item->setParent(ui.treeWidgetToolBox); + item->setParent(ui->treeWidgetToolBox); qDebug() << "ToolButton bound to parent:" << actionItem->text(0); } else { @@ -72,15 +69,15 @@ QTreeWidgetItem* RasterProcessTool::findOrCreateParentItem( QVector& pa // Ҷڵ㣬ûҵ򴴽 QTreeWidgetItem* RasterProcessTool::findOrCreateTopLevelItem( QString& name) { - for (int i = 0; i < ui.treeWidgetToolBox->topLevelItemCount(); ++i) { - QTreeWidgetItem* item = ui.treeWidgetToolBox->topLevelItem(i); + for (int i = 0; i < ui->treeWidgetToolBox->topLevelItemCount(); ++i) { + QTreeWidgetItem* item = ui->treeWidgetToolBox->topLevelItem(i); if (item->text(0) == name) { return item; } } // ûҵµĶڵ - QTreeWidgetItem* newItem = new QTreeWidgetItem(ui.treeWidgetToolBox); + QTreeWidgetItem* newItem = new QTreeWidgetItem(ui->treeWidgetToolBox); QIcon icon(QString::fromUtf8(":/RasterProcessTool/toolboxIcon")); newItem->setIcon(0,icon); newItem->setTextAlignment(0, Qt::AlignLeft); diff --git a/LAMPSARProcessProgram/RasterProcessTool.h b/LAMPSARProcessProgram/RasterProcessTool.h index d747417..858d1ac 100644 --- a/LAMPSARProcessProgram/RasterProcessTool.h +++ b/LAMPSARProcessProgram/RasterProcessTool.h @@ -1,10 +1,14 @@ #pragma once - +#include "RasterProcessToolWidgetAPI.h" #include -#include "ui_RasterProcessTool.h" #include "QToolAbstract.h" -class RasterProcessTool : public QMainWindow +namespace Ui { + class RasterProcessToolClass; +} + + +class RASTERPROCESSTOOLWIDGET_EXPORT RasterProcessTool : public QMainWindow { Q_OBJECT @@ -15,9 +19,6 @@ public: signals: void addBoxToolItemSIGNAL(QToolAbstract* item); - - - public slots: void addBoxToolItemSLOT(QToolAbstract* item); QTreeWidgetItem* findOrCreateParentItem( QVector& path); @@ -25,5 +26,5 @@ public slots: QTreeWidgetItem* findChildItemByName(QTreeWidgetItem* parentItem, QString& name); private: - Ui::RasterProcessToolClass ui; + Ui::RasterProcessToolClass* ui; }; diff --git a/LAMPSARProcessProgram/RasterProcessTool.sln b/LAMPSARProcessProgram/RasterProcessTool.sln index 77355dc..caeaab6 100644 --- a/LAMPSARProcessProgram/RasterProcessTool.sln +++ b/LAMPSARProcessProgram/RasterProcessTool.sln @@ -3,11 +3,38 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.10.35122.118 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RasterProcessTool", "RasterProcessTool.vcxproj", "{7EF67DAA-DBC0-4B7F-80E8-11B4D2CB7EC2}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "RasterProcessToolWidget", "RasterProcessTool.vcxproj", "{7EF67DAA-DBC0-4B7F-80E8-11B4D2CB7EC2}" + ProjectSection(ProjectDependencies) = postProject + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} = {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} + EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BaseCommonLibrary", "..\BaseCommonLibrary\BaseCommonLibrary.vcxproj", "{872ECD6F-30E3-4A1B-B17C-15E87D373FF6}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BaseToolBox", "..\BaseToolBox\BaseToolBox.vcxproj", "{6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "BaseToolbox", "..\Toolbox\BaseToolbox\BaseToolbox.vcxproj", "{070C157E-3C30-4E2B-A80C-CBC7B74DF03F}" + ProjectSection(ProjectDependencies) = postProject + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} = {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LAMPScatterTool", "..\Toolbox\LAMPScatterTool\LAMPScatterTool.vcxproj", "{D603A623-132D-4304-AB03-638FC438F084}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SimulationSARTool", "..\Toolbox\SimulationSARTool\SimulationSARTool.vcxproj", "{ED06DFCD-4B9F-41F7-8F25-1823C2398142}" + ProjectSection(ProjectDependencies) = postProject + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} = {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ToolBox", "ToolBox", "{41B1F23D-9119-47A7-B102-34022AF83CDA}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BaseLib", "BaseLib", "{2768F9D6-D410-4E88-A479-8336DAF97072}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ImageshowTool", "..\Toolbox\ImageshowTool\ImageshowTool.vcxproj", "{8C8CA066-A93A-4098-9A46-B855EFEAADF2}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ALLRelease", "..\ALLRelease\ALLRelease.vcxproj", "{8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MainWidget", "MainWidget", "{6505E2BA-06A2-447B-BC85-8CF1A81359BC}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LAMPDataProcessEXE", "..\LAMPDataProcessEXE\LAMPDataProcessEXE.vcxproj", "{4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "GPUBaseLib", "..\GPUBaseLib\GPUBaseLib.vcxproj", "{B8B40C54-F7FE-4809-B6FB-8BC014570D7B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -33,18 +60,75 @@ Global {872ECD6F-30E3-4A1B-B17C-15E87D373FF6}.Release|x64.Build.0 = Release|x64 {872ECD6F-30E3-4A1B-B17C-15E87D373FF6}.Release|x86.ActiveCfg = Release|Win32 {872ECD6F-30E3-4A1B-B17C-15E87D373FF6}.Release|x86.Build.0 = Release|Win32 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Debug|x64.ActiveCfg = Debug|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Debug|x64.Build.0 = Debug|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Debug|x86.ActiveCfg = Debug|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Debug|x86.Build.0 = Debug|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Release|x64.ActiveCfg = Release|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Release|x64.Build.0 = Release|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Release|x86.ActiveCfg = Release|x64 - {6A5B1698-B96E-497F-8DF4-7EC8F67DCE45}.Release|x86.Build.0 = Release|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Debug|x64.ActiveCfg = Debug|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Debug|x64.Build.0 = Debug|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Debug|x86.ActiveCfg = Debug|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Debug|x86.Build.0 = Debug|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Release|x64.ActiveCfg = Release|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Release|x64.Build.0 = Release|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Release|x86.ActiveCfg = Release|x64 + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F}.Release|x86.Build.0 = Release|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Debug|x64.ActiveCfg = Debug|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Debug|x64.Build.0 = Debug|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Debug|x86.ActiveCfg = Debug|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Debug|x86.Build.0 = Debug|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Release|x64.ActiveCfg = Release|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Release|x64.Build.0 = Release|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Release|x86.ActiveCfg = Release|x64 + {D603A623-132D-4304-AB03-638FC438F084}.Release|x86.Build.0 = Release|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Debug|x64.ActiveCfg = Debug|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Debug|x64.Build.0 = Debug|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Debug|x86.ActiveCfg = Debug|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Debug|x86.Build.0 = Debug|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Release|x64.ActiveCfg = Release|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Release|x64.Build.0 = Release|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Release|x86.ActiveCfg = Release|x64 + {ED06DFCD-4B9F-41F7-8F25-1823C2398142}.Release|x86.Build.0 = Release|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Debug|x64.ActiveCfg = Debug|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Debug|x64.Build.0 = Debug|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Debug|x86.ActiveCfg = Debug|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Debug|x86.Build.0 = Debug|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Release|x64.ActiveCfg = Release|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Release|x64.Build.0 = Release|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Release|x86.ActiveCfg = Release|x64 + {8C8CA066-A93A-4098-9A46-B855EFEAADF2}.Release|x86.Build.0 = Release|x64 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Debug|x64.ActiveCfg = Debug|x64 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Debug|x64.Build.0 = Debug|x64 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Debug|x86.ActiveCfg = Debug|Win32 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Debug|x86.Build.0 = Debug|Win32 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Release|x64.ActiveCfg = Release|x64 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Release|x64.Build.0 = Release|x64 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Release|x86.ActiveCfg = Release|Win32 + {8A71D19D-9AC6-42E9-81EC-9E82AF8075B8}.Release|x86.Build.0 = Release|Win32 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Debug|x64.ActiveCfg = Debug|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Debug|x64.Build.0 = Debug|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Debug|x86.ActiveCfg = Debug|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Debug|x86.Build.0 = Debug|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Release|x64.ActiveCfg = Release|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Release|x64.Build.0 = Release|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Release|x86.ActiveCfg = Release|x64 + {4E6E79A3-048C-4FB4-BBB0-43C518A3E6D4}.Release|x86.Build.0 = Release|x64 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Debug|x64.ActiveCfg = Debug|x64 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Debug|x64.Build.0 = Debug|x64 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Debug|x86.ActiveCfg = Debug|Win32 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Debug|x86.Build.0 = Debug|Win32 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Release|x64.ActiveCfg = Release|x64 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Release|x64.Build.0 = Release|x64 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Release|x86.ActiveCfg = Release|Win32 + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B}.Release|x86.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {7EF67DAA-DBC0-4B7F-80E8-11B4D2CB7EC2} = {6505E2BA-06A2-447B-BC85-8CF1A81359BC} + {872ECD6F-30E3-4A1B-B17C-15E87D373FF6} = {2768F9D6-D410-4E88-A479-8336DAF97072} + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F} = {41B1F23D-9119-47A7-B102-34022AF83CDA} + {D603A623-132D-4304-AB03-638FC438F084} = {41B1F23D-9119-47A7-B102-34022AF83CDA} + {ED06DFCD-4B9F-41F7-8F25-1823C2398142} = {41B1F23D-9119-47A7-B102-34022AF83CDA} + {8C8CA066-A93A-4098-9A46-B855EFEAADF2} = {41B1F23D-9119-47A7-B102-34022AF83CDA} + {B8B40C54-F7FE-4809-B6FB-8BC014570D7B} = {2768F9D6-D410-4E88-A479-8336DAF97072} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {179F0A62-C631-4667-AD03-3780ADE09F41} EndGlobalSection diff --git a/LAMPSARProcessProgram/RasterProcessTool.vcxproj b/LAMPSARProcessProgram/RasterProcessTool.vcxproj index 02533a1..eee1bb5 100644 --- a/LAMPSARProcessProgram/RasterProcessTool.vcxproj +++ b/LAMPSARProcessProgram/RasterProcessTool.vcxproj @@ -16,6 +16,7 @@ 10.0 10.0 $(MSBuildProjectDirectory)\QtMsBuild + RasterProcessToolWidget @@ -25,7 +26,7 @@ Unicode - Application + DynamicLibrary v143 false true @@ -68,13 +69,13 @@ .\SimulationSAR;.\GF3ProcessToolbox;.\BaseTool;$(IncludePath) - .\ToolBox\LAMPScatterTool;.\GPUTool;.\ToolBox\SimulationSAR;.\ToolBox\BaseToolbox;..\BaseCommonLibrary\BaseTool;$(oneMKLIncludeDir);$(IncludePath) + ..\BaseCommonLibrary;..\BaseCommonLibrary\BaseTool;..\GPUBaseLib\GPUTool;..\BaseCommonLibrary\ToolAbstract;$(oneMKLIncludeDir);$(IncludePath) C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64;$(ReferencePath) true - _CRT_SECURE_NO_WARNINGS;_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING;%(PreprocessorDefinitions) + RASTERPROCESSTOOLWIDGET_LIB;_CRT_SECURE_NO_WARNINGS;_SILENCE_NONFLOATING_COMPLEX_DEPRECATION_WARNING;%(PreprocessorDefinitions) true Disabled false @@ -122,116 +123,28 @@ - - - input - %(Filename).moc - input - %(Filename).moc - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + {b8b40c54-f7fe-4809-b6fb-8bc014570d7b} + + + + diff --git a/LAMPSARProcessProgram/RasterProcessTool.vcxproj.filters b/LAMPSARProcessProgram/RasterProcessTool.vcxproj.filters index 38832c3..a791627 100644 --- a/LAMPSARProcessProgram/RasterProcessTool.vcxproj.filters +++ b/LAMPSARProcessProgram/RasterProcessTool.vcxproj.filters @@ -24,21 +24,6 @@ {3f0381bd-7381-4873-8654-e44acf0acaa1} - - {c49d5cbf-5e46-46f8-880c-1f1f9d6e32e9} - - - {dec5c630-193b-4820-a36a-e1dada57e814} - - - {cc849de4-c841-40e3-96bc-54ebe034fa4a} - - - {c019ab22-835f-44bd-8689-f5550c9c690d} - - - {c39dcd9f-dfd6-4d94-8912-7a3f5f719385} - @@ -53,255 +38,28 @@ Source Files - - ToolBox\Imageshow - - + Source Files - - Source Files - - - Source Files - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\Imageshow - - - ToolBox\Imageshow - - - ToolBox\LAMPScatter - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\LAMPScatter - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - GPUTool - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - - + Header Files - - Header Files - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\Imageshow - - - ToolBox\Imageshow - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\BaseToolbox - - - ToolBox\Imageshow - - - ToolBox\Imageshow - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - - - GPUTool - - - ToolBox\SimulationSAR - - - ToolBox\SimulationSAR - + + Form Files + + + + + Header Files + \ No newline at end of file diff --git a/LAMPSARProcessProgram/RasterProcessToolWidgetAPI.h b/LAMPSARProcessProgram/RasterProcessToolWidgetAPI.h new file mode 100644 index 0000000..cd79734 --- /dev/null +++ b/LAMPSARProcessProgram/RasterProcessToolWidgetAPI.h @@ -0,0 +1,11 @@ +#pragma once +#ifndef RASTERPROCESSTOOLWIDGET_H_ +#define RASTERPROCESSTOOLWIDGET_H_ +#include + +# if defined(RASTERPROCESSTOOLWIDGET_LIB) +# define RASTERPROCESSTOOLWIDGET_EXPORT Q_DECL_EXPORT +# else +# define RASTERPROCESSTOOLWIDGET_EXPORT Q_DECL_IMPORT +# endif +#endif diff --git a/LAMPSARProcessProgram/RegisterToolbox.cpp b/LAMPSARProcessProgram/RegisterToolbox.cpp deleted file mode 100644 index 15c84f2..0000000 --- a/LAMPSARProcessProgram/RegisterToolbox.cpp +++ /dev/null @@ -1,190 +0,0 @@ -#include "RegisterToolbox.h" -#include "QToolAbstract.h" -#include "QMergeRasterProcessDialog.h" -#include "QImportGF3StripL1ADataset.h" -#include "QComplex2AmpPhase.h" -#include "QRDOrthProcessClass.h" -#include "QOrthSlrRaster.h" -#include "QImageSARRFPC.h" -#include "QSimulationBPImage.h" -#include "DEMLLA2XYZTool.h" -#include "QClipRasterByRowCols.h" - -GF3ImportDataToolButton::GF3ImportDataToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8"ݵ뵼"); - this->toolname = QString(u8"GF3"); -} - -GF3ImportDataToolButton::~GF3ImportDataToolButton() -{ -} - -void GF3ImportDataToolButton::excute() -{ - QImportGF3StripL1ADataset* dialog = new QImportGF3StripL1ADataset(); - dialog->show(); -} - -Complex2AmpPhaseToolButton::Complex2AmpPhaseToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"ת"); -} - -Complex2AmpPhaseToolButton::~Complex2AmpPhaseToolButton() -{ -} - -void Complex2AmpPhaseToolButton::excute() -{ - QComplex2AmpPhase* dialog = new QComplex2AmpPhase(); - dialog->show(); - -} - -QRDOrthProcessClassToolButton::QRDOrthProcessClassToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"ұ"); -} - -QRDOrthProcessClassToolButton::~QRDOrthProcessClassToolButton() -{ -} - -void QRDOrthProcessClassToolButton::excute() -{ - QRDOrthProcessClass* dialog = new QRDOrthProcessClass(); - dialog->show(); -} - -QOrthSlrRasterToolButton::QOrthSlrRasterToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"ͼ"); -} - -QOrthSlrRasterToolButton::~QOrthSlrRasterToolButton() -{ -} - -void QOrthSlrRasterToolButton::excute() -{ - QOrthSlrRaster* dialog = new QOrthSlrRaster(); - dialog->show(); -} - -MergeRasterProcessToolButton::MergeRasterProcessToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"ͼϲ"); -} - -MergeRasterProcessToolButton::~MergeRasterProcessToolButton() -{ -} - -void MergeRasterProcessToolButton::excute() -{ - QMergeRasterProcessDialog* dialog = new QMergeRasterProcessDialog(); - dialog->show(); -} - -SARSimlulationRFPCToolButton::SARSimlulationRFPCToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8"湤߿"); - this->toolname = QString(u8"RFPC"); -} - -SARSimlulationRFPCToolButton::~SARSimlulationRFPCToolButton() -{ -} - -void SARSimlulationRFPCToolButton::excute() -{ - - QImageSARRFPC* dialog = new QImageSARRFPC(); - dialog->show(); -} - -SARSimulationTBPImageToolButton::SARSimulationTBPImageToolButton(QWidget* parent) :QToolAbstract(parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8"񹤾߿"); - this->toolname = QString(u8"TimeBP"); -} - -SARSimulationTBPImageToolButton::~SARSimulationTBPImageToolButton() -{ -} - -void SARSimulationTBPImageToolButton::excute() -{ - QSimulationBPImage* dialog = new QSimulationBPImage; - dialog->show(); -} - -void RegisterPreToolBox(RasterProcessTool* mainWindows) -{ - GF3ImportDataToolButton* items1 = new GF3ImportDataToolButton(nullptr); - Complex2AmpPhaseToolButton* items2 = new Complex2AmpPhaseToolButton(nullptr); - QRDOrthProcessClassToolButton* items3 = new QRDOrthProcessClassToolButton(nullptr); - QOrthSlrRasterToolButton* items4 = new QOrthSlrRasterToolButton(nullptr); - MergeRasterProcessToolButton* items5 = new MergeRasterProcessToolButton(nullptr); - SARSimlulationRFPCToolButton* items6 = new SARSimlulationRFPCToolButton(nullptr); - SARSimulationTBPImageToolButton* items7 = new SARSimulationTBPImageToolButton(nullptr); - DEMLLA2XYZToolButton* items8 = new DEMLLA2XYZToolButton(nullptr); - ClipRasterByRowCols* items9 = new ClipRasterByRowCols(nullptr); - - emit mainWindows->addBoxToolItemSIGNAL(items1); - emit mainWindows->addBoxToolItemSIGNAL(items2); - emit mainWindows->addBoxToolItemSIGNAL(items3); - emit mainWindows->addBoxToolItemSIGNAL(items4); - emit mainWindows->addBoxToolItemSIGNAL(items5); - emit mainWindows->addBoxToolItemSIGNAL(items6); - emit mainWindows->addBoxToolItemSIGNAL(items7); - emit mainWindows->addBoxToolItemSIGNAL(items8); - emit mainWindows->addBoxToolItemSIGNAL(items9); - -} - -DEMLLA2XYZToolButton::DEMLLA2XYZToolButton(QWidget* parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"DEMת¶"); -} - -DEMLLA2XYZToolButton::~DEMLLA2XYZToolButton() -{ -} -void DEMLLA2XYZToolButton::excute() -{ - DEMLLA2XYZTool* dialog = new DEMLLA2XYZTool; - dialog->show(); -} - -ClipRasterByRowCols::ClipRasterByRowCols(QWidget* parent) -{ - this->toolPath = QVector(0); - this->toolPath.push_back(u8""); - this->toolname = QString(u8"üӰк"); -} - -ClipRasterByRowCols::~ClipRasterByRowCols() -{ - -} - -void ClipRasterByRowCols::excute() -{ - QClipRasterByRowCols* dialog = new QClipRasterByRowCols; - dialog->show(); -} diff --git a/LAMPSARProcessProgram/RegisterToolbox.h b/LAMPSARProcessProgram/RegisterToolbox.h deleted file mode 100644 index ee77b2b..0000000 --- a/LAMPSARProcessProgram/RegisterToolbox.h +++ /dev/null @@ -1,109 +0,0 @@ -#pragma once -#include "QToolAbstract.h" -#include "RasterProcessTool.h" - - -class GF3ImportDataToolButton : public QToolAbstract { - Q_OBJECT -public: - GF3ImportDataToolButton( QWidget* parent = nullptr); - ~GF3ImportDataToolButton(); -public slots: - virtual void excute() override; - -}; - -class Complex2AmpPhaseToolButton : public QToolAbstract { - Q_OBJECT -public: - Complex2AmpPhaseToolButton( QWidget* parent = nullptr); - ~Complex2AmpPhaseToolButton(); -public slots: - - virtual void excute() override; - -}; - -class QRDOrthProcessClassToolButton : public QToolAbstract { - Q_OBJECT -public: - QRDOrthProcessClassToolButton( QWidget* parent = nullptr); - ~QRDOrthProcessClassToolButton(); -public slots: - - virtual void excute() override; - -}; - -class QOrthSlrRasterToolButton : public QToolAbstract { - Q_OBJECT -public: - QOrthSlrRasterToolButton( QWidget* parent = nullptr); - ~QOrthSlrRasterToolButton(); -public slots: - virtual void excute() override; - -}; - -class MergeRasterProcessToolButton : public QToolAbstract { - Q_OBJECT -public: - MergeRasterProcessToolButton( QWidget* parent = nullptr); - ~MergeRasterProcessToolButton(); -public slots: - virtual void excute() override; - -}; - -class SARSimlulationRFPCToolButton : public QToolAbstract { - Q_OBJECT -public: - SARSimlulationRFPCToolButton( QWidget* parent = nullptr); - ~SARSimlulationRFPCToolButton(); -public slots: - virtual void excute() override; - -}; - -class SARSimulationTBPImageToolButton : public QToolAbstract { - Q_OBJECT -public: - SARSimulationTBPImageToolButton( QWidget* parent = nullptr); - ~SARSimulationTBPImageToolButton(); -public slots: - virtual void excute() override; - -}; - - -class DEMLLA2XYZToolButton : public QToolAbstract { - Q_OBJECT -public: - DEMLLA2XYZToolButton(QWidget* parent = nullptr); - ~DEMLLA2XYZToolButton(); -public slots: - virtual void excute() override; - -}; - - -class ClipRasterByRowCols :public QToolAbstract { - Q_OBJECT -public: - ClipRasterByRowCols(QWidget* parent = nullptr); - ~ClipRasterByRowCols(); -public slots: - - virtual void excute() override; -}; - - - - - - - - - - -void RegisterPreToolBox(RasterProcessTool* mainWindows); diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3PSTNClass.cpp b/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3PSTNClass.cpp deleted file mode 100644 index e69de29..0000000 diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3PSTNClass.h b/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3PSTNClass.h deleted file mode 100644 index 54ee933..0000000 --- a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3PSTNClass.h +++ /dev/null @@ -1,6 +0,0 @@ -#pragma once - - - - - diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GF3PSTNClass.cpp b/LAMPSARProcessProgram/ToolBox/SimulationSAR/GF3PSTNClass.cpp deleted file mode 100644 index c1ee0cb..0000000 --- a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GF3PSTNClass.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "GF3PSTNClass.h" diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.cpp b/LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.cpp rename to LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.cpp diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.h b/LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.h rename to LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.h diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.ui b/LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManageDialog.ui rename to LAMPSARProcessProgram/ToolBoxManager/PluginManageDialog.ui diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManager.cpp b/LAMPSARProcessProgram/ToolBoxManager/PluginManager.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManager.cpp rename to LAMPSARProcessProgram/ToolBoxManager/PluginManager.cpp diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManager.h b/LAMPSARProcessProgram/ToolBoxManager/PluginManager.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManager.h rename to LAMPSARProcessProgram/ToolBoxManager/PluginManager.h diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManagerAPI.h b/LAMPSARProcessProgram/ToolBoxManager/PluginManagerAPI.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/PluginManagerAPI.h rename to LAMPSARProcessProgram/ToolBoxManager/PluginManagerAPI.h diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/pluginBase.cpp b/LAMPSARProcessProgram/ToolBoxManager/pluginBase.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/pluginBase.cpp rename to LAMPSARProcessProgram/ToolBoxManager/pluginBase.cpp diff --git a/LAMPSARProcessProgram/ToolBox/ToolBoxManager/pluginBase.h b/LAMPSARProcessProgram/ToolBoxManager/pluginBase.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/ToolBoxManager/pluginBase.h rename to LAMPSARProcessProgram/ToolBoxManager/pluginBase.h diff --git a/LAMPSARProcessProgram/main.cpp b/LAMPSARProcessProgram/main.cpp index e756730..6ae5b0e 100644 --- a/LAMPSARProcessProgram/main.cpp +++ b/LAMPSARProcessProgram/main.cpp @@ -1,6 +1,5 @@ #include "RasterProcessTool.h" #include -#include "RegisterToolbox.h" #include #include @@ -8,48 +7,17 @@ #include #include - - -// ԶϢ -void customMessageHandler(QtMsgType type, const QMessageLogContext& context, const QString& msg) -{ - QByteArray localMsg = msg.toLocal8Bit(); - const char* file = context.file ? context.file : ""; - const char* function = context.function ? context.function : ""; - QString dateTime = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss.zzz"); - - QFile outFile("application.log"); - outFile.open(QIODevice::WriteOnly | QIODevice::Append); - QTextStream ts(&outFile); - - switch (type) { - case QtDebugMsg: - ts << dateTime << " Debug: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; - break; - case QtInfoMsg: - ts << dateTime << " Info: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; - break; - case QtWarningMsg: - ts << dateTime << " Warning: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; - break; - case QtCriticalMsg: - ts << dateTime << " Critical: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n"; - break; - case QtFatalMsg: - ts << dateTime << " Fatal: " << localMsg.constData() << " (" << file << ":" << context.line << ", " << function << ")\n" ; - abort(); - } -} -int main(int argc, char *argv[]) -{ - QApplication a(argc, argv); - //qInstallMessageHandler(customMessageHandler); - - RasterProcessTool* w=new RasterProcessTool;// - RegisterPreToolBox(w); - w->show(); - return a.exec(); -} +// +// +//int main(int argc, char *argv[]) +//{ +// QApplication a(argc, argv); +// //qInstallMessageHandler(customMessageHandler); +// +// RasterProcessTool* w=new RasterProcessTool;// +// w->show(); +// return a.exec(); +//} diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..d1d12ad --- /dev/null +++ b/Readme.md @@ -0,0 +1,4 @@ +# 工具箱插件的开发 +1. 将编译好的工具的dll 放入 Toolbox 文件夹中,且dll 命名以 PluginTool_ 开头 +2. 软件会自动检索对应的 PluginTool_ 开头的dll ,并自动加载到程序中 + diff --git a/Toolbox/BaseToolbox/BaseToolbox.cpp b/Toolbox/BaseToolbox/BaseToolbox.cpp new file mode 100644 index 0000000..0a22e44 --- /dev/null +++ b/Toolbox/BaseToolbox/BaseToolbox.cpp @@ -0,0 +1,5 @@ +#include "BaseToolbox.h" + +BaseToolbox::BaseToolbox() +{ +} diff --git a/BaseToolBox/BaseToolBox.h b/Toolbox/BaseToolbox/BaseToolbox.h similarity index 51% rename from BaseToolBox/BaseToolBox.h rename to Toolbox/BaseToolbox/BaseToolbox.h index 93d819a..80fb88b 100644 --- a/BaseToolBox/BaseToolBox.h +++ b/Toolbox/BaseToolbox/BaseToolbox.h @@ -2,8 +2,8 @@ #include "basetoolbox_global.h" -class BASETOOLBOX_EXPORT BaseToolBox +class BASETOOLBOX_EXPORT BaseToolbox { public: - BaseToolBox(); + BaseToolbox(); }; diff --git a/Toolbox/BaseToolbox/BaseToolbox.vcxproj b/Toolbox/BaseToolbox/BaseToolbox.vcxproj new file mode 100644 index 0000000..92e977f --- /dev/null +++ b/Toolbox/BaseToolbox/BaseToolbox.vcxproj @@ -0,0 +1,156 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {070C157E-3C30-4E2B-A80C-CBC7B74DF03F} + QtVS_v304 + 10.0 + 10.0 + $(MSBuildProjectDirectory)\QtMsBuild + + + + DynamicLibrary + v143 + true + Unicode + + + DynamicLibrary + v143 + false + true + Unicode + + + + + + + tools_qt5 + core + debug + + + tools_qt5 + core;xml;opengl;gui;xmlpatterns;widgets;location;printsupport;charts + release + + + + + + + + + + + + + + + + + + + ..\..\BaseCommonLibrary;..\..\BaseCommonLibrary\BaseTool;..\..\BaseCommonLibrary\ToolAbstract;..\..\GPUBaseLib\GPUTool;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)$(Platform)\$(Configuration)\Toolbox\ + PluginTool_$(ProjectName) + + + + true + true + + + + + true + BASETOOLBOX_LIB;%(PreprocessorDefinitions) + Level3 + true + true + + + Windows + true + + + + + true + BASETOOLBOX_LIB;BASETOOLBOX_API;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + Level3 + true + true + true + true + + + Windows + DebugFull + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + + + + + + + + + \ No newline at end of file diff --git a/Toolbox/BaseToolbox/BaseToolbox.vcxproj.filters b/Toolbox/BaseToolbox/BaseToolbox.vcxproj.filters new file mode 100644 index 0000000..2b8a698 --- /dev/null +++ b/Toolbox/BaseToolbox/BaseToolbox.vcxproj.filters @@ -0,0 +1,135 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + + + {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} + ts + + + {0b19f415-addf-48e1-ac38-c29445ba8222} + + + + + Header Files + + + Header Files + + + Source Files + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + BaseToolbox + + + \ No newline at end of file diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.cpp b/Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.cpp rename to Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.h b/Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.h rename to Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.ui b/Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/DEMLLA2XYZTool.ui rename to Toolbox/BaseToolbox/BaseToolbox/DEMLLA2XYZTool.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp b/Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp similarity index 98% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp rename to Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp index ec12868..ae867ff 100644 --- a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp +++ b/Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.cpp @@ -2,7 +2,7 @@ #include "SatelliteGF3xmlParser.h" #include #include -#include "SatelliteOribtModel.h" +#include "GF3PSTNClass.h" #include "boost/asio.hpp" #include #include @@ -294,7 +294,7 @@ ErrorCode ResampleDEM(QString indemPath, QString outdemPath, double gridx, doubl } -ErrorCode RD_PSTN(double& refrange, double& lamda, double& timeR, double& R, double& tx, double& ty, double& tz, double& slopex, double& slopey, double& slopez, PolyfitSatelliteOribtModel& polyfitmodel, SatelliteOribtNode& node, double& d0, double& d1, double& d2, double& d3, double& d4) +ErrorCode RD_PSTN(double& refrange, double& lamda, double& timeR, double& R, double& tx, double& ty, double& tz, double& slopex, double& slopey, double& slopez, GF3PolyfitSatelliteOribtModel& polyfitmodel, SatelliteOribtNode& node, double& d0, double& d1, double& d2, double& d3, double& d4) { double dt = 1e-6; double inct = 0; @@ -372,7 +372,7 @@ ErrorCode GF3RDCreateLookTable(QString inxmlPath, QString indemPath, QString out double lamda = (LIGHTSPEED*1e-6)/ l1dataset.getCenterFreq(); // ģ - PolyfitSatelliteOribtModel polyfitmodel; + GF3PolyfitSatelliteOribtModel polyfitmodel; QVector < SatelliteAntPos > antposes = l1dataset.getXmlSateAntPos(); polyfitmodel.setSatelliteOribtStartTime(imagestarttime); for (long i = 0; i < antposes.size(); i++) { diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.h b/Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.h similarity index 88% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.h rename to Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.h index 2c2b91a..2309c4c 100644 --- a/LAMPSARProcessProgram/ToolBox/BaseToolbox/GF3CalibrationAndGeocodingClass.h +++ b/Toolbox/BaseToolbox/BaseToolbox/GF3CalibrationAndGeocodingClass.h @@ -3,7 +3,7 @@ #include "ImageOperatorBase.h" #include "LogInfoCls.h" #include "SARSimulationImageL1.h" -#include "SatelliteOribtModel.h" +#include "GF3PSTNClass.h" #include @@ -26,7 +26,7 @@ ErrorCode Complex2dBRaster(QString inComplexPath, QString outRasterPath); ErrorCode ResampleDEM(QString indemPath, QString outdemPath, double gridx, double gridy); // RD 㷨 -ErrorCode RD_PSTN(double& refrange,double& lamda, double& timeR, double& R, double& tx, double& ty, double& tz, double& slopex, double& slopey, double& slopez, PolyfitSatelliteOribtModel& polyfitmodel, SatelliteOribtNode& node,double& d0,double& d1, double& d2, double& d3, double& d4); +ErrorCode RD_PSTN(double& refrange,double& lamda, double& timeR, double& R, double& tx, double& ty, double& tz, double& slopex, double& slopey, double& slopez, GF3PolyfitSatelliteOribtModel& polyfitmodel, SatelliteOribtNode& node,double& d0,double& d1, double& d2, double& d3, double& d4); //ұ diff --git a/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.cpp b/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.cpp new file mode 100644 index 0000000..aad91ca --- /dev/null +++ b/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.cpp @@ -0,0 +1,453 @@ +#include "stdafx.h" +#include "GF3PSTNClass.h" +#include "GeoOperator.h" +#include // ʽ +#include "BaseTool.h" +#include + + + +GF3PolyfitSatelliteOribtModel::GF3PolyfitSatelliteOribtModel() +{ + this->oribtStartTime = 0; + this->beamAngle = 0; + this->RightLook = true; + this->cycletime = 0; + this->minAzAngle = 0; + this->maxAzAngle = 0; + this->referenceAzAngle = 0; + this->referenceTimeFromStartTime = 0; + this->AntnnaAxisX = Point3{ 1,0,0 }; + this->AntnnaAxisY = Point3{ 0,1,0 }; + this->AntnnaAxisZ = Point3{ 0,0,1 }; + this->Pxchisq = 0; + this->Pychisq = 0; + this->Pzchisq = 0; + this->Vxchisq = 0; + this->Vychisq = 0; + this->Vzchisq = 0; + this->Pt = 1; + this->Gri = 1; +} + +GF3PolyfitSatelliteOribtModel::~GF3PolyfitSatelliteOribtModel() +{ + //TODO: + + +} + +QString GF3PolyfitSatelliteOribtModel::getSatelliteOribtModelParamsString() +{ + QString result = ""; + result += this->polyfitPx.size() - 1 + "\n"; + result += "----------- poly Position X -------------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitPx[i], 'e', 6) + "\n"; + } + result += "----------- poly Position Y -------------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitPy[i], 'e', 6) + "\n"; + } + result += "----------- poly Position Z -------------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitPz[i], 'e', 6) + "\n"; + } + result += "----------- poly Position Vector X ------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitVx[i], 'e', 6) + "\n"; + } + result += "----------- poly Position Vector Y ------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitVy[i], 'e', 6) + "\n"; + } + result += "----------- poly Position Vector Z ------------------\n"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + result += QString::number(this->polyfitVz[i], 'e', 6) + "\n"; + } + result += "------------------------------------------------------\n"; + + return result; +} + +SatelliteOribtNode GF3PolyfitSatelliteOribtModel::getSatelliteOribtNode(double& timeFromStartTime, bool& antAzAngleFlag) +{ + // λáٶ + SatelliteOribtNode node; + ErrorCode state = getSatelliteOribtNode(timeFromStartTime, node, antAzAngleFlag); + return node; +} + +ErrorCode GF3PolyfitSatelliteOribtModel::getSatelliteOribtNode(double& timeFromStartTime, SatelliteOribtNode& node, bool& antAzAngleFlag) +{ + // ꣬ٶȷ + node.time = timeFromStartTime; + node.Px = 0; + node.Py = 0; + node.Pz = 0; + node.Vx = 0; + node.Vy = 0; + node.Vz = 0; + + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + node.Px += this->polyfitPx[i] * pow(timeFromStartTime, i); + node.Py += this->polyfitPy[i] * pow(timeFromStartTime, i); + node.Pz += this->polyfitPz[i] * pow(timeFromStartTime, i); + node.Vx += this->polyfitVx[i] * pow(timeFromStartTime, i); + node.Vy += this->polyfitVy[i] * pow(timeFromStartTime, i); + node.Vz += this->polyfitVz[i] * pow(timeFromStartTime, i); + } + + + node.beamAngle = this->beamAngle; // λ + ErrorCode Azstatecode = this->getAzAngleInCurrentTimeFromStartTime(timeFromStartTime, node.AzAngle); // ڶ + if (Azstatecode != ErrorCode::SUCCESS) { + return Azstatecode; + } + else {} + + + if (!antAzAngleFlag) { + return ErrorCode::SUCCESS; + } + else { + } + // ָ + ErrorCode state = getAntnnaDirection(node); + + if (state != ErrorCode::SUCCESS) { + return state; + } + else {} + + state = getZeroDopplerAntDirect(node); + if (state != ErrorCode::SUCCESS) { + return state; + } + else {} + return ErrorCode::SUCCESS; +} + + +ErrorCode GF3PolyfitSatelliteOribtModel::getSatelliteAntDirectNormal(SatelliteOribtNode& Rs, Vector3D& Rt, SatelliteAntDirect& antNode) +{ + //Vector3D Rts = Vector3D{Rt.x-Rs.Px,Rt.y- Rs.Py,Rt.z-Rs.Pz}; // Rts t-->s + antNode.Xst = (Rt.x - Rs.Px); // --> + antNode.Yst = (Rt.y - Rs.Py); + antNode.Zst = (Rt.z - Rs.Pz); + antNode.Vxs = Rs.Vx; // ٶ + antNode.Vys = Rs.Vy; + antNode.Vzs = Rs.Vz; + // ָϵµֵ + antNode.Xant = (antNode.Xst * (Rs.AntYaxisY * Rs.AntZaxisZ - Rs.AntYaxisZ * Rs.AntZaxisY) + antNode.Xst * (Rs.AntXaxisZ * Rs.AntZaxisY - Rs.AntXaxisY * Rs.AntZaxisZ) + antNode.Xst * (Rs.AntXaxisY * Rs.AntYaxisZ - Rs.AntXaxisZ * Rs.AntYaxisY)) / (Rs.AntXaxisX * (Rs.AntYaxisY * Rs.AntZaxisZ - Rs.AntZaxisY * Rs.AntYaxisZ) - Rs.AntYaxisX * (Rs.AntXaxisY * Rs.AntZaxisZ - Rs.AntXaxisZ * Rs.AntZaxisY) + Rs.AntZaxisX * (Rs.AntXaxisY * Rs.AntYaxisZ - Rs.AntXaxisZ * Rs.AntYaxisY)); + antNode.Yant = (antNode.Yst * (Rs.AntYaxisZ * Rs.AntZaxisX - Rs.AntYaxisX * Rs.AntZaxisZ) + antNode.Yst * (Rs.AntXaxisX * Rs.AntZaxisZ - Rs.AntXaxisZ * Rs.AntZaxisX) + antNode.Yst * (Rs.AntYaxisX * Rs.AntXaxisZ - Rs.AntXaxisX * Rs.AntYaxisZ)) / (Rs.AntXaxisX * (Rs.AntYaxisY * Rs.AntZaxisZ - Rs.AntZaxisY * Rs.AntYaxisZ) - Rs.AntYaxisX * (Rs.AntXaxisY * Rs.AntZaxisZ - Rs.AntXaxisZ * Rs.AntZaxisY) + Rs.AntZaxisX * (Rs.AntXaxisY * Rs.AntYaxisZ - Rs.AntXaxisZ * Rs.AntYaxisY)); + antNode.Zant = (antNode.Zst * (Rs.AntYaxisX * Rs.AntZaxisY - Rs.AntYaxisY * Rs.AntZaxisX) + antNode.Zst * (Rs.AntXaxisY * Rs.AntZaxisX - Rs.AntXaxisX * Rs.AntZaxisY) + antNode.Zst * (Rs.AntXaxisX * Rs.AntYaxisY - Rs.AntYaxisX * Rs.AntXaxisY)) / (Rs.AntXaxisX * (Rs.AntYaxisY * Rs.AntZaxisZ - Rs.AntZaxisY * Rs.AntYaxisZ) - Rs.AntYaxisX * (Rs.AntXaxisY * Rs.AntZaxisZ - Rs.AntXaxisZ * Rs.AntZaxisY) + Rs.AntZaxisX * (Rs.AntXaxisY * Rs.AntYaxisZ - Rs.AntXaxisZ * Rs.AntYaxisY)); + // theta phi + antNode.Norm = std::sqrt(antNode.Xant * antNode.Xant + antNode.Yant * antNode.Yant + antNode.Zant * antNode.Zant); // pho + antNode.ThetaAnt = std::acos(antNode.Zant / antNode.Norm); // theta Zļн + antNode.PhiAnt = (antNode.Yant * std::sin(antNode.ThetaAnt) / std::abs(antNode.Yant * std::sin(antNode.ThetaAnt))) * std::acos(antNode.Xant / (antNode.Norm * std::sin(antNode.ThetaAnt))); + return ErrorCode::SUCCESS; +} + +void GF3PolyfitSatelliteOribtModel::setSatelliteOribtStartTime(long double oribtStartTime) +{ + this->oribtStartTime = oribtStartTime; +} + +long double GF3PolyfitSatelliteOribtModel::getSatelliteOribtStartTime() +{ + return this->oribtStartTime; +} + +void GF3PolyfitSatelliteOribtModel::setbeamAngle(double beamAngle, bool RightLook) +{ + this->beamAngle = beamAngle; + this->RightLook = RightLook; +} + +void GF3PolyfitSatelliteOribtModel::setAzAngleRange(double cycletime, double minAzAngle, double maxAzAngle, double referenceAzAngle, double referenceTimeFromStartTime) +{ + this->cycletime = cycletime; + this->minAzAngle = minAzAngle; + this->maxAzAngle = maxAzAngle; + this->referenceAzAngle = referenceAzAngle; + this->referenceTimeFromStartTime = referenceTimeFromStartTime; +} + +double GF3PolyfitSatelliteOribtModel::getAzAngleInCurrentTimeFromStartTime(double& currentTime) +{ + // Ƕ + double Azangle = 0; + ErrorCode state = getAzAngleInCurrentTimeFromStartTime(currentTime, Azangle); + return Azangle; +} + +/// +/// X=Y x Z ڶ(- ڶǣ+ +/// Z Z Z +/// ^ \ / +/// | \ / +/// y<--X--- y<--X--- y<--X--- +/// | |\ /| +/// | \ / +/// + +ErrorCode GF3PolyfitSatelliteOribtModel::getAzAngleInCurrentTimeFromStartTime(double& currentTime, double& AzAngle) +{ + if (std::abs(this->maxAzAngle - this->minAzAngle) < 1e-7 || std::abs(this->cycletime) < 1e-7) { + AzAngle = this->referenceAzAngle; + return ErrorCode::SUCCESS; + } + else { + AzAngle = this->referenceAzAngle + (currentTime - this->referenceTimeFromStartTime) / this->cycletime * (this->maxAzAngle - this->minAzAngle); + return ErrorCode::SUCCESS; + } +} + +void GF3PolyfitSatelliteOribtModel::setAntnnaAxisX(double X, double Y, double Z) +{ + this->AntnnaAxisX = Point3{ X, Y, Z }; +} + +void GF3PolyfitSatelliteOribtModel::setAntnnaAxisY(double X, double Y, double Z) +{ + this->AntnnaAxisY = Point3{ X, Y, Z }; +} + +void GF3PolyfitSatelliteOribtModel::setAntnnaAxisZ(double X, double Y, double Z) +{ + this->AntnnaAxisZ = Point3{ X, Y, Z }; +} + +/// (+ ӣ- +/// Z Z Z +/// ^ \ / +/// | \ / +/// x<--O--- x<--O--- x<--O--- +/// | |\ /| +/// \ / +/// +ErrorCode GF3PolyfitSatelliteOribtModel::getAntnnaDirection(SatelliteOribtNode& node) +{ + bool flag = false; + double nexttime = node.time + 1e-6; + SatelliteOribtNode node1 = this->getSatelliteOribtNode(nexttime, flag); + + //std::cout << "getAntnnaDirection corrdination " << std::endl; + + double Vx = (node1.Px - node.Px); + double Vy = (node1.Py - node.Py); + double Vz = (node1.Pz - node.Pz); + + // Բ + //node.Px = 0; + //node.Py = 0; + //node.Pz = 1; + + //Vx = 1, Vy = 0, Vz = 0; + + + // 1. ָ + Eigen::Vector3d axisZ0 = { -1 * node.Px ,-1 * node.Py,-1 * node.Pz }; // z --λΪ0ʱָķ + Eigen::Vector3d axisX0 = { Vx,Vy,Vz }; // x --з + Eigen::Vector3d axisY0 = axisZ0.cross(axisX0); // y --ֶ -- ʼϵ + + //std::cout << "axis_X0=[ " << axisX0.x() << "," << axisX0.y() << "," << axisX0.z() << "]" << std::endl; + //std::cout << "axis_Y0=[ " << axisY0.x() << "," << axisY0.y() << "," << axisY0.z() << "]" << std::endl; + //std::cout << "axis_Z0=[ " << axisZ0.x() << "," << axisZ0.y() << "," << axisZ0.z() << "]" << std::endl; + + double rotateAngle = this->RightLook ? -this->beamAngle : this->beamAngle; // תǶ ʱ룩theta , ң˳ʱ룩 -theta + //std::cout << "rotateAngle=" << rotateAngle << std::endl; + //std::cout << "Look side:\t" << (this->RightLook ? "right" : "left") << std::endl; + // 1.2. ݲλǣȷX- + Eigen::Matrix3d rotateMatrixBeam = rotationMatrix(axisX0, rotateAngle * d2r); // ת + axisZ0 = rotateMatrixBeam * axisZ0; // ת + axisY0 = rotateMatrixBeam * axisY0; + axisX0 = rotateMatrixBeam * axisX0; + // 1.3. ݷλǣȷYת + double azangle = node.AzAngle; + Eigen::Matrix3d rotateMatrixAzAngle = rotationMatrix(axisY0, azangle * d2r); // ת + axisZ0 = rotateMatrixAzAngle * axisZ0; // ת + axisY0 = rotateMatrixAzAngle * axisY0; + axisX0 = rotateMatrixAzAngle * axisX0; + + // 1.4. ʵָ + node.AntDirecX = axisZ0[0]; + node.AntDirecY = axisZ0[1]; + node.AntDirecZ = axisZ0[2]; + + // 2. ϵ,߷ͼ + + node.AntXaxisX = axisX0[0]; // ʵϵ WGS84 ϵ + node.AntXaxisY = axisX0[1]; + node.AntXaxisZ = axisX0[2]; + + node.AntYaxisX = axisY0[0]; + node.AntYaxisY = axisY0[1]; + node.AntYaxisZ = axisY0[2]; + + node.AntZaxisX = axisZ0[0]; + node.AntZaxisY = axisZ0[1]; + node.AntZaxisZ = axisZ0[2]; + + + //std::cout << "axis_X=[" << axisX0.x() << "," << axisX0.y() << "," << axisX0.z() << "]" << std::endl; + //std::cout << "axis_Y=[" << axisY0.x() << "," << axisY0.y() << "," << axisY0.z() << "]" << std::endl; + //std::cout << "axis_Z=[" << axisZ0.x() << "," << axisZ0.y() << "," << axisZ0.z() << "]" << std::endl; + //std::cout << "------------------------------------" << std::endl; + return ErrorCode::SUCCESS; +} + +ErrorCode GF3PolyfitSatelliteOribtModel::getZeroDopplerAntDirect(SatelliteOribtNode& node) +{ + bool flag = false; + double nexttime = node.time + 1e-6; + SatelliteOribtNode node1 = this->getSatelliteOribtNode(nexttime, flag); + + // 1. ָ + Eigen::Vector3d axisZ0 = { -1 * node.Px ,-1 * node.Py,-1 * node.Pz }; // z --λΪ0ʱָķ + Eigen::Vector3d axisX0 = { (node1.Px - node.Px) , (node1.Py - node.Py) , (node1.Pz - node.Pz) }; // x --з + Eigen::Vector3d axisY0 = axisZ0.cross(axisX0); // y --ֶ -- ʼϵ + + double rotateAngle = this->RightLook ? -this->beamAngle : this->beamAngle; // תǶ ʱ룩theta , ң˳ʱ룩 -theta + + // 1.2. ݲλǣȷX- + Eigen::Matrix3d rotateMatrixBeam = rotationMatrix(axisX0, rotateAngle * d2r); // ת + axisZ0 = rotateMatrixBeam * axisZ0; // ת + axisY0 = rotateMatrixBeam * axisY0; + axisX0 = rotateMatrixBeam * axisX0; + // 1.3. ݷλǣȷYת + double azangle = 0; + Eigen::Matrix3d rotateMatrixAzAngle = rotationMatrix(axisY0, azangle * d2r); // ת + axisZ0 = rotateMatrixAzAngle * axisZ0; // ת + axisY0 = rotateMatrixAzAngle * axisY0; + axisX0 = rotateMatrixAzAngle * axisX0; + + // 1.4. ʵָ + node.zeroDopplerDirectX = axisZ0[0]; + node.zeroDopplerDirectY = axisZ0[1]; + node.zeroDopplerDirectZ = axisZ0[2]; + + return ErrorCode::SUCCESS; +} + +void GF3PolyfitSatelliteOribtModel::addOribtNode(SatelliteOribtNode node) +{ + this->oribtNodes.push_back(node); +} + + + +ErrorCode GF3PolyfitSatelliteOribtModel::polyFit(int polynum/*=3*/, bool input_timeFromReferenceTime) +{ + if (polynum > this->oribtNodes.size() - 1) { + return ErrorCode::OrbitNodeNotEnough; + } + else {} + + this->polyfitPx = std::vector(polynum + 1, 0); + this->polyfitPy = std::vector(polynum + 1, 0); + this->polyfitPz = std::vector(polynum + 1, 0); + this->polyfitVx = std::vector(polynum + 1, 0); + this->polyfitVy = std::vector(polynum + 1, 0); + this->polyfitVz = std::vector(polynum + 1, 0); + + std::vector timeArr = std::vector(this->oribtNodes.size(), 0); + std::vector PxArr = std::vector(this->oribtNodes.size(), 0); + std::vector PyArr = std::vector(this->oribtNodes.size(), 0); + std::vector PzArr = std::vector(this->oribtNodes.size(), 0); + std::vector VxArr = std::vector(this->oribtNodes.size(), 0); + std::vector VyArr = std::vector(this->oribtNodes.size(), 0); + std::vector VzArr = std::vector(this->oribtNodes.size(), 0); + + // ׼ + for (long i = 0; i < this->oribtNodes.size(); i++) { + if (input_timeFromReferenceTime) { + timeArr[i] = this->oribtNodes[i].time; + } + else { + timeArr[i] = this->oribtNodes[i].time - this->oribtStartTime; // ԲοʱΪ׼ + qDebug() << this->oribtNodes[i].time << "\t--->\t" << timeArr[i]; + } + PxArr[i] = this->oribtNodes[i].Px; + PyArr[i] = this->oribtNodes[i].Py; + PzArr[i] = this->oribtNodes[i].Pz; + VxArr[i] = this->oribtNodes[i].Vx; + VyArr[i] = this->oribtNodes[i].Vy; + VzArr[i] = this->oribtNodes[i].Vz; + } + + // Px Py Pz Vx Vy Vz + ErrorCode codePx = polynomial_fit(timeArr, PxArr, polynum, this->polyfitPx, this->Pxchisq); + ErrorCode codePy = polynomial_fit(timeArr, PyArr, polynum, this->polyfitPy, this->Pychisq); + ErrorCode codePz = polynomial_fit(timeArr, PzArr, polynum, this->polyfitPz, this->Pzchisq); + ErrorCode codeVx = polynomial_fit(timeArr, VxArr, polynum, this->polyfitVx, this->Vxchisq); + ErrorCode codeVy = polynomial_fit(timeArr, VyArr, polynum, this->polyfitVy, this->Vychisq); + ErrorCode codeVz = polynomial_fit(timeArr, VzArr, polynum, this->polyfitVz, this->Vzchisq); + + + // ӡ this->polyfitPx + qDebug() << "polyfit value:"; + qDebug() << "Px" << "\t" << "Py" << "\t" << "Pz" << "\t" << "Vx" << "\t" << "Vy" << "\t" << "Vz"; + for (long i = 0; i < this->polyfitPx.size(); i++) { // ƽ + qDebug() << this->polyfitPx[i] << "\t" << this->polyfitPy[i] << "\t" << this->polyfitPz[i] << "\t" << this->polyfitVx[i] << "\t" << this->polyfitVy[i] << "\t" << this->polyfitVz[i]; + } + + + // + double starttime = this->oribtStartTime; + qDebug() << "oribt refrence time: " << starttime; + qDebug() << "time" << "\t" << "dPx" << "\t" << "dPy" << "\t" << "dPz" << "\t" << "dVx" << "\t" << "dVy" << "\t" << "dVz"; + for (long i = 0; i < timeArr.size(); i++) { + double time_temp = timeArr[i]; + bool flag = false; + SatelliteOribtNode tempnode; + this->getSatelliteOribtNode(time_temp, tempnode, flag); + qDebug() << timeArr[i] << "\t" << PxArr[i] - tempnode.Px << "\t" << PyArr[i] - tempnode.Py << "\t" << PzArr[i] - tempnode.Pz << "\t" << VxArr[i] - tempnode.Vx << "\t" << VyArr[i] - tempnode.Vy << "\t" << VzArr[i] - tempnode.Vz; + } + return ErrorCode::SUCCESS; +} + +double GF3PolyfitSatelliteOribtModel::getPt() +{ + return this->Pt; +} + +double GF3PolyfitSatelliteOribtModel::getGri() +{ + return this->Gri; +} + +void GF3PolyfitSatelliteOribtModel::setPt(double pt) +{ + this->Pt = pt; +} + +void GF3PolyfitSatelliteOribtModel::setGri(double gri) +{ + this->Gri = gri; +} + +std::shared_ptr CreataGF3PolyfitSatelliteOribtModel(std::vector& nodes, long double startTime, int polynum) +{ + qDebug() << "CreataGF3PolyfitSatelliteOribtModel \t" << (double)startTime << "\t" << polynum; + + + std::shared_ptr ployfitOribtModel = std::make_shared< GF3PolyfitSatelliteOribtModel>(); + for (long i = 0; i < nodes.size(); i++) { + ployfitOribtModel->addOribtNode(nodes[i]); + } + ployfitOribtModel->setSatelliteOribtStartTime(startTime); + ErrorCode stateCode = ployfitOribtModel->polyFit(polynum, false); + if (stateCode != ErrorCode::SUCCESS) { + qDebug() << QString::fromStdString(errorCode2errInfo(stateCode)); + return nullptr; + } + else { + return ployfitOribtModel; + } + return ployfitOribtModel; +} + + + diff --git a/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.h b/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.h new file mode 100644 index 0000000..babc6bd --- /dev/null +++ b/Toolbox/BaseToolbox/BaseToolbox/GF3PSTNClass.h @@ -0,0 +1,108 @@ +#pragma once + + + + + +#include "LogInfoCls.h" +#include "BaseConstVariable.h" +#include "GeoOperator.h" +#include +#include +#include + +/// +/// ʽģ +/// +class GF3PolyfitSatelliteOribtModel +{ +public: + GF3PolyfitSatelliteOribtModel(); + ~GF3PolyfitSatelliteOribtModel() ; +public: + QString getSatelliteOribtModelParamsString(); + +public: // ǹڵ + virtual SatelliteOribtNode getSatelliteOribtNode(double& timeFromStartTime, bool& antAzAngleFlag) ; // ȡڵ + virtual ErrorCode getSatelliteOribtNode(double& timeFromStartTime, SatelliteOribtNode& node, bool& antAzAngleFlag) ; // ȡڵ + virtual ErrorCode getSatelliteAntDirectNormal(SatelliteOribtNode& Rs, Vector3D& Rt, SatelliteAntDirect& antNode); // Ŀ߷ͼеλ +public: // ǹģ͵IJοʱڵ + virtual void setSatelliteOribtStartTime(long double oribtStartTime) ;// ģͲοʱ + virtual long double getSatelliteOribtStartTime() ;// ȡģͲοʱ +public: // ز + virtual void setbeamAngle(double beamAngle, bool RightLook) ;// òλ + +public: // ߰ڶز + virtual void setAzAngleRange(double cycletime, double minAzAngle, double maxAzAngle, double referenceAzAngle, double referenceTimeFromStartTime) ;//λDZ任ѭʱ ;λDZ任Χ ضʱķλǣڼ㷽λDZ仯 + + virtual double getAzAngleInCurrentTimeFromStartTime(double& currentTime) ;// ȡǰʱ ߰ڶ + virtual ErrorCode getAzAngleInCurrentTimeFromStartTime(double& currentTime, double& AzAngle);// ȡǰʱ ߰ڶ + +public: // ԭʼµϵĵȻ-Z Ϊ ָ + virtual void setAntnnaAxisX(double X, double Y, double Z) ; // Xָ + virtual void setAntnnaAxisY(double X, double Y, double Z) ; // Xָ + virtual void setAntnnaAxisZ(double X, double Y, double Z) ; // Xָ + + virtual ErrorCode getAntnnaDirection(SatelliteOribtNode& node) ; // ȡָ + virtual ErrorCode getZeroDopplerAntDirect(SatelliteOribtNode& node) ; +private: // + long double oribtStartTime; // ģͲοʱ + double beamAngle; // λ + bool RightLook; // + double cycletime; // λDZ任ѭʱ + double minAzAngle; // λDZ任Χ + double maxAzAngle; // λDZ任Χ + double referenceAzAngle; // ضʱķλǣڼ㷽λDZ仯 + double referenceTimeFromStartTime; // ضʱķλǣڼ㷽λDZ仯 + + Point3 AntnnaAxisX; // Xָ + Point3 AntnnaAxisY; // Yָ + Point3 AntnnaAxisZ; // Zָ + + +public: // ӽڵ + void addOribtNode(SatelliteOribtNode node); + ErrorCode polyFit(int polynum = 3, bool input_timeFromReferenceTime = false); + + +private: // ڵ + std::vector oribtNodes; + + std::vector polyfitPx; // ռ + std::vector polyfitPy; + std::vector polyfitPz; + std::vector polyfitVx; // ٶϲ + std::vector polyfitVy; + std::vector polyfitVz; + + double Pxchisq; // X2 + double Pychisq; + double Pzchisq; + double Vxchisq; + double Vychisq; + double Vzchisq; + +public: + virtual double getPt() ; + virtual double getGri() ; + virtual void setPt(double Pt) ; + virtual void setGri(double gri) ; + + //virtual double getPt(); + //virtual double getGri(); + //virtual void setPt(double Pt); + //virtual void setGri(double gri); + + + +private: + double Pt; // ѹ + double Gri;// ϵͳ + +}; + +std::shared_ptr CreataGF3PolyfitSatelliteOribtModel(std::vector& nodes, long double startTime, int polynum = 3); + + + + diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.cpp b/Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.cpp rename to Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.h b/Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.h rename to Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.ui b/Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QClipRasterByRowCols.ui rename to Toolbox/BaseToolbox/BaseToolbox/QClipRasterByRowCols.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.cpp b/Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.cpp rename to Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.h b/Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.h rename to Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.ui b/Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QComplex2AmpPhase.ui rename to Toolbox/BaseToolbox/BaseToolbox/QComplex2AmpPhase.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.cpp b/Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.cpp rename to Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.h b/Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.h rename to Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.ui b/Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QImportGF3StripL1ADataset.ui rename to Toolbox/BaseToolbox/BaseToolbox/QImportGF3StripL1ADataset.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.cpp b/Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.cpp rename to Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.h b/Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.h rename to Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.ui b/Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QOrthSlrRaster.ui rename to Toolbox/BaseToolbox/BaseToolbox/QOrthSlrRaster.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.cpp b/Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.cpp similarity index 98% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.cpp rename to Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.cpp index 2be08e8..7a3fd52 100644 --- a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.cpp +++ b/Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.cpp @@ -2,7 +2,7 @@ #include #include #include "QToolProcessBarDialog.h" -#include +#include "GF3CalibrationAndGeocodingClass.h" QRDOrthProcessClass::QRDOrthProcessClass(QWidget *parent) : QDialog(parent) { diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.h b/Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.h rename to Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.ui b/Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/QRDOrthProcessClass.ui rename to Toolbox/BaseToolbox/BaseToolbox/QRDOrthProcessClass.ui diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/SateOrbit.cpp b/Toolbox/BaseToolbox/BaseToolbox/SateOrbit.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/SateOrbit.cpp rename to Toolbox/BaseToolbox/BaseToolbox/SateOrbit.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/SateOrbit.h b/Toolbox/BaseToolbox/BaseToolbox/SateOrbit.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/SateOrbit.h rename to Toolbox/BaseToolbox/BaseToolbox/SateOrbit.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/SatelliteGF3xmlParser.cpp b/Toolbox/BaseToolbox/BaseToolbox/SatelliteGF3xmlParser.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/SatelliteGF3xmlParser.cpp rename to Toolbox/BaseToolbox/BaseToolbox/SatelliteGF3xmlParser.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/SatelliteGF3xmlParser.h b/Toolbox/BaseToolbox/BaseToolbox/SatelliteGF3xmlParser.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/SatelliteGF3xmlParser.h rename to Toolbox/BaseToolbox/BaseToolbox/SatelliteGF3xmlParser.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/WGS84_J2000.cpp b/Toolbox/BaseToolbox/BaseToolbox/WGS84_J2000.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/WGS84_J2000.cpp rename to Toolbox/BaseToolbox/BaseToolbox/WGS84_J2000.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/WGS84_J2000.h b/Toolbox/BaseToolbox/BaseToolbox/WGS84_J2000.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/WGS84_J2000.h rename to Toolbox/BaseToolbox/BaseToolbox/WGS84_J2000.h diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/simptsn.cpp b/Toolbox/BaseToolbox/BaseToolbox/simptsn.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/simptsn.cpp rename to Toolbox/BaseToolbox/BaseToolbox/simptsn.cpp diff --git a/LAMPSARProcessProgram/ToolBox/BaseToolbox/simptsn.h b/Toolbox/BaseToolbox/BaseToolbox/simptsn.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/BaseToolbox/simptsn.h rename to Toolbox/BaseToolbox/BaseToolbox/simptsn.h diff --git a/BaseToolBox/basetoolbox_global.h b/Toolbox/BaseToolbox/basetoolbox_global.h similarity index 100% rename from BaseToolBox/basetoolbox_global.h rename to Toolbox/BaseToolbox/basetoolbox_global.h diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.cpp b/Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.cpp rename to Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.cpp diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.h b/Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.h similarity index 93% rename from LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.h rename to Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.h index 6104837..a9cb2b9 100644 --- a/LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.h +++ b/Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.h @@ -3,6 +3,7 @@ #ifndef IMAGESHOWDIALOGCLASS_H #define IMAGESHOWDIALOGCLASS_H +#include "imageshowtool_global.h" #include "BaseConstVariable.h" #include #include @@ -33,7 +34,7 @@ namespace Ui { // 1. 单纯的描述游标,主要用来展示坐标,还有当前数据信息 // 2. 区域性描述游标,通过线,等用来展示某一个区域的信息 //=========================== -class ImageShowCursorDesClass : public QDialog +class IMAGESHOWTOOL_EXPORT ImageShowCursorDesClass : public QDialog { Q_OBJECT public: @@ -53,7 +54,7 @@ protected: }; -class ImageShowCursorLineClass :public QDialog { +class IMAGESHOWTOOL_EXPORT ImageShowCursorLineClass :public QDialog { Q_OBJECT public: QMenuBar* menubar; @@ -100,7 +101,7 @@ protected: // 1. 单纯的描述游标,主要用来展示坐标,还有当前数据信息 // 2. 区域性描述游标,通过线,等用来展示某一个区域的信息 //=========================== -class ImageShowDialogClass : public QDialog +class IMAGESHOWTOOL_EXPORT ImageShowDialogClass : public QDialog { Q_OBJECT private: diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.ui b/Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/Imageshow/ImageShowDialogClass.ui rename to Toolbox/ImageshowTool/Imageshow/ImageShowDialogClass.ui diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.cpp b/Toolbox/ImageshowTool/Imageshow/qcustomplot.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.cpp rename to Toolbox/ImageshowTool/Imageshow/qcustomplot.cpp diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.h b/Toolbox/ImageshowTool/Imageshow/qcustomplot.h similarity index 99% rename from LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.h rename to Toolbox/ImageshowTool/Imageshow/qcustomplot.h index 07e3f23..39ab1eb 100644 --- a/LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.h +++ b/Toolbox/ImageshowTool/Imageshow/qcustomplot.h @@ -128,7 +128,11 @@ class QCPBars; #elif defined(QCUSTOMPLOT_USE_LIBRARY) # define QCP_LIB_DECL Q_DECL_IMPORT #else -# define QCP_LIB_DECL +# if defined(IMAGESHOWTOOL_LIB) +# define QCP_LIB_DECL Q_DECL_EXPORT +# else +# define QCP_LIB_DECL Q_DECL_IMPORT +# endif #endif // define empty macro for Q_DECL_OVERRIDE if it doesn't exist (Qt < 5) diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.qrc b/Toolbox/ImageshowTool/Imageshow/qcustomplot.qrc similarity index 100% rename from LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.qrc rename to Toolbox/ImageshowTool/Imageshow/qcustomplot.qrc diff --git a/LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.ui b/Toolbox/ImageshowTool/Imageshow/qcustomplot.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/Imageshow/qcustomplot.ui rename to Toolbox/ImageshowTool/Imageshow/qcustomplot.ui diff --git a/Toolbox/ImageshowTool/ImageshowTool.cpp b/Toolbox/ImageshowTool/ImageshowTool.cpp new file mode 100644 index 0000000..58d31f9 --- /dev/null +++ b/Toolbox/ImageshowTool/ImageshowTool.cpp @@ -0,0 +1,5 @@ +#include "ImageshowTool.h" + +ImageshowTool::ImageshowTool() +{ +} diff --git a/Toolbox/ImageshowTool/ImageshowTool.h b/Toolbox/ImageshowTool/ImageshowTool.h new file mode 100644 index 0000000..c28dda3 --- /dev/null +++ b/Toolbox/ImageshowTool/ImageshowTool.h @@ -0,0 +1,10 @@ +#pragma once + +#include "imageshowtool_global.h" +#include "qcustomplot.h" + +class IMAGESHOWTOOL_EXPORT ImageshowTool +{ +public: + ImageshowTool(); +}; diff --git a/Toolbox/ImageshowTool/ImageshowTool.vcxproj b/Toolbox/ImageshowTool/ImageshowTool.vcxproj new file mode 100644 index 0000000..77a7975 --- /dev/null +++ b/Toolbox/ImageshowTool/ImageshowTool.vcxproj @@ -0,0 +1,135 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {8C8CA066-A93A-4098-9A46-B855EFEAADF2} + QtVS_v304 + 10.0 + 10.0 + $(MSBuildProjectDirectory)\QtMsBuild + + + + DynamicLibrary + v143 + true + Unicode + + + DynamicLibrary + v143 + false + true + Unicode + + + + + + + tools_qt5 + core + debug + + + tools_qt5 + core;xml;opengl;gui;xmlpatterns;widgets;location;printsupport;charts;datavisualization + release + + + + + + + + + + + + + + + + + + + ..\..\BaseCommonLibrary;..\..\BaseCommonLibrary\BaseTool;..\..\BaseCommonLibrary\ToolAbstract;..\..\GPUBaseLib\GPUTool;.\Imageshow;$(VC_IncludePath);$(WindowsSDK_IncludePath) + $(SolutionDir)$(Platform)\$(Configuration)\Toolbox\ + PluginTool_$(ProjectName) + + + + true + true + + + + + true + IMAGESHOWTOOL_LIB;%(PreprocessorDefinitions) + Level3 + true + true + + + Windows + true + + + + + true + IMAGESHOWTOOL_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + Level3 + true + true + true + true + + + Windows + DebugFull + true + true + + + + + + + + + + + + + + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + + + + + + + + + \ No newline at end of file diff --git a/Toolbox/ImageshowTool/ImageshowTool.vcxproj.filters b/Toolbox/ImageshowTool/ImageshowTool.vcxproj.filters new file mode 100644 index 0000000..864b493 --- /dev/null +++ b/Toolbox/ImageshowTool/ImageshowTool.vcxproj.filters @@ -0,0 +1,62 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + + + {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} + ts + + + {8dad62b4-5481-474f-a6a3-6fecb9b031d7} + + + + + Header Files + + + Source Files + + + Header Files + + + + + Imageshow + + + Imageshow + + + + + Imageshow + + + + + + + + + + Imageshow + + + \ No newline at end of file diff --git a/Toolbox/ImageshowTool/imageshowtool_global.h b/Toolbox/ImageshowTool/imageshowtool_global.h new file mode 100644 index 0000000..9f3dae8 --- /dev/null +++ b/Toolbox/ImageshowTool/imageshowtool_global.h @@ -0,0 +1,13 @@ +#pragma once + +#include + +#ifndef BUILD_STATIC +# if defined(IMAGESHOWTOOL_LIB) +# define IMAGESHOWTOOL_EXPORT Q_DECL_EXPORT +# else +# define IMAGESHOWTOOL_EXPORT Q_DECL_IMPORT +# endif +#else +# define IMAGESHOWTOOL_EXPORT +#endif diff --git a/Toolbox/LAMPScatterTool/LAMPScatterTool.cpp b/Toolbox/LAMPScatterTool/LAMPScatterTool.cpp new file mode 100644 index 0000000..b515742 --- /dev/null +++ b/Toolbox/LAMPScatterTool/LAMPScatterTool.cpp @@ -0,0 +1,5 @@ +#include "LAMPScatterTool.h" + +LAMPScatterTool::LAMPScatterTool() +{ +} diff --git a/Toolbox/LAMPScatterTool/LAMPScatterTool.h b/Toolbox/LAMPScatterTool/LAMPScatterTool.h new file mode 100644 index 0000000..adf9a88 --- /dev/null +++ b/Toolbox/LAMPScatterTool/LAMPScatterTool.h @@ -0,0 +1,9 @@ +#pragma once + +#include "lampscattertool_global.h" + +class LAMPSCATTERTOOL_EXPORT LAMPScatterTool +{ +public: + LAMPScatterTool(); +}; diff --git a/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj b/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj new file mode 100644 index 0000000..b704e11 --- /dev/null +++ b/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj @@ -0,0 +1,126 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {D603A623-132D-4304-AB03-638FC438F084} + QtVS_v304 + 10.0 + 10.0 + $(MSBuildProjectDirectory)\QtMsBuild + + + + DynamicLibrary + v143 + true + Unicode + + + DynamicLibrary + v143 + false + true + Unicode + + + + + + + tools_qt5 + core + debug + + + tools_qt5 + core;xml;opengl;gui;xmlpatterns;widgets;location;printsupport;charts + release + + + + + + + + + + + + + + + + + + + ..\..\BaseCommonLibrary;..\..\BaseCommonLibrary\BaseTool;..\..\BaseCommonLibrary\ToolAbstract;..\..\GPUBaseLib\GPUTool;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)$(Platform)\$(Configuration)\Toolbox\ + PluginTool_$(ProjectName) + + + + true + true + + + + + true + LAMPSCATTERTOOL_LIB;%(PreprocessorDefinitions) + Level3 + true + true + + + Windows + true + + + + + true + LAMPSCATTERTOOL_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + Level3 + true + true + true + true + + + Windows + DebugFull + true + true + + + + + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + + + + + + + + + \ No newline at end of file diff --git a/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj.filters b/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj.filters new file mode 100644 index 0000000..7baf8a6 --- /dev/null +++ b/Toolbox/LAMPScatterTool/LAMPScatterTool.vcxproj.filters @@ -0,0 +1,47 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + + + {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} + ts + + + {157dbf0f-5010-4aea-9922-d8b5a832c652} + + + + + Header Files + + + Header Files + + + Source Files + + + LAMPScatterTool + + + + + LAMPScatterTool + + + \ No newline at end of file diff --git a/LAMPSARProcessProgram/ToolBox/LAMPScatterTool/LAMPScatterS1B.cpp b/Toolbox/LAMPScatterTool/LAMPScatterTool/LAMPScatterS1B.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/LAMPScatterTool/LAMPScatterS1B.cpp rename to Toolbox/LAMPScatterTool/LAMPScatterTool/LAMPScatterS1B.cpp diff --git a/LAMPSARProcessProgram/ToolBox/LAMPScatterTool/LAMPScatterS1B.h b/Toolbox/LAMPScatterTool/LAMPScatterTool/LAMPScatterS1B.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/LAMPScatterTool/LAMPScatterS1B.h rename to Toolbox/LAMPScatterTool/LAMPScatterTool/LAMPScatterS1B.h diff --git a/Toolbox/LAMPScatterTool/lampscattertool_global.h b/Toolbox/LAMPScatterTool/lampscattertool_global.h new file mode 100644 index 0000000..f2577a3 --- /dev/null +++ b/Toolbox/LAMPScatterTool/lampscattertool_global.h @@ -0,0 +1,13 @@ +#pragma once + +#include + +#ifndef BUILD_STATIC +# if defined(LAMPSCATTERTOOL_LIB) +# define LAMPSCATTERTOOL_EXPORT Q_DECL_EXPORT +# else +# define LAMPSCATTERTOOL_EXPORT Q_DECL_IMPORT +# endif +#else +# define LAMPSCATTERTOOL_EXPORT +#endif diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPC.cu b/Toolbox/SimulationSARTool/SimulationSAR/GPURFPC.cu similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPC.cu rename to Toolbox/SimulationSARTool/SimulationSAR/GPURFPC.cu diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPC.cuh b/Toolbox/SimulationSARTool/SimulationSAR/GPURFPC.cuh similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPC.cuh rename to Toolbox/SimulationSARTool/SimulationSAR/GPURFPC.cuh diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPCKernel.cu b/Toolbox/SimulationSARTool/SimulationSAR/GPURFPCKernel.cu similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/GPURFPCKernel.cu rename to Toolbox/SimulationSARTool/SimulationSAR/GPURFPCKernel.cu diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GPUTBPImage.cu b/Toolbox/SimulationSARTool/SimulationSAR/GPUTBPImage.cu similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/GPUTBPImage.cu rename to Toolbox/SimulationSARTool/SimulationSAR/GPUTBPImage.cu diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/GPUTBPImage.cuh b/Toolbox/SimulationSARTool/SimulationSAR/GPUTBPImage.cuh similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/GPUTBPImage.cuh rename to Toolbox/SimulationSARTool/SimulationSAR/GPUTBPImage.cuh diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.cpp b/Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.h b/Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.h rename to Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.ui b/Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QImageSARRFPC.ui rename to Toolbox/SimulationSARTool/SimulationSAR/QImageSARRFPC.ui diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.cpp b/Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.h b/Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.h rename to Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.ui b/Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QMergeRasterProcessDialog.ui rename to Toolbox/SimulationSARTool/SimulationSAR/QMergeRasterProcessDialog.ui diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.cpp b/Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.h b/Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.h rename to Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.ui b/Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSARLookTableSimualtionGUI.ui rename to Toolbox/SimulationSARTool/SimulationSAR/QSARLookTableSimualtionGUI.ui diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.cpp b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.h b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.h rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.ui b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationBPImage.ui rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationBPImage.ui diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.cpp b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.h b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.h rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.ui b/Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.ui similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/QSimulationRFPCGUI.ui rename to Toolbox/SimulationSARTool/SimulationSAR/QSimulationRFPCGUI.ui diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/RFPCProcessCls.cpp b/Toolbox/SimulationSARTool/SimulationSAR/RFPCProcessCls.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/RFPCProcessCls.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/RFPCProcessCls.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/RFPCProcessCls.h b/Toolbox/SimulationSARTool/SimulationSAR/RFPCProcessCls.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/RFPCProcessCls.h rename to Toolbox/SimulationSARTool/SimulationSAR/RFPCProcessCls.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSatelliteSimulationAbstractCls.cpp b/Toolbox/SimulationSARTool/SimulationSAR/SARSatelliteSimulationAbstractCls.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSatelliteSimulationAbstractCls.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/SARSatelliteSimulationAbstractCls.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSatelliteSimulationAbstractCls.h b/Toolbox/SimulationSARTool/SimulationSAR/SARSatelliteSimulationAbstractCls.h similarity index 88% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSatelliteSimulationAbstractCls.h rename to Toolbox/SimulationSARTool/SimulationSAR/SARSatelliteSimulationAbstractCls.h index d5f0629..4cefdb4 100644 --- a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSatelliteSimulationAbstractCls.h +++ b/Toolbox/SimulationSARTool/SimulationSAR/SARSatelliteSimulationAbstractCls.h @@ -21,87 +21,7 @@ #include #include "GeoOperator.h" - - - -/// -/// ڵ,ϵͳΪWGS84 -/// -struct SatelliteOribtNode { - double time; - - double Px;// λ - double Py; - double Pz; - - double Vx;// ٶ - double Vy; - double Vz; - - double AVx; // ٶ - double AVy; - double AVz; - - double AntXaxisX; // Xָ򣬶ӦǵȲ - double AntXaxisY; // - double AntXaxisZ; // - - double AntYaxisX; // Yָ򣬶ӦǵȲ - double AntYaxisY; // - double AntYaxisZ; // - - double AntZaxisX; // Zָ򣬶ӦǵȲ - double AntZaxisY; // - double AntZaxisZ; // - - - double AntDirecX; // ָ򣬶ӦǵȲ - double AntDirecY; - double AntDirecZ; - - double zeroDopplerDirectX; // 0 շ - double zeroDopplerDirectY; - double zeroDopplerDirectZ; - - double beamAngle; // λ - double AzAngle;// ڶ - - -}; - - -struct SatelliteAntDirect { - double Xst; // -->ʸ - double Yst; - double Zst; - double Vxs; // ٶ - double Vys; - double Vzs; - - double Xant; // ϵµ ʸ - double Yant; - double Zant; - - double Norm; - - double ThetaAnt; // ϵµ theta ϵ - double PhiAnt; -}; - - - -struct RadiationPatternGainPoint { - double theta; - double phi; - double GainValue; -}; - - - - - - - + /// /// ߷ͼĻȡ /// עʹ ˫Բֵ diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSimulationTaskSetting.cpp b/Toolbox/SimulationSARTool/SimulationSAR/SARSimulationTaskSetting.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSimulationTaskSetting.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/SARSimulationTaskSetting.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSimulationTaskSetting.h b/Toolbox/SimulationSARTool/SimulationSAR/SARSimulationTaskSetting.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SARSimulationTaskSetting.h rename to Toolbox/SimulationSARTool/SimulationSAR/SARSimulationTaskSetting.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SatelliteOribtModel.cpp b/Toolbox/SimulationSARTool/SimulationSAR/SatelliteOribtModel.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SatelliteOribtModel.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/SatelliteOribtModel.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SatelliteOribtModel.h b/Toolbox/SimulationSARTool/SimulationSAR/SatelliteOribtModel.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SatelliteOribtModel.h rename to Toolbox/SimulationSARTool/SimulationSAR/SatelliteOribtModel.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SigmaDatabase.cpp b/Toolbox/SimulationSARTool/SimulationSAR/SigmaDatabase.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SigmaDatabase.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/SigmaDatabase.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/SigmaDatabase.h b/Toolbox/SimulationSARTool/SimulationSAR/SigmaDatabase.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/SigmaDatabase.h rename to Toolbox/SimulationSARTool/SimulationSAR/SigmaDatabase.h diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/TBPImageAlgCls.cpp b/Toolbox/SimulationSARTool/SimulationSAR/TBPImageAlgCls.cpp similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/TBPImageAlgCls.cpp rename to Toolbox/SimulationSARTool/SimulationSAR/TBPImageAlgCls.cpp diff --git a/LAMPSARProcessProgram/ToolBox/SimulationSAR/TBPImageAlgCls.h b/Toolbox/SimulationSARTool/SimulationSAR/TBPImageAlgCls.h similarity index 100% rename from LAMPSARProcessProgram/ToolBox/SimulationSAR/TBPImageAlgCls.h rename to Toolbox/SimulationSARTool/SimulationSAR/TBPImageAlgCls.h diff --git a/Toolbox/SimulationSARTool/SimulationSARTool.cpp b/Toolbox/SimulationSARTool/SimulationSARTool.cpp new file mode 100644 index 0000000..1c53824 --- /dev/null +++ b/Toolbox/SimulationSARTool/SimulationSARTool.cpp @@ -0,0 +1,5 @@ +#include "SimulationSARTool.h" + +SimulationSARTool::SimulationSARTool() +{ +} diff --git a/Toolbox/SimulationSARTool/SimulationSARTool.h b/Toolbox/SimulationSARTool/SimulationSARTool.h new file mode 100644 index 0000000..78b4827 --- /dev/null +++ b/Toolbox/SimulationSARTool/SimulationSARTool.h @@ -0,0 +1,9 @@ +#pragma once + +#include "simulationsartool_global.h" + +class SIMULATIONSARTOOL_EXPORT SimulationSARTool +{ +public: + SimulationSARTool(); +}; diff --git a/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj b/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj new file mode 100644 index 0000000..62f477e --- /dev/null +++ b/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj @@ -0,0 +1,161 @@ + + + + + Debug + x64 + + + Release + x64 + + + + {ED06DFCD-4B9F-41F7-8F25-1823C2398142} + QtVS_v304 + 10.0 + 10.0 + $(MSBuildProjectDirectory)\QtMsBuild + + + + DynamicLibrary + v143 + true + Unicode + + + DynamicLibrary + v143 + false + true + Unicode + + + + + + + tools_qt5 + core + debug + + + tools_qt5 + core;xml;opengl;gui;xmlpatterns;widgets;location;printsupport;charts + release + + + + + + + + + + + + + + + + + + + ..\..\BaseCommonLibrary;..\..\BaseCommonLibrary\BaseTool;..\..\BaseCommonLibrary\ToolAbstract;..\..\GPUBaseLib\GPUTool;$(VC_IncludePath);$(WindowsSDK_IncludePath); + $(SolutionDir)$(Platform)\$(Configuration)\Toolbox\ + PluginTool_$(ProjectName) + + + + true + true + + + + + true + SIMULATIONSARTOOL_LIB;%(PreprocessorDefinitions) + Level3 + true + true + + + Windows + true + + + + + true + SIMULATIONSARTOOL_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + Level3 + true + true + true + true + + + Windows + DebugFull + true + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {872ecd6f-30e3-4a1b-b17c-15e87d373ff6} + + + {7ef67daa-dbc0-4b7f-80e8-11b4d2cb7ec2} + + + + + + + + + \ No newline at end of file diff --git a/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj.filters b/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj.filters new file mode 100644 index 0000000..712f29b --- /dev/null +++ b/Toolbox/SimulationSARTool/SimulationSARTool.vcxproj.filters @@ -0,0 +1,144 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + qml;cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + qrc;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + {99349809-55BA-4b9d-BF79-8FDBB0286EB3} + ui + + + {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} + ts + + + {2d0ea8a6-e32f-4ebb-b8df-3f1afdfa2b00} + + + + + Header Files + + + Header Files + + + Source Files + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + SimulationSAR + + + \ No newline at end of file diff --git a/Toolbox/SimulationSARTool/simulationsartool_global.h b/Toolbox/SimulationSARTool/simulationsartool_global.h new file mode 100644 index 0000000..621f91f --- /dev/null +++ b/Toolbox/SimulationSARTool/simulationsartool_global.h @@ -0,0 +1,13 @@ +#pragma once + +#include + +#ifndef BUILD_STATIC +# if defined(SIMULATIONSARTOOL_LIB) +# define SIMULATIONSARTOOL_EXPORT Q_DECL_EXPORT +# else +# define SIMULATIONSARTOOL_EXPORT Q_DECL_IMPORT +# endif +#else +# define SIMULATIONSARTOOL_EXPORT +#endif