You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Docs/getting_started.md
+93-2Lines changed: 93 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,8 +220,9 @@ The state of the widget and its current mouse cursor can be returned using the f
220
220
*`virtual int GetMouseCursor() const`: Return custom mouse cursor VTK enum.
221
221
*`virtual int GetWidgetState() const`: Return current widget state enum (default idle).
222
222
223
-
It is advised for complex interactions to
224
-
use [vtkMRMLAbstractWidget objects](https://github.com/Slicer/Slicer/blob/main/Libs/MRML/DisplayableManager/vtkMRMLAbstractWidget.h).
223
+
It is advised for complex interactions to use
224
+
either [vtkMRMLLayerDMWidgetEventTranslationNode objects](https://github.com/KitwareMedical/SlicerLayerDisplayableManager/blob/main/LayerDM/MRML/vtkMRMLLayerDMWidgetEventTranslationNode.h)
225
+
or [vtkMRMLAbstractWidget objects](https://github.com/Slicer/Slicer/blob/main/Libs/MRML/DisplayableManager/vtkMRMLAbstractWidget.h).
## Defining custom event translation across pipelines
397
+
398
+
For complex interactions, it is recommended to use
399
+
either [vtkMRMLLayerDMWidgetEventTranslationNode objects](https://github.com/KitwareMedical/SlicerLayerDisplayableManager/blob/main/LayerDM/MRML/vtkMRMLLayerDMWidgetEventTranslationNode.h)
400
+
or [vtkMRMLAbstractWidget objects](https://github.com/Slicer/Slicer/blob/main/Libs/MRML/DisplayableManager/vtkMRMLAbstractWidget.h).
401
+
402
+
The vtkMRMLLayerDMWidgetEventTranslationNode are compatible with scene exchange and can be used as an easy way to define
403
+
and customize interactions for given pipelines.
404
+
405
+
The easiest way to register a TL node is using the LayerDM logic class.
406
+
The logic class can register singleton TL nodes which will not be saved by the scene to provide the default expected TL
407
+
behavior.
408
+
409
+
```python
410
+
import slicer
411
+
from slicer import vtkSlicerLayerDMLogic
412
+
413
+
414
+
def configureTLNode(node):
415
+
"""Configuration logic"""
416
+
417
+
418
+
# The following code creates an configures a default translation node
0 commit comments