VTK  9.2.6
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 =========================================================================*/
23 #ifndef vtkPipelineSize_h
24 #define vtkPipelineSize_h
25 
26 #include "vtkFiltersParallelModule.h" // For export macro
27 #include "vtkObject.h"
28 class vtkAlgorithm;
29 
30 class VTKFILTERSPARALLEL_EXPORT vtkPipelineSize : public vtkObject
31 {
32 public:
33  static vtkPipelineSize* New();
34  vtkTypeMacro(vtkPipelineSize, vtkObject);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
43  unsigned long GetEstimatedSize(vtkAlgorithm* input, int inputPort, int connection);
44 
51  unsigned long GetNumberOfSubPieces(
52  unsigned long memoryLimit, vtkAlgorithm* mapper, int piece, int numPieces);
53 
54 protected:
55  vtkPipelineSize() = default;
56  void GenericComputeSourcePipelineSize(vtkAlgorithm* src, int outputPort, unsigned long size[3]);
57  void ComputeSourcePipelineSize(vtkAlgorithm* src, int outputPort, unsigned long size[3]);
58  void ComputeOutputMemorySize(
59  vtkAlgorithm* src, int outputPort, unsigned long* inputSize, unsigned long size[2]);
60  void GenericComputeOutputMemorySize(
61  vtkAlgorithm* src, int outputPort, unsigned long* inputSize, unsigned long size[2]);
62 
63 private:
64  vtkPipelineSize(const vtkPipelineSize&) = delete;
65  void operator=(const vtkPipelineSize&) = delete;
66 };
67 
68 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
a simple class to control print indentation
Definition: vtkIndent.h:39
compute the memory required by a pipeline
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...