# Add a label to the 3D glyph

**URL:** <https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171>\
**Category:** Feature requests\
**Created:** [July 4, 2022, 3:31pm UTC](https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171 "2022-07-04T15:31:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)\
**Post date:** [July 4, 2022, 3:31pm UTC](https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171/1 "2022-07-04T15:31:27Z")

</div>

Hi all,  
I am using the 3D glyph to orient and position a plane. It would be interesting to me to be able to add a label on the red axis, for instance (see figure, where a “P” is always visible along the red axis).  
I have tried using a MRML markup fiducial and updating its position according to the transform matrix of the plane node. But it would be cleaner to implement something at a lower level (in vtk).  
Could you please advise me on this topic if you have already done similar things?

Thank you very much for any help!

![Screenshot from 2022-07-04 17-24-05](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/6/86165b5fdeb46ab49a43614f32e6f5981794218a.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 6, 2022, 12:55am UTC](https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171/2 "2022-07-06T00:55:02Z")

</div>

I see that this feature would be useful but it is not currently available. It would be nice if you could implement it.

It would require storing axis names in the `vtkMRMLMarkupsNode` and display in `vtkSlicerMarkupsWidgetRepresentation`.

---

<div class="post-metadata">

**Author:** ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)\
**Post date:** [July 6, 2022, 6:13am UTC](https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171/3 "2022-07-06T06:13:31Z")

</div>

Thanks this will definitely help me to implement this.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [June 2, 2023, 8:19am UTC](https://discourse.slicer.org/t/add-a-label-to-the-3d-glyph/24171/4 "2023-06-02T08:19:30Z")

</div>

Just to follow up, we have a basic implementation working (also thanks to @Sunderlandkyl for his help with 2D visibility of the labels), and after some cleanup I’ll do a PR soon.
