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 =========================================================================*/
36 #ifndef vtkPolyDataStreamer_h
37 #define vtkPolyDataStreamer_h
38 
39 #include "vtkFiltersGeneralModule.h" // For export macro
40 #include "vtkStreamerBase.h"
41 
42 class vtkAppendPolyData;
43 
44 class VTKFILTERSGENERAL_EXPORT vtkPolyDataStreamer : public vtkStreamerBase
45 {
46 public:
47  static vtkPolyDataStreamer *New();
48 
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
53 
56  void SetNumberOfStreamDivisions(int num);
58  {
59  return this->NumberOfPasses;
60  }
62 
64 
68  vtkSetMacro(ColorByPiece, vtkTypeBool);
69  vtkGetMacro(ColorByPiece, vtkTypeBool);
70  vtkBooleanMacro(ColorByPiece, vtkTypeBool);
72 
73 
74 protected:
76  ~vtkPolyDataStreamer() override;
77 
78  // see algorithm for more info
81 
83 
84  int ExecutePass(vtkInformationVector **inputVector,
85  vtkInformationVector *outputVector) override;
86 
87  int PostExecute(vtkInformationVector **inputVector,
88  vtkInformationVector *outputVector) override;
89 
91 private:
93  void operator=(const vtkPolyDataStreamer&) = delete;
94 
95  vtkAppendPolyData* Append;
96 };
97 
98 #endif
vtkStreamerBase.h
vtkStreamerBase::ExecutePass
virtual int ExecutePass(vtkInformationVector **inputVector, vtkInformationVector *outputVector)=0
vtkStreamerBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStreamerBase::NumberOfPasses
unsigned int NumberOfPasses
Definition: vtkStreamerBase.h:88
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkStreamerBase::PostExecute
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
Definition: vtkStreamerBase.h:82
vtkAppendPolyData
appends one or more polygonal datasets together
Definition: vtkAppendPolyData.h:48
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataStreamer::GetNumberOfStreamDivisions
int GetNumberOfStreamDivisions()
Definition: vtkPolyDataStreamer.h:57
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkStreamerBase
Superclass for filters that stream input pipeline.
Definition: vtkStreamerBase.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkPolyDataStreamer::ColorByPiece
vtkTypeBool ColorByPiece
Definition: vtkPolyDataStreamer.h:90
vtkPolyDataStreamer
Streamer appends input pieces to the output.
Definition: vtkPolyDataStreamer.h:44
vtkStreamerBase::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
This is called by the superclass.
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69