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 =========================================================================*/
23 #ifndef vtkPipelineSize_h
24 #define vtkPipelineSize_h
25 
26 #include "vtkFiltersParallelModule.h" // For export macro
27 #include "vtkObject.h"
28 class vtkAlgorithm;
29 class vtkPolyDataMapper;
30 
31 class VTKFILTERSPARALLEL_EXPORT vtkPipelineSize : public vtkObject
32 {
33 public:
34  static vtkPipelineSize* New();
35  vtkTypeMacro(vtkPipelineSize,vtkObject);
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
44  unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort,
45  int connection);
46 
51  unsigned long GetNumberOfSubPieces(unsigned long memoryLimit,
52  vtkPolyDataMapper *mapper);
53 
54 protected:
57  int outputPort,
58  unsigned long size[3]);
60  int outputPort,
61  unsigned long size[3]);
63  int outputPort,
64  unsigned long *inputSize,
65  unsigned long size[2] );
67  int outputPort,
68  unsigned long *inputSize,
69  unsigned long size[2] );
70 
71 
72 private:
73  vtkPipelineSize(const vtkPipelineSize&) = delete;
74  void operator=(const vtkPipelineSize&) = delete;
75 };
76 
77 #endif
78 
79 
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:43
vtkPipelineSize::ComputeSourcePipelineSize
void ComputeSourcePipelineSize(vtkAlgorithm *src, int outputPort, unsigned long size[3])
vtkPipelineSize::GenericComputeSourcePipelineSize
void GenericComputeSourcePipelineSize(vtkAlgorithm *src, int outputPort, unsigned long size[3])
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkPipelineSize::GenericComputeOutputMemorySize
void GenericComputeOutputMemorySize(vtkAlgorithm *src, int outputPort, unsigned long *inputSize, unsigned long size[2])
vtkPipelineSize::GetNumberOfSubPieces
unsigned long GetNumberOfSubPieces(unsigned long memoryLimit, vtkPolyDataMapper *mapper)
Determine how many subpieces a mapper should use to fit a target memory limit.
vtkPipelineSize::ComputeOutputMemorySize
void ComputeOutputMemorySize(vtkAlgorithm *src, int outputPort, unsigned long *inputSize, unsigned long size[2])
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkPipelineSize::New
static vtkPipelineSize * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkObject.h
vtkPipelineSize::GetEstimatedSize
unsigned long GetEstimatedSize(vtkAlgorithm *input, int inputPort, int connection)
Compute an estimate of how much memory a pipline will require in kibibytes (1024 bytes) This is only ...
vtkPipelineSize::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPipelineSize::vtkPipelineSize
vtkPipelineSize()
Definition: vtkPipelineSize.h:55
vtkPipelineSize
compute the memory required by a pipeline
Definition: vtkPipelineSize.h:32