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

vtkTransmitUnstructuredGridPiece.h

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