VTK
vtkPolyDataStreamer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataStreamer.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 =========================================================================*/
33 #ifndef vtkPolyDataStreamer_h
34 #define vtkPolyDataStreamer_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkStreamerBase.h"
38 
39 class vtkAppendPolyData;
40 
41 class VTKFILTERSGENERAL_EXPORT vtkPolyDataStreamer : public vtkStreamerBase
42 {
43 public:
44  static vtkPolyDataStreamer *New();
45 
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
50 
53  void SetNumberOfStreamDivisions(int num);
55  {
56  return this->NumberOfPasses;
57  }
59 
61 
65  vtkSetMacro(ColorByPiece, vtkTypeBool);
66  vtkGetMacro(ColorByPiece, vtkTypeBool);
67  vtkBooleanMacro(ColorByPiece, vtkTypeBool);
69 
70 
71 protected:
73  ~vtkPolyDataStreamer() override;
74 
75  // see algorithm for more info
78 
80 
81  int ExecutePass(vtkInformationVector **inputVector,
82  vtkInformationVector *outputVector) override;
83 
84  int PostExecute(vtkInformationVector **inputVector,
85  vtkInformationVector *outputVector) override;
86 
88 private:
90  void operator=(const vtkPolyDataStreamer&) = delete;
91 
92  vtkAppendPolyData* Append;
93 };
94 
95 #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:69
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:33
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.