vtkTesting

Section: Visualization Toolkit Rendering Classes

Usage

This is a VTK regression testing framework. Looks like this: vtkTesting* t = vtkTesting::New();

Two options for setting arguments Option 1: for ( cc = 1; cc < argc; cc ++ ) { t->AddArgument(argv[cc]); }

Option 2: t->AddArgument("-D"); t->AddArgument(my_data_dir); t->AddArgument("-V"); t->AddArgument(my_valid_image);

... Two options of doing testing: Option 1: t->SetRenderWindow(renWin); int res = t->RegressionTest(threshold);

Option 2: int res = t->RegressionTest(test_image, threshold); ...

if ( res == vtkTesting::PASSED ) { Test passed } else { Test failed }

To create an instance of class vtkTesting, simply invoke its constructor as follows

  obj = vtkTesting

Methods

The class vtkTesting has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj is an instance of the vtkTesting class.