/usr/include/paraview/vtkPDataSetWriter.h is in paraview-dev 4.0.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPDataSetWriter.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkPDataSetWriter - Manages writing pieces of a data set.
// .SECTION Description
// vtkPDataSetWriter will write a piece of a file, and will also create
// a metadata file that lists all of the files in a data set.
#ifndef __vtkPDataSetWriter_h
#define __vtkPDataSetWriter_h
#include "vtkIOParallelModule.h" // For export macro
#include "vtkDataSetWriter.h"
class vtkImageData;
class vtkRectilinearGrid;
class vtkStructuredGrid;
class VTKIOPARALLEL_EXPORT vtkPDataSetWriter : public vtkDataSetWriter
{
public:
void PrintSelf(ostream& os, vtkIndent indent);
vtkTypeMacro(vtkPDataSetWriter,vtkDataSetWriter);
static vtkPDataSetWriter *New();
// Description:
// Write the pvtk file and cooresponding vtk files.
virtual int Write();
// Description:
// This is how many pieces the whole data set will be divided into.
void SetNumberOfPieces(int num);
vtkGetMacro(NumberOfPieces, int);
// Description:
// Extra ghost cells will be written out to each piece file
// if this value is larger than 0.
vtkSetMacro(GhostLevel, int);
vtkGetMacro(GhostLevel, int);
// Description:
// This is the range of pieces that that this writer is
// responsible for writing. All pieces must be written
// by some process. The process that writes piece 0 also
// writes the pvtk file that lists all the piece file names.
vtkSetMacro(StartPiece, int);
vtkGetMacro(StartPiece, int);
vtkSetMacro(EndPiece, int);
vtkGetMacro(EndPiece, int);
// Description:
// This file pattern uses the file name and piece number
// to contruct a file name for the piece file.
vtkSetStringMacro(FilePattern);
vtkGetStringMacro(FilePattern);
// Description:
// This flag determines whether to use absolute paths for the piece files.
// By default the pieces are put in the main directory, and the piece file
// names in the meta data pvtk file are relative to this directory.
// This should make moving the whole lot to another directory, an easier task.
vtkSetMacro(UseRelativeFileNames, int);
vtkGetMacro(UseRelativeFileNames, int);
vtkBooleanMacro(UseRelativeFileNames, int);
protected:
vtkPDataSetWriter();
~vtkPDataSetWriter();
//BTX
ostream *OpenFile();
int WriteUnstructuredMetaData(vtkDataSet *input,
char *root, char *str, ostream *fptr);
int WriteImageMetaData(vtkImageData *input,
char *root, char *str, ostream *fptr);
int WriteRectilinearGridMetaData(vtkRectilinearGrid *input,
char *root, char *str, ostream *fptr);
int WriteStructuredGridMetaData(vtkStructuredGrid *input,
char *root, char *str, ostream *fptr);
//ETX
int StartPiece;
int EndPiece;
int NumberOfPieces;
int GhostLevel;
int UseRelativeFileNames;
char *FilePattern;
void DeleteFiles();
private:
vtkPDataSetWriter(const vtkPDataSetWriter&); // Not implemented
void operator=(const vtkPDataSetWriter&); // Not implemented
};
#endif
|