[Paraview] example of max probe
Biddiscombe, John A.
biddisco at cscs.ch
Thu Dec 17 04:39:40 EST 2009
> Is it possible to find the point that holds the maximum and/or minimum
> values at any time step?
Yes.
But not without writing code. If you look at vtkExtractDataOverTime (I don't recall the precise name from memory), it builds up an array of values one per time step. The trouble is if you want to change the code to pick the max at each time step, then at the end, scan each to return the real max (or update as it iterates over each step), then you need to modify the class (i.e. copy and paste most of it then edit the bits you want to change). I have several almost identical filters which do ExtractXXXOverTime and the code duplication is pointless. I have a plan to create some kind of adaptor class which ExtractsXXXOverTime with the user supplying the class to run at each time step so that all you need to do is override some functor like object to do the small bit of real code, and the donkey work is managed by the holder class.
JB
More information about the ParaView
mailing list