VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTransmitImageDataPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransmitImageDataPiece.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkTransmitImageDataPiece_h
29 #define __vtkTransmitImageDataPiece_h
30 
31 #include "vtkFiltersParallelImagingModule.h" // For export macro
32 #include "vtkImageAlgorithm.h"
33 
34 class vtkMultiProcessController;
35 
36 class VTKFILTERSPARALLELIMAGING_EXPORT vtkTransmitImageDataPiece : public vtkImageAlgorithm
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
46  virtual void SetController(vtkMultiProcessController*);
47  vtkGetObjectMacro(Controller, vtkMultiProcessController);
49 
51 
52  vtkSetMacro(CreateGhostCells, int);
53  vtkGetMacro(CreateGhostCells, int);
54  vtkBooleanMacro(CreateGhostCells, int);
56 
57 protected:
60 
61  // Data generation method
62  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
63  void RootExecute(vtkImageData *input, vtkImageData *output,
64  vtkInformation *outInfo);
65  void SatelliteExecute(int procId, vtkImageData *output,
66  vtkInformation *outInfo);
67  virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
68  virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
69 
71  vtkMultiProcessController *Controller;
72 
73 private:
74  vtkTransmitImageDataPiece(const vtkTransmitImageDataPiece&); // Not implemented
75  void operator=(const vtkTransmitImageDataPiece&); // Not implemented
76 };
77 
78 #endif
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMultiProcessController * Controller
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
For parallel processing, restrict IO to the first process in the cluste.r.
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)