vtkProgressMethod
Will Schroeder
will.schroeder at kitware.com
Wed Apr 5 15:28:14 EDT 2000
Hi Sylvain-
>Does anyone could give me hints to use vtkProgressMethod in a C++ program?
>It would help me a lot.
Here's a C++ code fragment...hope it helps.
void Starting (void *arg) {cout << "Starting\n;}
void Ending (void *arg) {cout << "Ending\n"}
void Progress (void *arg)
{
vtkDecimatePro *deci = (vtkDecimatePro *)arg;
cout << Progress: << deci->GetProgress() << endl;
}
vtkDecimatePro *deci = vtkDecimatePro::New();
deci->SetInput( byu->GetOutput() );
deci->SetTargetReduction( 0.75 );
deci->SetStartMethod( Starting, NULL );
deci->SetEndMethod( Ending, NULL );
deci->SetProgressMethod( Progress, deci );
Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20000405/179e0b07/attachment.htm>
More information about the vtkusers
mailing list