<!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>
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> 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 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>
pointSource->SetExecuteMethod( void(*)(void*)f,</FONT><FONT size=2><SPAN
class=806081618-03072006> void* arg</SPAN> )</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 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=806081618-03072006><SPAN
class=806081618-03072006><SPAN class=806081618-03072006>
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> Cem DEMiRKIR</FONT></SPAN></DIV>
<DIV></SPAN><FONT
face="Times New Roman"> </FONT></SPAN></FONT></DIV></BODY></HTML>