# Multiple control points in the "Edit" position state

**URL:** https://discourse.slicer.org/t/multiple-control-points-in-the-edit-position-state/20276
**Category:** Support
**Tags:** markups
**Created:** [October 20, 2021, 9:54pm UTC](https://discourse.slicer.org/t/multiple-control-points-in-the-edit-position-state/20276 "2021-10-20T21:54:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 20, 2021, 9:54pm UTC](https://discourse.slicer.org/t/multiple-control-points-in-the-edit-position-state/20276/1 "2021-10-20T21:54:51Z")

</div>

Should the number of control points equal the summation of number of defined and number of undefined control points?

Here I had a control point in the “Edit” state which I copied and pasted into the same list to create multiple. Number of control points is 8, number of defined control points is 1 and number of undefined controls points is 0. A control point in “Edit” mode is considered neither defined or undefined? Or should it actually be considered undefined?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/d/ddb5209e48cb3c8f0524626e6f5a145db6b5d414.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: [October 21, 2021, 4:38am UTC](https://discourse.slicer.org/t/multiple-control-points-in-the-edit-position-state/20276/2 "2021-10-21T04:38:53Z")

</div>

> [@jamesobutler](#):
>
> Should the number of control points equal the summation of number of defined and number of undefined control points?

GetNumberOfDefinedControlPoints: returns PositionDefined or PositionDefined+PositionPreview

GetNumberOfUndefinedControlPoints: returns PositionUndefined or PositionUndefined+PositionPreview

None of them includes PositionMissing and including of PositionPreview is optional.

Therefore, sum of defined and undefined control points does not equal the number of control points.

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [October 21, 2021, 4:27pm UTC](https://discourse.slicer.org/t/multiple-control-points-in-the-edit-position-state/20276/3 "2021-10-21T16:27:47Z")

</div>

Is there currently not a method in the API to query the number of control points that are currently in the “Edit” or “Skip placement” state?

It is confusing to me that a point can be in the “Edit” state, but have a position shown in the table. I guess this is part of what is being described at:

> <https://github.com/Slicer/Slicer/issues/5911>
>
> When clicking the control point table to edit a point then the point position is… filled immediately. This position gets deleted if I move over to a view and leave the view and the edit icon disappears from the table. It would be better if starting editing would just change the icon to edit (would not show the coordinates) and after going over a view and coming back, the edit icon would stay displayed in the table while placement mode is enabled. This would make it clear for the user which point will be the next to place (without need to hover over any view) and would ensure that the table state would not be changed just because the user temporarily moves the mouse over a view.
> 
> \## Environment
> \- Slicer version: Slicer-4.11.0-2021-09-27
> \- Operating system: Windows
> 
> @smrolfe
