VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPipelineSize.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 =========================================================================*/ 00022 #ifndef __vtkPipelineSize_h 00023 #define __vtkPipelineSize_h 00024 00025 #include "vtkFiltersParallelModule.h" // For export macro 00026 #include "vtkObject.h" 00027 class vtkAlgorithm; 00028 class vtkPolyDataMapper; 00029 00030 class VTKFILTERSPARALLEL_EXPORT vtkPipelineSize : public vtkObject 00031 { 00032 public: 00033 static vtkPipelineSize* New(); 00034 vtkTypeMacro(vtkPipelineSize,vtkObject); 00035 virtual void PrintSelf(ostream& os, vtkIndent indent); 00036 00038 00042 unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort, 00043 int connection); 00045 00047 00050 unsigned long GetNumberOfSubPieces(unsigned long memoryLimit, 00051 vtkPolyDataMapper *mapper); 00053 00054 protected: 00055 vtkPipelineSize() {}; 00056 void GenericComputeSourcePipelineSize(vtkAlgorithm *src, 00057 int outputPort, 00058 unsigned long size[3]); 00059 void ComputeSourcePipelineSize(vtkAlgorithm *src, 00060 int outputPort, 00061 unsigned long size[3]); 00062 void ComputeOutputMemorySize( vtkAlgorithm *src, 00063 int outputPort, 00064 unsigned long *inputSize, 00065 unsigned long size[2] ); 00066 void GenericComputeOutputMemorySize( vtkAlgorithm *src, 00067 int outputPort, 00068 unsigned long *inputSize, 00069 unsigned long size[2] ); 00070 00071 00072 private: 00073 vtkPipelineSize(const vtkPipelineSize&); // Not implemented. 00074 void operator=(const vtkPipelineSize&); // Not implemented. 00075 }; 00076 00077 #endif 00078 00079