<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5346.5" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006>Hi 
everyone,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006>&nbsp;&nbsp;&nbsp; 
I'd like to use vtkProgrammableSource class to read a 3D data file. For this 
purpose I've written </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=806081618-03072006><EM>&nbsp;&nbsp;&nbsp; vtkPolyData* ReadPoints( 
vtkProgrammableSource* pointSource, const char* fileName 
)</EM></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006>function to read the data. But to&nbsp;set this 
function to the class I need to use </SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006><EM><FONT size=2>&nbsp;&nbsp;&nbsp; 
pointSource-&gt;SetExecuteMethod( void(*)(void*)f,</FONT><FONT size=2><SPAN 
class=806081618-03072006> void* arg</SPAN>&nbsp;)</FONT></EM><SPAN 
class=806081618-03072006><FONT size=2> </FONT></SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006><SPAN class=806081618-03072006>method of the class. But 
there is no an example&nbsp;in C++ regards to usage of it and I can not figure 
out How to call this method by defining f and arg parameters. How can I set my 
function to the class to read the data to the point source object 
?</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006><SPAN 
class=806081618-03072006></SPAN></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006><SPAN class=806081618-03072006>&nbsp;&nbsp;&nbsp; 
Sincerely</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><SPAN class=806081618-03072006><SPAN 
class=806081618-03072006><SPAN class=806081618-03072006><FONT 
size=2>&nbsp;&nbsp;&nbsp; Cem DEMiRKIR</FONT></SPAN></DIV>
<DIV></SPAN><FONT 
face="Times New Roman">&nbsp;</FONT></SPAN></FONT></DIV></BODY></HTML>