<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I am trying to retrieve the scalar values 
associated with&nbsp;picked points in my polydata object. I use PointPicker to 
pick the points and have a class "CallBack1" associated with the picker as 
Observer to the EndPickEvent. I have used the class before and everything works 
fine to get the picked coordinates, but I have trouble now accessing the scalar 
array within the class.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Extract of the callback class:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><EM>void CMyCallback1:: Execute(vtkObject *caller, 
unsigned long, void*)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
vtkWin32RenderWindowInteractor *iren = 
reinterpret_cast&lt;vtkWin32RenderWindowInteractor*&gt;(caller);<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
vtkPointPicker *picker = (vtkPointPicker 
*)iren-&gt;GetPicker();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>&nbsp;vtkDoubleArray 
*shapeind1 = (vtkDoubleArray *) 
picker-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Shape_Index");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vtkDoubleArray 
*curvind1 =&nbsp; (vtkDoubleArray *) 
picker-&gt;GetActor()-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Curve_Index");<BR></STRONG>&nbsp;&nbsp;&nbsp; 
&nbsp;if (picker-&gt;GetPointId() != 
-1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<STRONG> 
..........</STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;</EM></FONT><FONT face=Arial 
size=2><EM>&nbsp;}<BR>}</EM></FONT></DIV>
<DIV><EM><FONT face=Arial size=2></FONT></EM>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I use 
"picker-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Shape_Index");",&nbsp;I 
get the following error while compiling,</FONT></DIV>
<DIV><FONT face=Arial size=2><EM>error C2039: 'GetInput' : is not a member of 
'vtkAbstractMapper3D'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
c:\vtk\vtk42\rendering\vtkabstractmapper3d.h(40) : see declaration of 
'vtkAbstractMapper3D'</EM></FONT></DIV>
<DIV><EM><FONT face=Arial size=2></FONT></EM>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I use 
"picker-&gt;GetActor()-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Curve_Index");",&nbsp;I 
get unhandled exception errors.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is there any other way of getting the associated 
scalar value or getting the pointer to the polydata?</FONT></DIV>
<DIV><FONT face=Arial size=2>Any help/suggestion&nbsp;would 
be&nbsp;appreciated.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks in Advance.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Prathap</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial 
size=2>---------------------------------------------------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Prathap M Nair</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Research Student<BR>Multimedia and Vision 
Lab<BR>Queen Mary, University of London<BR>Mile End Road, London E1 4NS 
(UK)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>