/usr/include/paraview/vtkFileSeriesReader.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 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | /*=========================================================================
Program: ParaView
Module: vtkFileSeriesReader.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.
=========================================================================*/
/*
* Copyright 2008 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that this Notice and any
* statement of authorship are reproduced on all copies.
*/
// .NAME vtkFileSeriesReader - meta-reader to read file series
//
// .SECTION Description:
//
// vtkFileSeriesReader is a meta-reader that can work with various
// readers to load file series. To the pipeline, it looks like a reader
// that supports time. It updates the file name to the internal reader
// whenever a different time step is requested.
//
// If the reader already supports time, then this meta-filter will multiplex the
// time. It will union together all the times and forward time requests to the
// file with the correct time. Overlaps are handled by requesting data from the
// file with the upper range the farthest in the future.
//
// There are two ways to specify a series of files. The first way is by adding
// the filenames one at a time with the AddFileName method. The second way is
// by providing a single "meta" file. This meta file is a simple text file that
// lists a file per line. The files can be relative to the meta file. This
// method is useful when the actual reader points to a set of files itself. The
// UseMetaFile toggles between these two methods of specifying files.
//
#ifndef vtkFileSeriesReader_h
#define vtkFileSeriesReader_h
#include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
#include "vtkMetaReader.h"
class vtkStringArray;
//BTX
struct vtkFileSeriesReaderInternals;
//ETX
class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkFileSeriesReader : public vtkMetaReader
{
public:
static vtkFileSeriesReader* New();
vtkTypeMacro(vtkFileSeriesReader, vtkMetaReader);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// All pipeline passes are forwarded to the internal reader. The
// vtkFileSeriesReader reports time steps in RequestInformation. It
// updated the file name of the internal in RequestUpdateExtent based
// on the time step request.
virtual int ProcessRequest(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
// Description:
// CanReadFile is forwarded to the internal reader if it supports it.
virtual int CanReadFile(const char* filename);
// Description:
// Adds names of files to be read. The files are read in the order
// they are added.
virtual void AddFileName(const char* fname);
// Description:
// Remove all file names.
virtual void RemoveAllFileNames();
// Description:
// Returns the number of file names added by AddFileName.
virtual unsigned int GetNumberOfFileNames();
// Description:
// Returns the name of a file with index idx.
virtual const char* GetFileName(unsigned int idx);
const char* GetCurrentFileName();
// Description:
// If true, then use the meta file. False by default.
vtkGetMacro(UseMetaFile, int);
vtkSetMacro(UseMetaFile, int);
vtkBooleanMacro(UseMetaFile, int);
// Description:
// If true, then treat file series like it does not contain any time step
// values. False by default.
vtkGetMacro(IgnoreReaderTime, int);
vtkSetMacro(IgnoreReaderTime, int);
vtkBooleanMacro(IgnoreReaderTime, int);
protected:
vtkFileSeriesReader();
~vtkFileSeriesReader();
virtual int RequestInformation(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
virtual int RequestUpdateExtent(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
virtual int RequestUpdateTime (vtkInformation*,
vtkInformationVector**,
vtkInformationVector*) {return 1;};
virtual int RequestUpdateTimeDependentInformation (vtkInformation*,
vtkInformationVector**,
vtkInformationVector*) {return 1;};
virtual int RequestData(vtkInformation *request,
vtkInformationVector **inputVector,
vtkInformationVector *outputVector);
virtual int FillOutputPortInformation(int port, vtkInformation* info);
// Description:
// Make sure the reader's output is set to the given index and, if it changed,
// run RequestInformation on the reader.
virtual int RequestInformationForInput(
int index,
vtkInformation *request = NULL,
vtkInformationVector *outputVector = NULL);
// Description:
// Reads a metadata file and returns a list of filenames (in filesToRead). If
// the file could not be read correctly, 0 is returned.
virtual int ReadMetaDataFile(const char *metafilename,
vtkStringArray *filesToRead,
int maxFilesToRead = VTK_INT_MAX);
// Description:
// True if use a meta-file, false otherwise
int UseMetaFile;
// Description:
// Re-reads information from the metadata file, if necessary.
virtual void UpdateMetaData();
// Description:
// Resets information about TimeRanges. Called in RequestInformation().
void ResetTimeRanges();
// Add/Remove filenames without changing the MTime.
void RemoveAllFileNamesInternal();
void AddFileNameInternal(const char*);
int IgnoreReaderTime;
int ChooseInput(vtkInformation*);
private:
vtkFileSeriesReader(const vtkFileSeriesReader&); // Not implemented.
void operator=(const vtkFileSeriesReader&); // Not implemented.
vtkFileSeriesReaderInternals* Internal;
};
#endif
|