#include "mainwindow.h"//#include #include #include #include "xmlparam.h" extern double gfViewAngle; double gfcustom_cam_x = -50; double gfcustom_cam_y = 0; double gfcustom_cam_z = 30; double gfcustom_view_x = 0; double gfcustom_view_y = 0; double gfcustom_view_z = 0; double gfcustom_yawrotate = 0; bool gbShowPointCloud = true; bool gbShowXODRAsLine = false; double gfVehicleZOff = 0.0; bool gbShowCNN = true; void LoadCameraPos(QString strpath) { iv::xmlparam::Xmlparam xparam(strpath.toStdString()); gfVehicleZOff = xparam.GetParam("VehicleZOff", 0.0); gbShowPointCloud = xparam.GetParam("ShowPointCloud",true); gbShowXODRAsLine = xparam.GetParam("ShowXODRAsLine",false); gfViewAngle = xparam.GetParam("TrackingAngle",15.0); if(gfViewAngle>90)gfViewAngle = 15.0; if(gfViewAngle<=0)gfViewAngle = 15.0; gfcustom_cam_x = xparam.GetParam("custom_cam_x",-50.0); gfcustom_cam_y = xparam.GetParam("custom_cam_y",0.0); gfcustom_cam_z = xparam.GetParam("custom_cam_z",30.0); gfcustom_view_x = xparam.GetParam("custom_view_x",0.0); gfcustom_view_y = xparam.GetParam("custom_view_y",0.0); gfcustom_view_z = xparam.GetParam("custom_view_z",0.0); gfcustom_yawrotate = xparam.GetParam("custom_yawrotate",0.0) *M_PI/180.0; gbShowCNN = xparam.GetParam("ShowCNN",true); } int main(int argc, char *argv[]) { QApplication a(argc, argv); QString strpath = QCoreApplication::applicationDirPath(); if(argc < 2) strpath = strpath + "/view_ndtmatching.xml"; else strpath = argv[1]; LoadCameraPos(strpath); MainWindow w; w.show(); ADCLicenseServ adclicense; int checklicense=adclicense.CheckLincese(); if (checklicense==1) { return a.exec(); } }