Parallel/vtkPDataSetWriter.h Source File

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

# Parallel/vtkPDataSetWriter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkPDataSetWriter.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 =========================================================================*/
    00041 #ifndef __vtkPDataSetWriter_h
    00042 #define __vtkPDataSetWriter_h
    00043
    00044 #include "vtkDataSetWriter.h"
    00045
    00046 class vtkImageData;
    00047 class vtkRectilinearGrid;
    00048 class vtkStructuredGrid;
    00049
    00050 class VTK_PARALLEL_EXPORT vtkPDataSetWriter : public vtkDataSetWriter
    00051 {
    00052 public:
    00053   void PrintSelf(ostream& os, vtkIndent indent);
    00054   vtkTypeRevisionMacro(vtkPDataSetWriter,vtkDataSetWriter);
    00055   static vtkPDataSetWriter *New();
    00056
    00058   virtual void Write();
    00059
    00061
    00062   void SetNumberOfPieces(int num);
    00063   vtkGetMacro(NumberOfPieces, int);
    00065
    00067
    00069   vtkSetMacro(GhostLevel, int);
    00070   vtkGetMacro(GhostLevel, int);
    00072
    00074
    00078   vtkSetMacro(StartPiece, int);
    00079   vtkGetMacro(StartPiece, int);
    00080   vtkSetMacro(EndPiece, int);
    00081   vtkGetMacro(EndPiece, int);
    00083
    00085
    00087   vtkSetStringMacro(FilePattern);
    00088   vtkGetStringMacro(FilePattern);
    00090
    00092
    00097   vtkSetMacro(UseRelativeFileNames, int);
    00098   vtkGetMacro(UseRelativeFileNames, int);
    00099   vtkBooleanMacro(UseRelativeFileNames, int);
    00101
    00102 protected:
    00103   vtkPDataSetWriter();
    00104   ~vtkPDataSetWriter();
    00105
    00106 //BTX
    00107   ostream *OpenFile();
    00108   void WriteUnstructuredMetaData(vtkDataSet *input,
    00109                           char *root, char *str, ostream *fptr);
    00110   void WriteImageMetaData(vtkImageData *input,
    00111                           char *root, char *str, ostream *fptr);
    00112   void WriteRectilinearGridMetaData(vtkRectilinearGrid *input,
    00113                           char *root, char *str, ostream *fptr);
    00114   void WriteStructuredGridMetaData(vtkStructuredGrid *input,
    00115                           char *root, char *str, ostream *fptr);
    00116 //ETX
    00117
    00118   int StartPiece;
    00119   int EndPiece;
    00120   int NumberOfPieces;
    00121   int GhostLevel;
    00122
    00123   int UseRelativeFileNames;
    00124
    00125   char *FilePattern;
    00126
    00127 private:
    00128   vtkPDataSetWriter(const vtkPDataSetWriter&); // Not implemented
    00129   void operator=(const vtkPDataSetWriter&); // Not implemented
    00130 };
    00131
    00132 #endif