VTK
vtkPipelineSize.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPipelineSize.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef __vtkPipelineSize_h
23 #define __vtkPipelineSize_h
24 
25 #include "vtkObject.h"
26 class vtkAlgorithm;
27 class vtkPolyDataMapper;
28 
30 {
31 public:
32  static vtkPipelineSize* New();
33  vtkTypeMacro(vtkPipelineSize,vtkObject);
34  virtual void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
41  unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort,
42  int connection);
44 
46 
49  unsigned long GetNumberOfSubPieces(unsigned long memoryLimit,
50  vtkPolyDataMapper *mapper);
52 
53 protected:
55  void GenericComputeSourcePipelineSize(vtkAlgorithm *src,
56  int outputPort,
57  unsigned long size[3]);
58  void ComputeSourcePipelineSize(vtkAlgorithm *src,
59  int outputPort,
60  unsigned long size[3]);
61  void ComputeOutputMemorySize( vtkAlgorithm *src,
62  int outputPort,
63  unsigned long *inputSize,
64  unsigned long size[2] );
65  void GenericComputeOutputMemorySize( vtkAlgorithm *src,
66  int outputPort,
67  unsigned long *inputSize,
68  unsigned long size[2] );
69 
70 
71 private:
72  vtkPipelineSize(const vtkPipelineSize&); // Not implemented.
73  void operator=(const vtkPipelineSize&); // Not implemented.
74 };
75 
76 #endif
77 
78