vtkMultithreader is a class that provides support for multithreaded execution using sproc() on an SGI, or pthread_create on any platform supporting POSIX threads. This class can be used to execute a single method on multiple threads, or to specify a method per thread.
-
Examples:
- vtkMultiThreader (Examples)
-
Tests:
- vtkMultiThreader (Tests)
1 #ifndef INITIAL_OPENGL 2 #define INITIAL_OPENGL 3 #include <vtkAutoInit.h> 4 VTK_MODULE_INIT(vtkRenderingOpenGL) 5 VTK_MODULE_INIT(vtkInteractionStyle) 6 #endif 7 #include <iostream> 8 using namespace std; 9 #include "vtkSmartPointer.h" 10 11 #include "vtkDEMReader.h" 12 #include "vtkPolyData.h" 13 #include "vtkPolyDataMapper.h" 14 #include "vtkActor.h" 15 #include "vtkRenderer.h" 16 #include "vtkRenderWindow.h" 17 #include "vtkRenderWindowInteractor.h" 18 #include "vtkProperty.h" 19 #include "vtkCamera.h" 20 #include "vtkImageDataGeometryFilter.h" 21 #include "vtkWarpScalar.h" 22 #include "vtkPolyDataNormals.h" 23 #include "vtkLODActor.h