34 #ifndef vtkThreadedImageAlgorithm_h
35 #define vtkThreadedImageAlgorithm_h
37 #include "vtkCommonExecutionModelModule.h"
39 #include "vtkThreads.h"
58 int extent[6],
int threadId);
61 virtual void ThreadedExecute(
68 vtkGetMacro(EnableSMP,
bool);
69 vtkSetMacro(EnableSMP,
bool);
76 static void SetGlobalDefaultEnableSMP(
bool enable);
77 static bool GetGlobalDefaultEnableSMP();
85 vtkSetVector3Macro(MinimumPieceSize,
int);
86 vtkGetVector3Macro(MinimumPieceSize,
int);
96 vtkSetMacro(DesiredBytesPerPiece,
vtkIdType);
97 vtkGetMacro(DesiredBytesPerPiece,
vtkIdType);
108 vtkSetClampMacro(SplitMode,
int, 0, 2);
112 vtkGetMacro(SplitMode,
int);
120 vtkSetClampMacro(NumberOfThreads,
int, 1, VTK_MAX_THREADS);
121 vtkGetMacro(NumberOfThreads,
int);
127 virtual int SplitExtent(
int splitExt[6],
int startExt[6],
int num,
int total);
149 int MinimumPieceSize[3];
183 friend class vtkThreadedImageAlgorithmFunctor;
void SetSplitModeToSlab()
Set the method used to divide the volume into pieces.
A class for performing multithreaded execution.
Generic filter that has one input.
vtkMultiThreader * Threader
a simple class to control print indentation
topologically and geometrically regular array of data
void SetSplitModeToBlock()
Set the method used to divide the volume into pieces.
void SetSplitModeToBeam()
Set the method used to divide the volume into pieces.
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
static bool GlobalDefaultEnableSMP
vtkIdType DesiredBytesPerPiece