Go to the documentation of this file.
34 #ifndef vtkThreadedImageAlgorithm_h
35 #define vtkThreadedImageAlgorithm_h
37 #include "vtkCommonExecutionModelModule.h"
60 int extent[6],
int threadId);
65 int extent[6],
int threadId);
71 vtkGetMacro(EnableSMP,
bool);
88 vtkSetVector3Macro(MinimumPieceSize,
int);
89 vtkGetVector3Macro(MinimumPieceSize,
int);
111 vtkSetClampMacro(SplitMode,
int, 0, 2);
115 vtkGetMacro(SplitMode,
int);
123 vtkSetClampMacro( NumberOfThreads,
int, 1, VTK_MAX_THREADS );
124 vtkGetMacro( NumberOfThreads,
int );
141 static
bool GlobalDefaultEnableSMP;
153 int MinimumPieceSize[3];
193 friend class vtkThreadedImageAlgorithmFunctor;
virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId)
If the subclass does not define an Execute method, then the task will be broken up,...
void SetSplitModeToSlab()
virtual void SMPRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, vtkIdType begin, vtkIdType end, vtkIdType pieces, int extent[6])
Execute ThreadedRequestData for the given set of pieces.
vtkThreadedImageAlgorithm()
Generic filter that has one input.
Generic algorithm superclass for image algs.
vtkIdType DesiredBytesPerPiece
A class for performing multithreaded execution.
~vtkThreadedImageAlgorithm() override
virtual int SplitExtent(int splitExt[6], int startExt[6], int num, int total)
Putting this here until I merge graphics and imaging streaming.
static bool GetGlobalDefaultEnableSMP()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
topologically and geometrically regular array of data
a simple class to control print indentation
void SetSplitModeToBlock()
void SetSplitModeToBeam()
virtual void PrepareImageData(vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inDataObjects=0, vtkImageData **outDataObjects=0)
Allocate space for output data and copy attributes from first input.
static void SetGlobalDefaultEnableSMP(bool enable)
Global Disable SMP for all derived Imaging filters.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void ThreadedExecute(vtkImageData *inData, vtkImageData *outData, int extent[6], int threadId)
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.