Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# IO/vtkPolyDataReader.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPolyDataReader.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00052 #ifndef __vtkPolyDataReader_h
    00053 #define __vtkPolyDataReader_h
    00054
    00055 #include "vtkDataReader.h"
    00056
    00057 class vtkPolyData;
    00058
    00059 class VTK_IO_EXPORT vtkPolyDataReader : public vtkDataReader
    00060 {
    00061 public:
    00062   static vtkPolyDataReader *New();
    00063   vtkTypeRevisionMacro(vtkPolyDataReader,vtkDataReader);
    00064   void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00067
    00068   vtkPolyData *GetOutput();
    00069   vtkPolyData *GetOutput(int idx)
    00070     {return (vtkPolyData *) this->vtkSource::GetOutput(idx); };
    00071   void SetOutput(vtkPolyData *output);
    00073
    00074 protected:
    00075   vtkPolyDataReader();
    00076   ~vtkPolyDataReader();
    00077
    00078   void Execute();
    00079
    00080   // Update extent of PolyData is specified in pieces.
    00081   // Since all DataObjects should be able to set UpdateExent as pieces,
    00082   // just copy output->UpdateExtent  all Inputs.
    00083   void ComputeInputUpdateExtents(vtkDataObject *output);
    00084
    00085   // Used by streaming: The extent of the output being processed
    00086   // by the execute method. Set in the ComputeInputUpdateExtents method.
    00087   int ExecutePiece;
    00088   int ExecuteNumberOfPieces;
    00089   int ExecuteGhostLevel;
    00090 private:
    00091   vtkPolyDataReader(const vtkPolyDataReader&);  // Not implemented.
    00092   void operator=(const vtkPolyDataReader&);  // Not implemented.
    00093 };
    00094
    00095 #endif
    00096
    00097