VTK  9.3.1
vtkPolyDataStreamer.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkPolyDataStreamer_h
25 #define vtkPolyDataStreamer_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
28 #include "vtkStreamerBase.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class vtkAppendPolyData;
32 
33 class VTKFILTERSGENERAL_EXPORT vtkPolyDataStreamer : public vtkStreamerBase
34 {
35 public:
36  static vtkPolyDataStreamer* New();
37 
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  void SetNumberOfStreamDivisions(int num);
48 
50 
54  vtkSetMacro(ColorByPiece, vtkTypeBool);
55  vtkGetMacro(ColorByPiece, vtkTypeBool);
56  vtkBooleanMacro(ColorByPiece, vtkTypeBool);
58 
59 protected:
61  ~vtkPolyDataStreamer() override;
62 
63  // see algorithm for more info
66 
68 
69  int ExecutePass(vtkInformationVector** inputVector, vtkInformationVector* outputVector) override;
70 
71  int PostExecute(vtkInformationVector** inputVector, vtkInformationVector* outputVector) override;
72 
74 
75 private:
77  void operator=(const vtkPolyDataStreamer&) = delete;
78 
79  vtkAppendPolyData* Append;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition: vtkABI.h:64
Streamer appends input pieces to the output.
Superclass for filters that stream input pipeline.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
appends one or more polygonal datasets together
unsigned int NumberOfPasses
int GetNumberOfStreamDivisions()
Set the number of pieces to divide the problem into.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int ExecutePass(vtkInformationVector **inputVector, vtkInformationVector *outputVector)=0
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
This is called by the superclass.