32#ifndef vtkMergeTimeFilter_h
33#define vtkMergeTimeFilter_h
35#include "vtkFiltersGeneralModule.h"
54 vtkGetMacro(Tolerance,
double);
63 vtkSetMacro(UseRelativeTolerance,
bool);
64 vtkGetMacro(UseRelativeTolerance,
bool);
65 vtkBooleanMacro(UseRelativeTolerance,
bool);
73 vtkSetMacro(UseIntersection,
bool);
74 vtkGetMacro(UseIntersection,
bool);
75 vtkBooleanMacro(UseIntersection,
bool);
126 double Tolerance = 0.00001;
127 bool UseRelativeTolerance =
false;
128 bool UseIntersection =
false;
130 double RequestedTimeValue = 0.;
a simple class to control print indentation
Create a multiblock containing one block per input, with unified timestep list.
double MapToInputTime(int input, double outputTime)
Look for an input time, either:
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Compute global extent and timesteps list, depending on Tolerance.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkMergeTimeFilter() override=default
std::vector< std::vector< double > > InputsTimeSteps
bool AreTimesWithinTolerance(double t1, double t2)
Return true if t1 and t2 are within absolute or relative Tolerance.
int FillInputPortInformation(int port, vtkInformation *info) override
Override to allow multiple inputs.
static vtkMergeTimeFilter * New()
vtkMergeTimeFilter()=default
std::vector< double > OutputTimeSteps
void MergeTimeSteps(const std::vector< double > ×teps)
Create an ordered combination of given timesteps and current OutputTimeSteps list.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Reimplemented to create a multiblock from inputs.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Append contribution from each input.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.