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

vtkPipelineSize.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPipelineSize.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 =========================================================================*/
00032 #ifndef __vtkPipelineSize_h
00033 #define __vtkPipelineSize_h
00034 
00035 #include "vtkObject.h"
00036 class vtkAlgorithm;
00037 class vtkPolyDataMapper;
00038 
00039 class VTK_PARALLEL_EXPORT vtkPipelineSize : public vtkObject
00040 {
00041 public:
00043   static vtkPipelineSize* New();
00044   vtkTypeRevisionMacro(vtkPipelineSize,vtkObject);
00045   virtual void PrintSelf(ostream& os, vtkIndent indent);
00047 
00049 
00053   unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort, 
00054                                  int connection);
00056 
00058 
00061   unsigned long GetNumberOfSubPieces(unsigned long memoryLimit, 
00062                                      vtkPolyDataMapper *mapper);
00064   
00065 protected:
00066   vtkPipelineSize() {};
00067   void GenericComputeSourcePipelineSize(vtkAlgorithm *src, 
00068                                         int outputPort,
00069                                         unsigned long size[3]);
00070   void ComputeSourcePipelineSize(vtkAlgorithm *src, 
00071                                  int outputPort,
00072                                  unsigned long size[3]);
00073   void ComputeOutputMemorySize( vtkAlgorithm *src,
00074                                 int outputPort,
00075                                 unsigned long *inputSize,
00076                                 unsigned long size[2] );
00077   void GenericComputeOutputMemorySize( vtkAlgorithm *src,
00078                                        int outputPort,
00079                                        unsigned long *inputSize,
00080                                        unsigned long size[2] );
00081 
00082     
00083 private:
00084   vtkPipelineSize(const vtkPipelineSize&);  // Not implemented.
00085   void operator=(const vtkPipelineSize&);  // Not implemented.
00086 };
00087 
00088 #endif
00089 
00090