Closed allemangD closed 3 years ago
Note that each point annotation, since it is a Fiducials list, can contain multiple points. However these would all be projected to the same plane, as with the control points in a curve annotation. I've rotated the plane in this screenshot, and the points are projected:
Also, the "Thickness" and "Representation Type" widgets are only enabled if the current annotation is a curve. A points annotation is selected in this screenshot:
Introduce two subclasses of Annotation:
See FiducialsAnnotation for a simple example of how to create a new markup type. See ClosedCurveAnnotation.updateModel for an example of how to keep a model updated.
I've included docstrings, but I'll summarize my goal for how new annotation types may be added:
You can see how I do this for FiducialAnnotation and ClosedCurveAnnotation: https://github.com/BICCN/cell-locator/blob/5388988a0d798351720a91fed9bb2aae472d8094/Modules/Scripted/Home/Home.py#L197-L202 https://github.com/BICCN/cell-locator/blob/5388988a0d798351720a91fed9bb2aae472d8094/Modules/Scripted/Home/Home.py#L205-L271