/usr/include/paraview/vtkParallelSerialWriter.h is in paraview-dev 5.0.1+dfsg1-4.
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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | /*=========================================================================
Program: ParaView
Module: vtkParallelSerialWriter.h
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkParallelSerialWriter - parallel meta-writer for serial formats
// .SECTION Description:
// vtkParallelSerialWriter is a meta-writer that enables serial writers
// to work in parallel. It gathers data to the 1st node and invokes the
// internal writer. The reduction is controlled defined by the PreGatherHelper
// and PostGatherHelper.
// This also makes it possible to write time-series for temporal datasets using
// simple non-time-aware writers.
#ifndef vtkParallelSerialWriter_h
#define vtkParallelSerialWriter_h
#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#include "vtkDataObjectAlgorithm.h"
class vtkClientServerInterpreter;
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkParallelSerialWriter : public vtkDataObjectAlgorithm
{
public:
static vtkParallelSerialWriter* New();
vtkTypeMacro(vtkParallelSerialWriter, vtkDataObjectAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/get the internal writer.
void SetWriter(vtkAlgorithm*);
vtkGetObjectMacro(Writer, vtkAlgorithm);
// Description:
// Return the MTime also considering the internal writer.
virtual unsigned long GetMTime();
// Description:
// Name of the method used to set the file name of the internal
// writer. By default, this is SetFileName.
vtkSetStringMacro(FileNameMethod);
vtkGetStringMacro(FileNameMethod);
// Description:
// Get/Set the name of the output file.
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
// Description:
// Invoke the writer. Returns 1 for success, 0 for failure.
int Write();
// Description:
// Get/Set the piece number to write. The same piece number is used
// for all inputs.
vtkGetMacro(Piece, int);
vtkSetMacro(Piece, int);
// Description:
// Get/Set the number of pieces into which the inputs are split.
vtkGetMacro(NumberOfPieces, int);
vtkSetMacro(NumberOfPieces, int);
// Description:
// Get/Set the number of ghost levels to be written.
vtkGetMacro(GhostLevel, int);
vtkSetMacro(GhostLevel, int);
// Description:
// Get/Set the pre-reduction helper. Pre-Reduction helper is an algorithm
// that runs on each node's data before it is sent to the root.
void SetPreGatherHelper(vtkAlgorithm*);
vtkGetObjectMacro(PreGatherHelper, vtkAlgorithm);
// Description:
// Get/Set the reduction helper. Reduction helper is an algorithm with
// multiple input connections, that produces a single output as
// the reduced output. This is run on the root node to produce a result
// from the gathered results of each node.
void SetPostGatherHelper(vtkAlgorithm*);
vtkGetObjectMacro(PostGatherHelper, vtkAlgorithm);
// Description:
// Must be set to true to write all timesteps, otherwise only the current
// timestep will be written out. Off by default.
vtkGetMacro(WriteAllTimeSteps, int);
vtkSetMacro(WriteAllTimeSteps, int);
vtkBooleanMacro(WriteAllTimeSteps, int);
//BTX
// Description:
// Get/Set the interpreter to use to call methods on the writer.
void SetInterpreter(vtkClientServerInterpreter* interp)
{ this->Interpreter = interp; }
protected:
vtkParallelSerialWriter();
~vtkParallelSerialWriter();
int RequestInformation(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int RequestUpdateExtent(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
int RequestData(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
private:
vtkParallelSerialWriter(const vtkParallelSerialWriter&); // Not implemented.
void operator=(const vtkParallelSerialWriter&); // Not implemented.
void WriteATimestep(vtkDataObject* input);
void WriteAFile(const char* fname, vtkDataObject* input);
void SetWriterFileName(const char* fname);
void WriteInternal();
vtkAlgorithm* PreGatherHelper;
vtkAlgorithm* PostGatherHelper;
vtkAlgorithm* Writer;
char* FileNameMethod;
int Piece;
int NumberOfPieces;
int GhostLevel;
int WriteAllTimeSteps;
int NumberOfTimeSteps;
int CurrentTimeIndex;
// The name of the output file.
char* FileName;
vtkClientServerInterpreter* Interpreter;
//ETX
};
#endif
|