/usr/include/paraview/vtkFileSeriesWriter.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 | /*=========================================================================
Program: ParaView
Module: vtkFileSeriesWriter.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 vtkFileSeriesWriter - meta-writer for writing a file series using writers
// that are not time-aware.
// .SECTION Description:
// vtkFileSeriesWriter is a meta-writer that enables writing a file series using
// writers that are not time-aware.
#ifndef vtkFileSeriesWriter_h
#define vtkFileSeriesWriter_h
#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#include "vtkDataObjectAlgorithm.h"
class vtkClientServerInterpreter;
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkFileSeriesWriter : public vtkDataObjectAlgorithm
{
public:
static vtkFileSeriesWriter* New();
vtkTypeMacro(vtkFileSeriesWriter, vtkDataObjectAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/get the internal writer.
virtual 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:
// 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:
// see vtkAlgorithm for details
virtual int ProcessRequest(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
// Description:
// Get/Set the interpreter to use to call methods on the writer.
void SetInterpreter(vtkClientServerInterpreter* interp)
{ this->Interpreter = interp; }
//ETX
protected:
//BTX
vtkFileSeriesWriter();
~vtkFileSeriesWriter();
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:
vtkFileSeriesWriter(const vtkFileSeriesWriter&); // Not implemented.
void operator=(const vtkFileSeriesWriter&); // Not implemented.
void SetWriterFileName(const char* fname);
void WriteATimestep(vtkDataObject*, vtkInformation* inInfo);
void WriteInternal();
vtkAlgorithm* Writer;
char* FileNameMethod;
int WriteAllTimeSteps;
int NumberOfTimeSteps;
int CurrentTimeIndex;
// The name of the output file.
char* FileName;
vtkClientServerInterpreter* Interpreter;
//ETX
};
#endif
|