Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkPolyDataStreamer.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataStreamer.h,v $
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 =========================================================================*/
00047 #ifndef __vtkPolyDataStreamer_h
00048 #define __vtkPolyDataStreamer_h
00049 
00050 #include "vtkPolyDataToPolyDataFilter.h"
00051 
00052 class VTK_GRAPHICS_EXPORT vtkPolyDataStreamer : public vtkPolyDataToPolyDataFilter
00053 {
00054 public:
00055   static vtkPolyDataStreamer *New();
00056 
00057   vtkTypeRevisionMacro(vtkPolyDataStreamer,vtkPolyDataToPolyDataFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   void SetNumberOfStreamDivisions(int num);
00063   vtkGetMacro(NumberOfStreamDivisions,int);
00065   
00067 
00069   vtkSetMacro(ColorByPiece, int);
00070   vtkGetMacro(ColorByPiece, int);
00071   vtkBooleanMacro(ColorByPiece, int);
00073 
00074 
00075 protected:
00076   vtkPolyDataStreamer();
00077   ~vtkPolyDataStreamer();
00078   
00079   // Append the pieces.
00080   void Execute();
00081   void ComputeInputUpdateExtents(vtkDataObject *output);
00082   
00083   int NumberOfStreamDivisions;
00084   int ColorByPiece;
00085 private:
00086   vtkPolyDataStreamer(const vtkPolyDataStreamer&);  // Not implemented.
00087   void operator=(const vtkPolyDataStreamer&);  // Not implemented.
00088 };
00089 
00090 #endif
00091 
00092 
00093 
00094 
00095