<html>
Hi Sylvain-<br>
<br>
<blockquote type=cite cite>Does anyone could give me hints to use
vtkProgressMethod in a C++ program?<br>
It would help me a lot.</blockquote><br>
<br>
Here's a C++ code fragment...hope it helps.<br>
<dl>
<dd>void Starting (void *arg) {cout << "Starting\n”;}
<dd>void Ending (void *arg) {cout << "Ending\n"}
<dd>void Progress (void *arg)
<dd>{
<dd> vtkDecimatePro *deci = (vtkDecimatePro *)arg;
<dd> cout << ”Progress: “ << deci->GetProgress()
<< endl;
<dd>}<br>
<br>
<dd>vtkDecimatePro *deci = vtkDecimatePro::New();
<dd> deci->SetInput( byu->GetOutput() );
<dd> deci->SetTargetReduction( 0.75 );
<dd> deci->SetStartMethod( Starting, NULL );
<dd> deci->SetEndMethod( Ending, NULL );
<dd> deci->SetProgressMethod( Progress, deci
);<br>
<br>
<font face="Arial, Helvetica">
</dl>Will</font></html>