VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTransmitStructuredGridPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransmitStructuredGridPiece.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 __vtkTransmitStructuredGridPiece_h
29 #define __vtkTransmitStructuredGridPiece_h
30 
31 #include "vtkFiltersParallelModule.h" // For export macro
32 #include "vtkStructuredGridAlgorithm.h"
33 
34 class vtkMultiProcessController;
35 
36 class VTKFILTERSPARALLEL_EXPORT vtkTransmitStructuredGridPiece : public vtkStructuredGridAlgorithm
37 {
38 public:
39  static vtkTransmitStructuredGridPiece *New();
40  vtkTypeMacro(vtkTransmitStructuredGridPiece, vtkStructuredGridAlgorithm);
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(vtkStructuredGrid *input, vtkStructuredGrid *output,
64  vtkInformation *outInfo);
65  void SatelliteExecute(int procId, vtkStructuredGrid *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:
75  void operator=(const vtkTransmitStructuredGridPiece&); // Not implemented
76 };
77 
78 #endif
For parallel processing, restrict IO to the first process in the cluster.