BICCN / cell-locator

manually align specimens to annotated 3D spaces
https://cell-locator.readthedocs.io
Other
19 stars 7 forks source link

FIX: Changing ontology resets orientation of Slice view. #190

Closed allemangD closed 3 years ago

allemangD commented 3 years ago

Set QSettings SubjectHierarchy/ResetViewOrientationOnShowVolume to False.

See https://github.com/Slicer/Slicer/blob/ebb9303b538495e75519126648b5e621d3f7dc97/Modules/Loadable/Volumes/SubjectHierarchyPlugins/qSlicerSubjectHierarchyVolumesPlugin.cxx#L432-L463

bool resetOrientation = d->resetViewOrientationOnShow();
bool resetFov = d->resetFieldOfViewOnShow();
if (resetOrientation)
  {
    // Set to default orientation before rotation so that the view is snapped
    // closest to the default orientation of this slice view.
    sliceNode->SetOrientationToDefault();

Fixes #178