Skip to content

Commit

Permalink
STYLE: removed unnecessary numbers in 2DWCSAxis
Browse files Browse the repository at this point in the history
  • Loading branch information
Punzo committed Feb 20, 2018
1 parent 52ef669 commit ba68044
Show file tree
Hide file tree
Showing 7 changed files with 1,418 additions and 674 deletions.
14 changes: 8 additions & 6 deletions AstroSmoothing/qSlicerAstroSmoothingModuleWidget.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1025,15 +1025,16 @@ void qSlicerAstroSmoothingModuleWidget::onMRMLAstroSmoothingParametersNodeModifi
d->DoubleSpinBoxZ->show();
if (inputVolumeNode)
{
double outputValues[3] = {0.}, oldOutputValues[3] = {0.};
double cdelt1 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT1"));
d->CDELT1LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueX(cdelt1, 3).c_str());
->GetDisplayStringFromValueX(cdelt1, oldOutputValues, outputValues, 3).c_str());
double cdelt2 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT2"));
d->CDELT2LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueY(cdelt2, 3).c_str());
->GetDisplayStringFromValueY(cdelt2, oldOutputValues, outputValues, 3).c_str());
double cdelt3 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT3"));
d->CDELT3LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueZ(cdelt3, 3).c_str());
->GetDisplayStringFromValueZ(cdelt3, oldOutputValues, outputValues, 3).c_str());
}
d->SigmaXLabel->setText("N<sub>X</sub>:");
d->SigmaYLabel->setText("N<sub>Y</sub>:");
Expand Down Expand Up @@ -1114,15 +1115,16 @@ void qSlicerAstroSmoothingModuleWidget::onMRMLAstroSmoothingParametersNodeModifi
d->DoubleSpinBoxZ->show();
if (inputVolumeNode)
{
double outputValues[3] = {0.}, oldOutputValues[3] = {0.};
double cdelt1 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT1"));
d->CDELT1LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueY(cdelt1, 3).c_str());
->GetDisplayStringFromValueY(cdelt1, oldOutputValues, outputValues, 3).c_str());
double cdelt2 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT2"));
d->CDELT2LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueY(cdelt2, 3).c_str());
->GetDisplayStringFromValueY(cdelt2, oldOutputValues, outputValues, 3).c_str());
double cdelt3 = StringToDouble(inputVolumeNode->GetAttribute("SlicerAstro.CDELT3"));
d->CDELT3LabelValue->setText(inputVolumeNode->GetAstroVolumeDisplayNode()
->GetDisplayStringFromValueZ(cdelt3, 3).c_str());
->GetDisplayStringFromValueZ(cdelt3, oldOutputValues, outputValues, 3).c_str());
}
d->SigmaXLabel->setText("FWHM<sub>X</sub>:");
d->SigmaYLabel->setText("FWHM<sub>Y</sub>:");
Expand Down
Loading

0 comments on commit ba68044

Please sign in to comment.