<!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=468462714-26072006>Dear Commnunity
Members,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468462714-26072006>
I've implemented a new Reader function and registered it with the
SetExecutionMethod of the vtkProgrammableSoyrce class.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468462714-26072006>But Reader function
is not executed till the camera is reset. As given in the following
lines</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=468462714-26072006><FONT
size=1></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=2><SPAN class=468462714-26072006><FONT face=Arial size=1>// Read
some points. Use a programmable filter to read them.</FONT></DIV>
<DIV>
<P><FONT size=1><FONT face=Arial>vtkProgrammableSource* pointSource =
vtkProgrammableSource::New();</FONT></P>
<P><FONT face=Arial>readerArgs* argsReader = </FONT></FONT><FONT face=Arial
size=1>new</FONT><FONT size=1><FONT face=Arial> readerArgs;</FONT></P>
<P><FONT face=Arial>argsReader->pointSource = pointSource;</FONT></P>
<P><FONT face=Arial></FONT></P>
<P></FONT><FONT size=1><FONT face=Arial>//argsReader->fileName =
"G:\\VTK\\VTKData\\Data\\cactus.3337.pts";</FONT></P></FONT><FONT size=1>
<P><FONT face=Arial>argsReader->fileName =
"G:\\Data\\3D\\Temp\\FRGCSpring2004\\04701d153.abs";</FONT></P>
<P><FONT face=Arial>pointSource->SetExecuteMethod( ReadPoints,
(</FONT></FONT><FONT face=Arial size=1>void</FONT><FONT size=1><FONT
face=Arial>*) argsReader );</FONT></P>
<P></FONT><FONT size=1><FONT face=Arial>// Create a polydata with the points we
just created.</FONT></P></FONT><FONT size=1>
<P><FONT face=Arial>vtkPolyData* profile =
pointSource->GetPolyDataOutput();</FONT></P>
<P><FONT face=Arial size=2><SPAN class=468462714-26072006>I expect that the
ReadPoints function be executed when the
pointSource->GetPolyDataOutput() method is called. But it isn't call till the
camera is reset by the renderer.</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN class=468462714-26072006>If I'm wrong with the
execution of the ReadPoints function, How can I call it ? If not, What can be
wrong with this settings ?</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
class=468462714-26072006>Sincerely</SPAN></FONT></P>
<P><FONT face=Arial size=2><SPAN
class=468462714-26072006></SPAN></FONT> </P>
<P><FONT face=Arial size=2><SPAN
class=468462714-26072006></SPAN></FONT> </P>
<P><FONT face=Arial
size=2></FONT> </P></FONT></SPAN></FONT></DIV></BODY></HTML>