HomePhabricator
Diffusion MITK 374315806acb

BREAKING: LabelSetImage::AddLayer() does not call LabelSetImage::SetActiveLayer…

Description

BREAKING: LabelSetImage::AddLayer() does not call LabelSetImage::SetActiveLayer(newLayerID) any more.
Why: 1) There where reasons where this is unwanted behavior.

  1. It is not the job of AddLayer(), change maximizes cohision.
  2. ActiveLayer/ActiveLabel are deprecated; thus it makes no sense to add

code complexity for them.
How to adapt: If you need to change the active layer, call SetActiveLayer
explicitly after calling AddLayer. User the return value of AddLayer.

Details

Provenance
flocaAuthored on Feb 12 2024, 2:50 PM
flocaPushed on Feb 12 2024, 2:52 PM
Differential Revision
Restricted Differential Revision
Parents
rMITKe45f7aad35d0: + changed SurfaceInterpolationController::m_SelectedSegmentation to a…
Branches
Unknown
Tags
Unknown