How to display a line (vtkMRMLMarkupsLineNode) with interaction handles by python?
@lassoan@Juicy@jamesobutler @jcfr @pieper
like that:
How to display a line (vtkMRMLMarkupsLineNode) with interaction handles by python?
@lassoan@Juicy@jamesobutler @jcfr @pieper
like that:
SetHandlesInteractive
.Is it possible to further control the position of the “origin” and “rotation” or “translate” of the handle?
是否可以进一步控制handle的"原点"的位置以及"rotation"或者"translate"呢?
Yes. They are all methods in the Markups Display Node class.
I want the “Origin” of this Handle to be at the end of the line segment instead of the midpoint, how to do it?
我想让这个Handle的原点,在线段的一端而不是中点,怎么做呢?
That’s not something that I believe is possible at the moment.
@jamesobutler
Thanks
You can position a line shaped actor (e.g., that you generated using SlicerIGT extension’s Create Models module) using a transform. You can update the transform from a markups plane node by a few lines of Python code. This technique is used in the Bone Reconstruction Planner extension.
Hello, I am trying to find a way to grab 2 planes (generated from markups module) and lock (?) combine them together so when I transform them in position, they move in harmony.
How can I do this programmatically? assuming I have displayNodes of both planes.
Thanks in advance!
Also would there be a way to adjust the size of the interactive handles programmatically?
Thank you & sorry for many questions
没太看懂你的问题, 不过可以看看这个👇或许对你有帮助
I don’t understand your question very well, but you can take a look at this👇 maybe it will help you…
How to rotate OrthogonalSlicesDeg in slices?, getPlaneIntersectionPoint
Thank you, but I do not think it is similar to my problem.
My problem is: