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

# IO/vtkUnstructuredGridReader.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkUnstructuredGridReader.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 __vtkUnstructuredGridReader_h
    00053 #define __vtkUnstructuredGridReader_h
    00054
    00055 #include "vtkDataReader.h"
    00056
    00057 class vtkUnstructuredGrid;
    00058
    00059 class VTK_IO_EXPORT vtkUnstructuredGridReader : public vtkDataReader
    00060 {
    00061 public:
    00062   static vtkUnstructuredGridReader *New();
    00063   vtkTypeRevisionMacro(vtkUnstructuredGridReader,vtkDataReader);
    00064   void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00067
    00068   vtkUnstructuredGrid *GetOutput();
    00069   vtkUnstructuredGrid *GetOutput(int idx)
    00070     {return (vtkUnstructuredGrid *) this->vtkSource::GetOutput(idx); };
    00071   void SetOutput(vtkUnstructuredGrid *output);
    00073
    00074 protected:
    00075   vtkUnstructuredGridReader();
    00076   ~vtkUnstructuredGridReader();
    00077
    00078   void Execute();
    00079
    00080   // Since the Outputs[0] has the same UpdateExtent format
    00081   // as the generic DataObject we can copy the UpdateExtent
    00082   // as a default behavior.
    00083   void ComputeInputUpdateExtents(vtkDataObject *output);
    00084
    00085 private:
    00086   vtkUnstructuredGridReader(const vtkUnstructuredGridReader&);  // Not implemented.
    00087   void operator=(const vtkUnstructuredGridReader&);  // Not implemented.
    00088 };
    00089
    00090 #endif
    00091
    00092