VTK
dox/Filters/General/vtkPolyDataStreamer.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPolyDataStreamer.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00035 #ifndef __vtkPolyDataStreamer_h
00036 #define __vtkPolyDataStreamer_h
00037 
00038 #include "vtkFiltersGeneralModule.h" // For export macro
00039 #include "vtkStreamerBase.h"
00040 
00041 class vtkAppendPolyData;
00042 
00043 class VTKFILTERSGENERAL_EXPORT vtkPolyDataStreamer : public vtkStreamerBase
00044 {
00045 public:
00046   static vtkPolyDataStreamer *New();
00047 
00048   vtkTypeMacro(vtkPolyDataStreamer,vtkStreamerBase);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00053   void SetNumberOfStreamDivisions(int num);
00054   int GetNumberOfStreamDivisions()
00055   {
00056     return this->NumberOfPasses;
00057   }
00059 
00061 
00063   vtkSetMacro(ColorByPiece, int);
00064   vtkGetMacro(ColorByPiece, int);
00065   vtkBooleanMacro(ColorByPiece, int);
00067 
00068 
00069 protected:
00070   vtkPolyDataStreamer();
00071   ~vtkPolyDataStreamer();
00072 
00073   // see algorithm for more info
00074   virtual int FillOutputPortInformation(int port, vtkInformation* info);
00075   virtual int FillInputPortInformation(int port, vtkInformation* info);
00076 
00077   int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00078 
00079   virtual int ExecutePass(vtkInformationVector **inputVector,
00080                           vtkInformationVector *outputVector);
00081 
00082   virtual int PostExecute(vtkInformationVector **inputVector,
00083                           vtkInformationVector *outputVector);
00084 
00085   int ColorByPiece;
00086 private:
00087   vtkPolyDataStreamer(const vtkPolyDataStreamer&);  // Not implemented.
00088   void operator=(const vtkPolyDataStreamer&);  // Not implemented.
00089 
00090   vtkAppendPolyData* Append;
00091 };
00092 
00093 #endif