|
|
@ -2248,13 +2248,21 @@ void MainWindow::show3d() |
|
|
|
|
|
|
|
if(_isScanConvDynamicCont) |
|
|
|
{ |
|
|
|
_colorMap->data()->setSize(static_cast<qint32>(scanConversionParams.pixelXNo), |
|
|
|
static_cast<qint32>(scanConversionParams.pixelZNo + 1)); |
|
|
|
_colorMap->data()->setRange(QCPRange(1, |
|
|
|
static_cast<qint32>(scanConversionParams.pixelXNo)), |
|
|
|
QCPRange(1, |
|
|
|
static_cast<qint32>(scanConversionParams.pixelZNo + |
|
|
|
1))); |
|
|
|
//_colorMap->data()->setSize(static_cast<qint32>(scanConversionParams.pixelXNo),
|
|
|
|
//static_cast<qint32>(scanConversionParams.pixelZNo + 1));
|
|
|
|
//_colorMap->data()->setRange(QCPRange(1,
|
|
|
|
//static_cast<qint32>(scanConversionParams.pixelXNo)),
|
|
|
|
//QCPRange(1,
|
|
|
|
//static_cast<qint32>(scanConversionParams.pixelZNo +
|
|
|
|
//1)));
|
|
|
|
_colorMap->data()->setSize(903, 552); |
|
|
|
_colorMap->data()->setRange(QCPRange(1, 903), QCPRange(1, 552)); |
|
|
|
quint32 offset = 0; |
|
|
|
if(903 > scanConversionParams.pixelXNo) |
|
|
|
{ |
|
|
|
offset = (903 - scanConversionParams.pixelXNo) / 2; |
|
|
|
} |
|
|
|
|
|
|
|
for(quint32 ln = 0; ln < scanConversionParams.pixelXNo; ln += 1) |
|
|
|
{ |
|
|
|
for(quint32 pnt = 0; pnt < scanConversionParams.pixelZNo + 1; pnt += 1) |
|
|
@ -2318,7 +2326,7 @@ void MainWindow::show3d() |
|
|
|
{ |
|
|
|
scanValue = 255; |
|
|
|
} |
|
|
|
_colorMap->data()->setCell(static_cast<qint32>(ln), |
|
|
|
_colorMap->data()->setCell(static_cast<qint32>(ln + offset), |
|
|
|
static_cast<qint32>(scanConversionParams.pixelZNo - |
|
|
|
pnt), |
|
|
|
static_cast<double>(scanValue)); |
|
|
|