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

vtkTransmitPolyDataPiece.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkTransmitPolyDataPiece.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 __vtkTransmitPolyDataPiece_h
00037 #define __vtkTransmitPolyDataPiece_h
00038 
00039 #include "vtkPolyDataToPolyDataFilter.h"
00040 
00041 class vtkMultiProcessController;
00042 
00043 class VTK_PARALLEL_EXPORT vtkTransmitPolyDataPiece : public vtkPolyDataToPolyDataFilter
00044 {
00045 public:
00046   static vtkTransmitPolyDataPiece *New();
00047   vtkTypeRevisionMacro(vtkTransmitPolyDataPiece, vtkPolyDataToPolyDataFilter);
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   vtkTransmitPolyDataPiece();
00066   ~vtkTransmitPolyDataPiece();
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   vtkPolyData *Buffer;
00076   int BufferPiece;
00077   int BufferNumberOfPieces;
00078   int BufferGhostLevel;
00079 
00080   int CreateGhostCells;
00081   vtkMultiProcessController *Controller;
00082 
00083 private:
00084   vtkTransmitPolyDataPiece(const vtkTransmitPolyDataPiece&); // Not implemented
00085   void operator=(const vtkTransmitPolyDataPiece&); // Not implemented
00086 };
00087 
00088 #endif