VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkCollectTable.h 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 =========================================================================*/ 00015 /*---------------------------------------------------------------------------- 00016 Copyright (c) Sandia Corporation 00017 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00018 ----------------------------------------------------------------------------*/ 00026 #ifndef __vtkCollectTable_h 00027 #define __vtkCollectTable_h 00028 00029 #include "vtkFiltersParallelModule.h" // For export macro 00030 #include "vtkTableAlgorithm.h" 00031 00032 class vtkMultiProcessController; 00033 class vtkSocketController; 00034 00035 class VTKFILTERSPARALLEL_EXPORT vtkCollectTable : public vtkTableAlgorithm 00036 { 00037 public: 00038 static vtkCollectTable *New(); 00039 vtkTypeMacro(vtkCollectTable, vtkTableAlgorithm); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00045 virtual void SetController(vtkMultiProcessController*); 00046 vtkGetObjectMacro(Controller, vtkMultiProcessController); 00048 00050 00053 virtual void SetSocketController(vtkSocketController*); 00054 vtkGetObjectMacro(SocketController, vtkSocketController); 00056 00058 00059 vtkSetMacro(PassThrough, int); 00060 vtkGetMacro(PassThrough, int); 00061 vtkBooleanMacro(PassThrough, int); 00063 00064 protected: 00065 vtkCollectTable(); 00066 ~vtkCollectTable(); 00067 00068 int PassThrough; 00069 00070 // Data generation method 00071 virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00072 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00073 virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00074 00075 vtkMultiProcessController *Controller; 00076 vtkSocketController *SocketController; 00077 00078 private: 00079 vtkCollectTable(const vtkCollectTable&); // Not implemented 00080 void operator=(const vtkCollectTable&); // Not implemented 00081 }; 00082 00083 #endif