Dest Mask Gateway Metric Type
192.168.152.0 255.255.255.0 10.6.224.1 2 Indirect
192.168.134.0 255.255.255.0 10.6.224.1 2 Indirect
192.168.31.0 255.255.255.0 10.6.224.1 2 Indirect
192.168.1.0 255.255.255.0 10.6.224.1 2 Indirect
0.0.0.0 0.0.0.0 10.6.224.1 2 Indirect
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QSharedMemory sharedMemory(GUID);
if (!sharedMemory.create(1))
{
return 1;
}
Test w(argv[1]);
w.show();
return a.exec();
}
void Frame::customLine(int idSegment, intCoord &p1, intCoord &p2, QMap<int, QVector<intCoord>> &boundMap)
{
const int deltaX = abs(p2.x - p1.x);
const int deltaY = abs(p2.y - p1.y);
//const double deltaZ = (abs(p1.z) + abs(p2.z)) / deltaY;
const int signX = p1.x < p2.x ? 1 : -1;
const int signY = p1.y < p2.y ? 1 : -1;
int error = deltaX - deltaY;
int x = p1.x,
y = p1.y;
double tmp;
while(x != p2.x || y != p2.y)
{
const int error2 = error * 2;
/*
if(error2 > -deltaY)
{
tmp = p1.z + double(p2.z - p1.z) * double(double(x - p1.x) / double(p2.x - p1.x));
}
if(error2 < deltaX)
{
tmp += p1.z + double(p2.z - p1.z) * double(double(y - p1.y) / double(p2.y - p1.y));
}
tmp /= 2;
*/
if (p1.x == p2.x)
{
tmp = p1.z + double(p2.z - p1.z) * double(double(y - p1.y) / double(p2.y - p1.y));
}else
{
tmp = p1.z + double(p2.z - p1.z) * double(double(x - p1.x) / double(p2.x - p1.x));
}
if (tmp >= buffZ[x][y])
{
buffFrame[x][y] = idSegment;
screen.setPixelColor(x, y, 4278190080); // Black
buffZ[x][y] = tmp;
}
if (boundMap.find(x) == boundMap.end())
{
intCoord boundCoord;
boundCoord.y = y;
boundCoord.z = tmp;
boundMap.insert(x, {boundCoord, boundCoord});
}else{
if (boundMap[x][0].y > y)
{
boundMap[x][0].y = y;
boundMap[x][0].z = tmp;
}else if(boundMap[x][1].y < y)
{
boundMap[x][1].y = y;
boundMap[x][1].z = tmp;
}
}
if(error2 > -deltaY)
{
error -= deltaY;
x += signX;
}
if(error2 < deltaX)
{
error += deltaX;
y += signY;
}
}
}
if (p1.x == p2.x)
{
tmp = p1.z + double(p2.z - p1.z) * (double(y - p1.y) / double(p2.y - p1.y));
}else
{
tmp = p1.z + double(p2.z - p1.z) * (double(x - p1.x) / double(p2.x - p1.x));
}
00:27:34: Выполняются этапы для проекта filter_Kalmana...
00:27:34: Настройки не изменились, этап qmake пропускается.
00:27:34: Запускается: «D:\InstallerPrograms\Qt\Tools\mingw810_64\bin\mingw32-make.exe» -j4
D:/InstallerPrograms/Qt/Tools/mingw810_64/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'D:/InstallerPrograms/QtProjects/build-filter_Kalmana-Desktop_Qt_5_15_1_MinGW_64_bit-Debug'
mingw32-make[1]: Nothing to be done for 'first'.
mingw32-make[1]: Leaving directory 'D:/InstallerPrograms/QtProjects/build-filter_Kalmana-Desktop_Qt_5_15_1_MinGW_64_bit-Debug'
00:27:35: Процесс «D:\InstallerPrograms\Qt\Tools\mingw810_64\bin\mingw32-make.exe» завершился успешно.
00:27:35: Прошло времени: 00:01.