Delete dead code in CoordItem
CoordItem
has quite large blocks of code which are never executed, e.g.
Click to expand
/////////////////////////////////////////////////////
// Draw a cube (Quader) near coord system //
/////////////////////////////////////////////////////
bool drawCube = false;
if(drawCube)
{
painter->setPen(Qt::green);
// Boden
p[0] = extCalib->getImagePoint(cv::Point3f(100, 100, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 100, 0));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 100, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 200, 0));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 200, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 200, 0));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(100, 200, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 100, 0));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
// Seiten
p[0] = extCalib->getImagePoint(cv::Point3f(100, 100, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 100, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 100, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 100, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(100, 200, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 200, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 200, 0));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 200, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
// Oben
p[0] = extCalib->getImagePoint(cv::Point3f(100, 100, 100));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 100, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 100, 100));
p[1] = extCalib->getImagePoint(cv::Point3f(200, 200, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(200, 200, 100));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 200, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
p[0] = extCalib->getImagePoint(cv::Point3f(100, 200, 100));
p[1] = extCalib->getImagePoint(cv::Point3f(100, 100, 100));
painter->drawLine(QPointF(p[0].x, p[0].y), QPointF(p[1].x, p[1].y));
}
They are mostly not hard to write again and make the current code hard to read. Therefore I propose deleting them.