1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: vtkStaticEnSight6BinaryReader.h
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
14 =========================================================================*/
16 * @class vtkStaticEnSight6BinaryReader
17 * @brief class to read binary EnSight6 files
19 * vtkStaticEnSight6BinaryReader is a class to read binary EnSight6 files into vtk.
20 * Because the different parts of the EnSight data can be of various data
21 * types, this reader produces multiple outputs, one per part in the input
23 * All variable information is being stored in field data. The descriptions
24 * listed in the case file are used as the array names in the field data.
25 * For complex vector variables, the description is appended with _r (for the
26 * array of real values) and _i (for the array if imaginary values). Complex
27 * scalar variables are stored as a single array with 2 components, real and
28 * imaginary, listed in that order.
30 * You must manually call Update on this reader and then connect the rest
31 * of the pipeline because (due to the nature of the file format) it is
32 * not possible to know ahead of time how many outputs you will have or
33 * what types they will be.
34 * This reader can only handle static EnSight datasets (both static geometry
38 #ifndef vtkStaticEnSight6BinaryReader_h
39 #define vtkStaticEnSight6BinaryReader_h
41 #include <vtkEnSight6BinaryReader.h>
44 class vtkMultiBlockDataSet;
46 class vtkStaticEnSight6BinaryReader : public vtkEnSight6BinaryReader
49 static vtkStaticEnSight6BinaryReader *New();
50 vtkTypeMacro(vtkStaticEnSight6BinaryReader, vtkEnSight6BinaryReader);
53 vtkStaticEnSight6BinaryReader() = default;
54 ~vtkStaticEnSight6BinaryReader() override = default;
56 int RequestData(vtkInformation*,
57 vtkInformationVector**,
58 vtkInformationVector*) override;
60 vtkNew<vtkMultiBlockDataSet> Cache;
61 vtkTimeStamp CacheMTime;
64 vtkStaticEnSight6BinaryReader(const vtkStaticEnSight6BinaryReader&) = delete;
65 void operator=(const vtkStaticEnSight6BinaryReader&) = delete;