Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitknnInteractiveRenderingHelpers.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitknnInteractiveRenderingHelpers_h
14 #define mitknnInteractiveRenderingHelpers_h
15 
16 namespace mitk
17 {
18  class DataNode;
19 }
20 
21 namespace mitk::nnInteractive
22 {
23  // Hides the given node in every 3D render window by setting a
24  // renderer-specific "visible" = false for each registered 3D render window.
25  // The global visibility (used by the 2D render windows) is left untouched.
26  // nnInteractive prompts are meaningful only on the 2D plane they were drawn
27  // on, so mirroring them in 3D just adds clutter.
28  //
29  // Setting the per-renderer override once at node creation is sufficient even
30  // for nodes whose global visibility is toggled afterwards (the live scribble
31  // and lasso feedback nodes do this during a stroke): a renderer-specific
32  // property takes precedence over the global one. A null node is a no-op.
34 }
35 
36 #endif
Central node class of the MITK data tree, associating a data object with properties and mappers.
Definition: mitkDataNode.h:72
void HideNodeIn3DRenderWindows(DataNode *node)
Find image slices visible on a given plane.