Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Parallel/vtkTransmitUnstructuredGridPiece.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTransmitUnstructuredGridPiece.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00028 #ifndef __vtkTransmitUnstructuredGridPiece_h
00029 #define __vtkTransmitUnstructuredGridPiece_h
00030 
00031 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00032 
00033 class vtkMultiProcessController;
00034 
00035 class VTK_PARALLEL_EXPORT vtkTransmitUnstructuredGridPiece : public vtkUnstructuredGridToUnstructuredGridFilter
00036 {
00037 public:
00038   static vtkTransmitUnstructuredGridPiece *New();
00039   vtkTypeRevisionMacro(vtkTransmitUnstructuredGridPiece, vtkUnstructuredGridToUnstructuredGridFilter);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041   
00043 
00045   virtual void SetController(vtkMultiProcessController*);
00046   vtkGetObjectMacro(Controller, vtkMultiProcessController);
00048 
00050 
00051   vtkSetMacro(CreateGhostCells, int);
00052   vtkGetMacro(CreateGhostCells, int);
00053   vtkBooleanMacro(CreateGhostCells, int);
00055   
00056 protected:
00057   vtkTransmitUnstructuredGridPiece();
00058   ~vtkTransmitUnstructuredGridPiece();
00059 
00060   // Data generation method
00061   void Execute();
00062   void RootExecute();
00063   void SatelliteExecute(int procId);
00064   void ExecuteInformation();
00065   void ComputeInputUpdateExtents(vtkDataObject *out);
00066  
00067   int CreateGhostCells;
00068   vtkMultiProcessController *Controller;
00069 
00070 private:
00071   vtkTransmitUnstructuredGridPiece(const vtkTransmitUnstructuredGridPiece&); // Not implemented
00072   void operator=(const vtkTransmitUnstructuredGridPiece&); // Not implemented
00073 };
00074 
00075 #endif