22 #ifndef vtkThreadedImageAlgorithm_h
23 #define vtkThreadedImageAlgorithm_h
25 #include "vtkCommonExecutionModelModule.h"
27 #include "vtkThreads.h"
29 VTK_ABI_NAMESPACE_BEGIN
47 int extent[6],
int threadId);
50 virtual void ThreadedExecute(
57 vtkGetMacro(EnableSMP,
bool);
58 vtkSetMacro(EnableSMP,
bool);
65 static void SetGlobalDefaultEnableSMP(
bool enable);
66 static bool GetGlobalDefaultEnableSMP();
74 vtkSetVector3Macro(MinimumPieceSize,
int);
75 vtkGetVector3Macro(MinimumPieceSize,
int);
85 vtkSetMacro(DesiredBytesPerPiece,
vtkIdType);
86 vtkGetMacro(DesiredBytesPerPiece,
vtkIdType);
97 vtkSetClampMacro(SplitMode,
int, 0, 2);
101 vtkGetMacro(SplitMode,
int);
109 vtkSetClampMacro(NumberOfThreads,
int, 1, VTK_MAX_THREADS);
110 vtkGetMacro(NumberOfThreads,
int);
116 virtual int SplitExtent(
int splitExt[6],
int startExt[6],
int num,
int total);
138 int MinimumPieceSize[3];
172 friend class vtkThreadedImageAlgorithmFunctor;
175 VTK_ABI_NAMESPACE_END
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