Hi everyone,<br><br>I have a PNG image based cursor that is initialized at coordinate (0, 0) when it starts. Later, I move it to position (150, 150).<br><br>However, I cannot pick the actor with vtkPropPicker at the new position. It only picks it at the old position of (0, 0);
<br><br>So, I have updated the actor as follows:<br><br>m_cursor.GetActor()->SetPosition(150.0, 150.0);<br><br>My prop picking code looks like this:<br><br>// This is in the interactor style<br>int picked = m_picker->Pick(x, y, 0, this->CurrentRenderer);
<br>if (picked)<br>{<br> vtkProp * prop = m_picker->GetViewProp();<br> // Only true at the old position....<br> if (prop && (prop == (vtkProp *)m_viewer->GetCursorActor()))<br> {<br>
<br> m_viewer->GetCursorActor()->SetPosition(x, y);<br> }<br>}<br><br>Thanks for any help you might give me.<br><br>Anja<br>