<div>Dear:</div><div>I'm a new learner in vtk and I have a question in this days.</div><div><br></div><div>I want to make a mark line with vtk on the renderwindow.</div><div>The task I want to do is that <span style="line-height: 1.5;">when I press my Letfbutton, </span></div><div><span style="line-height: 1.5;">I begin to draw the line ,and when </span><span style="line-height: 1.5;">I release leftbutton, </span></div><div><span style="line-height: 1.5;">it is end.</span></div><div><span style="line-height: 1.5;"><br></span></div><div>I use class qvtkWidget to show it, a callback class which inherit</div><div>class vtkCommand. I got the mouse current postion by </div><div>vtkRenderWindowInteractor, use it to creat vtkPoints and vtkLine,</div><div>and add them into vtkcellarray to create vtkpolydata. when a</div><div>new point add in , i create a new line add into the array, and I create </div><div>a new actor to add into the renderer. But when i press left button, </div><div>the mark line is not be drawn, and i release the button , the mark line </div><div>can show finally.I use the same sentences in the callback function for the</div><div>even press and mousemove, the function in press works well , but another</div><div>was bad.</div><div><br></div><div>So I want to know why ,and how can i solve it. Thank you!</div><div>Yao</div>