diff --git a/src/src/Rendering/Viewer/ResliceImageViewer.cpp b/src/src/Rendering/Viewer/ResliceImageViewer.cpp index 1243b22..f0b311e 100644 --- a/src/src/Rendering/Viewer/ResliceImageViewer.cpp +++ b/src/src/Rendering/Viewer/ResliceImageViewer.cpp @@ -16,9 +16,10 @@ #include #include #include -#include + #include "Rendering/Legend/ResliceCursorLegendActor.h" +#include "Rendering/Legend/FastOrientationLegendActor.h" #include "Rendering/Legend/ResliceSquareLegendActor.h" #include "Interaction/ResliceImageInteractorStyle.h" @@ -26,13 +27,13 @@ namespace { void GetDirectionString(const double *directionVector, std::string &str) { str.clear(); char dV [3] = {' ', ' ', ' '}; - if (fabs(directionVector[0]) > 0.6){ + if (fabs(directionVector[0]) > 0.3){ dV[0] = directionVector[0] > 0 ? 'L' : 'R'; } - if (fabs(directionVector[1]) > 0.6){ + if (fabs(directionVector[1]) > 0.3){ dV[1] = directionVector[1]> 0 ? 'P' : 'A'; } - if (fabs(directionVector[2]) > 0.6){ + if (fabs(directionVector[2]) > 0.3){ dV[2] = directionVector[2] > 0 ? 'H' : 'F'; } if (fabs(directionVector[2]) > fabs(directionVector[1])) std::swap(dV[1], dV[2]);