<div dir="ltr">
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">Hi, </span><br><div><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">I'm using vtkLineWidget2 to draw a number lines in
vtkResliceImageViewer
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">render window. </span>
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">After drawing the line when it moves using mouse
interactions, I need to </span></span><br></span></div><div><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">collect its new coordinates. </span>
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">For this need to identify which line (
<span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkLineWidget2<span> </span></span> object) has moved.
I'm using interaction </span>
<span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">callback to track the movement. But as the render
window contains more than </span><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">one drawn line, how can track which line has
selected for moving? </span><br></span></span></span></div><div><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">In vtk, have any default mechanism for tracking actors/widgets in a render window?</span></span></span></span></div><div><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">or</span></span></span></span></div><div><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white"><span style="font-size:10pt;line-height:115%;font-family:Verdana,sans-serif;color:black;background:white">do I have to inherit
<span style="color:rgb(0,0,0);font-family:Verdana,sans-serif;font-size:13.3333px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkLineWidget2<span> to include mechanism to track the object?</span></span></span></span></span></span></div></div>