VTK
vtkTransmitPolyDataPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTransmitPolyDataPiece.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 =========================================================================*/
24 #ifndef __vtkTransmitPolyDataPiece_h
25 #define __vtkTransmitPolyDataPiece_h
26 
27 #include "vtkFiltersParallelModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 
31 
33 {
34 public:
35  static vtkTransmitPolyDataPiece *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
42  virtual void SetController(vtkMultiProcessController*);
45 
47 
48  vtkSetMacro(CreateGhostCells, int);
49  vtkGetMacro(CreateGhostCells, int);
50  vtkBooleanMacro(CreateGhostCells, int);
52 
53 protected:
56 
57  // Data generation method
59  void RootExecute(vtkPolyData *input, vtkPolyData *output, vtkInformation *outInfo);
60  void SatelliteExecute(int procId, vtkPolyData *output, vtkInformation *outInfo);
63 
66 
67 private:
68  vtkTransmitPolyDataPiece(const vtkTransmitPolyDataPiece&); // Not implemented
69  void operator=(const vtkTransmitPolyDataPiece&); // Not implemented
70 };
71 
72 #endif
Return specified piece, including specified number of ghost levels.
Store vtkAlgorithm input/output information.
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:83
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
#define VTKFILTERSPARALLEL_EXPORT
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
Store zero or more vtkInformation instances.
#define vtkBooleanMacro(name, type)
Definition: vtkSetGet.h:234
vtkMultiProcessController * Controller
#define vtkSetMacro(name, type)
Definition: vtkSetGet.h:69
Multiprocessing communication superclass.