27 #ifndef vtkFileSeriesHelper_h
28 #define vtkFileSeriesHelper_h
32 #include "vtkIOCGNSReaderModule.h"
56 void RemoveAllFileNames();
57 void AddFileName(
const char* fname);
58 void SetFileNames(
const std::vector<std::string>& filenames);
64 unsigned int GetNumberOfFiles()
const;
77 virtual bool ReadMetaFile(
const char* metafilename);
98 vtkSetMacro(IgnoreReaderTime,
bool);
99 vtkGetMacro(IgnoreReaderTime,
bool);
100 vtkBooleanMacro(IgnoreReaderTime,
bool);
120 virtual bool UpdateInformation(
vtkAlgorithm* reader,
const FileNameFunctorType& ftor);
132 const std::vector<double>&
GetTimeSteps()
const {
return this->AggregatedTimeSteps; }
137 const std::pair<double, double>&
GetTimeRange(
bool* isvalid = NULL)
const
141 *isvalid = this->AggregatedTimeRangeValid;
143 return this->AggregatedTimeRange;
155 vtkGetMacro(PartitionedFiles,
bool);
166 std::vector<std::string> GetActiveFiles(
vtkInformation* outInfo)
const;
180 const std::pair<double, double>&
GetTimeRange()
const {
return this->TimeRange; }
181 const std::vector<double>&
GetTimeSteps()
const {
return this->TimeSteps; }
189 std::pair<double, double> TimeRange;
190 std::vector<double> TimeSteps;
205 std::vector<std::string> SplitFiles(
206 const std::vector<std::string>& files,
int piece,
int numPieces)
const;
208 void Broadcast(
int srcRank);
210 std::vector<double> AggregatedTimeSteps;
211 bool AggregatedTimeRangeValid;
212 std::pair<double, double> AggregatedTimeRange;
abstract base class for most VTK objects
const std::vector< double > & GetTimeSteps() const
Returns the timesteps determined.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
stream used to pass data across processes using vtkMultiProcessController.
vtkTypeUInt32 vtkMTimeType
record modification and/or execution time
const std::pair< double, double > & GetTimeRange(bool *isvalid=NULL) const
Returns the time range determined.
Superclass for all sources, filters, and sinks in VTK.
bool VTKCOMMONDATAMODEL_EXPORT operator==(vtkEdgeBase e1, vtkEdgeBase e2)
a simple class to control print indentation
std::vector< std::string > FileNames
Helper class to process file series.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkMultiProcessController * Controller
std::vector< vtkTimeInformation > Information
Multiprocessing communication superclass.