# Markups for angle, line and closed/open spline

**URL:** <https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729>\
**Category:** Development\
**Tags:** markups\
**Created:** [November 12, 2018, 9:31am UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729 "2018-11-12T09:31:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide\_Punzo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/davide_punzo/32/66104_2.png) [@Davide\_Punzo](https://discourse.slicer.org/u/Davide_Punzo)\
**Post date:** [November 12, 2018, 9:31am UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/1 "2018-11-12T09:31:13Z")

</div>

Hi all,

I am starting to work on VTK widgets / Slicer Markups for:

1. Adding middle/right/double clicks vtk events / Slicer Markups signals
2. Few customization to the VTK widgets (e.g., display a centroid point for closed spline)
3. Adding Markups MRML nodes and widgets for angle, lines and closed/open spline

The general idea is to incorporate the vtkContourWidget, vtkLineWidget2 and vtkAngleWidget in Slicer as Markups.

I have a couple of questions:

1. Is anyone actively working on Markups related projects? If yes, it will be nice to coordinates the devs.
2. @Johan_Andruejol you have implemented Markups for curve and plane in [Slicer/Slicer#1010](https://github.com/Slicer/Slicer/pull/1010). I still have to look at the implementation, but may you notify what is the status of this? Thanks!

Cheers,  
Davide.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 3, 2019, 8:29pm UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/2 "2019-01-03T20:29:49Z")

</div>

@Davide_Punzo

As discussed in the long thread [A user's proposal for Markups Module enhancements](https://discourse.slicer.org/t/a-users-proposal-for-markups-module-enhancements/3362), we have some interest in markups module improvement. One of our requested features is the ability to use a template that defines landmark labels and their description and have the user selectively populate this. I think the PW would be good time to coordinate these efforts.

I won’t be attending but @smrolfe is. I am not sure where to provide this, but I am attaching a video which shows the landmarking behavior we would like to emulate in Slicer. Sorry there is no audio.  
[https://bit.ly/fiducials](https://bit.ly/fiducials)

Basically user loads a file that contains the fiducials descriptions and by clicking on one of them and then clicking on the 3D renderer, it records its 3D coordinate. Landmarking doesn’t have to go in a sequence, but simply initiated by user clicking on a landmark on the list. Selecting an existing landmark with a coordinate a second time and clicking on 3D viewer updates its the coordinates with the new values.

---

<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:** [January 4, 2019, 2:48am UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/3 "2019-01-04T02:48:20Z")

</div>

We’ve already planned for such features. Currently we are working on lower-level infrastructure. I’ll be at the project week and work with @smrolfe on this.

@smrolfe Could you please add a project page [here](https://na-mic.github.io/ProjectWeek/PW30_2019_GranCanaria/)?

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [January 4, 2019, 7:32pm UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/4 "2019-01-04T19:32:38Z")

</div>

Thanks @lassoan, I will update soon with the project page.

---

<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:** [January 11, 2019, 5:28pm UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/5 "2019-01-11T17:28:14Z")

</div>

I’ve created the project page: [https://github.com/NA-MIC/ProjectWeek/blob/master/PW30\_2019\_GranCanaria/Projects/MarkupsRedesign/README.md](https://github.com/NA-MIC/ProjectWeek/blob/master/PW30_2019_GranCanaria/Projects/MarkupsRedesign/README.md)

---

<div class="post-metadata">

**Author:** ![smrolfe](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/smrolfe/32/3659_2.png) [@smrolfe](https://discourse.slicer.org/u/smrolfe)\
**Post date:** [January 11, 2019, 8:19pm UTC](https://discourse.slicer.org/t/markups-for-angle-line-and-closed-open-spline/4729/6 "2019-01-11T20:19:53Z")

</div>

Thanks for your help @lassoan.
