<div>Dear All,</div>
<div> </div>
<div>i have modified the AngleWidget.tcl in the VTK examples by adding following lines:</div>
<div> </div>
<div> </div>
<div>vtkAngleRepresentation2D rep ;#defined in original example, not modified</div>
<div>.....</div>
<div>.....</div>
<div> </div>
<div> </div>
<div>vtkAngleWidget widget ;#defined in original example, not modified</div>
<div>.....</div>
<div>.....</div>
<div>widget AddObserver PlacePointEvent OnLeftButtonDown</div>
<div> </div>
<div> </div>
<div>set counter 1</div>
<div><br>proc OnLeftButtonDown { } {</div>
<div>if { $::counter == 1 } {</div>
<div>set apt1 [rep GetPoint1DisplayPosition]<br>puts " 1st point coordinates: [lindex $apt1 0] [lindex $apt1 1] [lindex $apt1 2] "</div>
<div><br>}<br>if { $::counter == 2 } {<br>set apt2 [rep GetCenterDisplayPosition]<br>puts " 2nd point coordinates: [lindex $apt2 0] [lindex $apt2 1] [lindex $apt2 2] "<br>}</div>
<div>if { $::counter == 3 } {<br>set apt3 [rep GetPoint2DisplayPosition]<br>puts " 3rd point coordinates: [lindex $apt3 0] [lindex $apt3 1] [lindex $apt3 2]"<br>}<br>incr ::counter<br>}</div>
<div> </div>
<div> </div>
<div> </div>
<div>basically it will get the initial positions of the 3 points of the angle<br>and print them in the tcl console windows.</div>
<div> </div>
<div>however it return errors as </div>
<div>Generic Warning: In ..\..\vtk.source\Common\vtkTclUtil.cxx, line 726<br>Error returned from vtk/tcl callback:<br>OnLeftButtonDown<br>Object named: rep, could not find requested method: GetPoint1DisplayPosition<br>or the method was called with incorrect arguments.</div>
<div> while executing<br>"rep GetPoint1DisplayPosition"<br> (procedure "OnLeftButtonDown" line 5)<br> invoked from within<br>"OnLeftButtonDown" at line number 1</div>
<div> </div>
<div> </div>
<div> </div>
<div>if anyone has ideas of what is going wrong, please kindly give suggestions on this error.</div>
<div> </div>
<div>thank you</div>
<div> </div>
<div>regards</div>
<div> </div>
<div>O.S</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>