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

dox/Parallel/vtkPipelineSize.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPipelineSize.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 =========================================================================*/ 00026 #ifndef __vtkPipelineSize_h 00027 #define __vtkPipelineSize_h 00028 00029 #include "vtkObject.h" 00030 class vtkSource; 00031 class vtkDataObject; 00032 class vtkPolyDataMapper; 00033 00034 class VTK_PARALLEL_EXPORT vtkPipelineSize : public vtkObject 00035 { 00036 public: 00038 static vtkPipelineSize* New(); 00039 vtkTypeRevisionMacro(vtkPipelineSize,vtkObject); 00040 virtual void PrintSelf(ostream& os, vtkIndent indent); 00042 00047 unsigned long GetEstimatedSize(vtkDataObject *input); 00048 00050 00053 unsigned long GetNumberOfSubPieces(unsigned long memoryLimit, 00054 vtkPolyDataMapper *mapper); 00056 00057 protected: 00058 vtkPipelineSize() {}; 00059 void GenericComputeSourcePipelineSize(vtkSource *src, 00060 vtkDataObject *output, 00061 unsigned long size[3]); 00062 void ComputeSourcePipelineSize(vtkSource *src, 00063 vtkDataObject *output, 00064 unsigned long size[3]); 00065 void ComputeOutputMemorySize( vtkSource *src, 00066 vtkDataObject *output, 00067 unsigned long *inputSize, 00068 unsigned long size[2] ); 00069 void GenericComputeOutputMemorySize( vtkSource *src, 00070 vtkDataObject *output, 00071 unsigned long *inputSize, 00072 unsigned long size[2] ); 00073 void ComputeDataPipelineSize(vtkDataObject *input, 00074 unsigned long sizes[3]); 00075 00076 00077 private: 00078 vtkPipelineSize(const vtkPipelineSize&); // Not implemented. 00079 void operator=(const vtkPipelineSize&); // Not implemented. 00080 }; 00081 00082 #endif 00083 00084