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 =========================================================================*/
20 #ifndef vtkPipelineSize_h
21 #define vtkPipelineSize_h
22 
23 #include "vtkFiltersParallelModule.h" // For export macro
24 #include "vtkObject.h"
25 class vtkAlgorithm;
26 class vtkPolyDataMapper;
27 
28 class VTKFILTERSPARALLEL_EXPORT vtkPipelineSize : public vtkObject
29 {
30 public:
31  static vtkPipelineSize* New();
32  vtkTypeMacro(vtkPipelineSize,vtkObject);
33  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
34 
41  unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort,
42  int connection);
43 
48  unsigned long GetNumberOfSubPieces(unsigned long memoryLimit,
49  vtkPolyDataMapper *mapper);
50 
51 protected:
53  void GenericComputeSourcePipelineSize(vtkAlgorithm *src,
54  int outputPort,
55  unsigned long size[3]);
56  void ComputeSourcePipelineSize(vtkAlgorithm *src,
57  int outputPort,
58  unsigned long size[3]);
59  void ComputeOutputMemorySize( vtkAlgorithm *src,
60  int outputPort,
61  unsigned long *inputSize,
62  unsigned long size[2] );
63  void GenericComputeOutputMemorySize( vtkAlgorithm *src,
64  int outputPort,
65  unsigned long *inputSize,
66  unsigned long size[2] );
67 
68 
69 private:
70  vtkPipelineSize(const vtkPipelineSize&) VTK_DELETE_FUNCTION;
71  void operator=(const vtkPipelineSize&) VTK_DELETE_FUNCTION;
72 };
73 
74 #endif
75 
76 
abstract base class for most VTK objects
Definition: vtkObject.h:53
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:53
a simple class to control print indentation
Definition: vtkIndent.h:33
map vtkPolyData to graphics primitives
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...