| 105 | } |
| 106 | |
| 107 | void StatusBar::DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, ScalarType pixelValue) |
| 108 | { |
| 109 | if (m_Implementation == nullptr) |
| 110 | return; |
| 111 | |
| 112 | std::ostringstream stream; |
| 113 | stream.imbue(std::locale::classic()); |
| 114 | stream.precision(2); |
| 115 | |
| 116 | WriteCommonImageInfo(stream, point, index, time); |
| 117 | stream << "; Pixel value: "; |
| 118 | |
| 119 | if (fabs(pixelValue) > 1000000 || fabs(pixelValue) < 0.01) |
| 120 | stream << std::scientific; |
| 121 | |
| 122 | stream << pixelValue; |
| 123 | |
| 124 | m_Implementation->DisplayGreyValueText(stream.str().c_str()); |
| 125 | } |
| 126 | |
| 127 | void StatusBar::DisplayImageInfo(Point3D point, itk::Index<3> index, TimePointType time, const char* pixelValue) |
| 128 | { |
nothing calls this directly
no test coverage detected