]> SALOME platform Git repositories - modules/paravis.git/blob - src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkGenericStaticEnSightReader.h
Salome HOME
bos #42937: [CEA 41954] Integration of UB24.04 patches
[modules/paravis.git] / src / Plugins / StaticMesh / plugin / StaticMeshModule / vtkGenericStaticEnSightReader.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    vtkGenericStaticEnSightReader.h
5
6   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7   All rights reserved.
8   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
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.
13
14 =========================================================================*/
15 /**
16  * @class   vtkGenericStaticEnSightReader
17  * @brief   class to read any type of EnSight files
18  *
19  * The class vtkGenericStaticEnSightReader inherit from the
20  * vtkGenericEnSightReader. In addition to allowing the user to read
21  * various types of EnSight files, it add a boolean to control whether
22  * or not the output mesh should be considered static.
23  *
24  * Keep this boolean to false for non-static EnSight files.
25  */
26
27 #ifndef vtkGenericStaticEnSightReader_h
28 #define vtkGenericStaticEnSightReader_h
29
30 #include <vtkGenericEnSightReader.h>
31 #include <vtkSetGet.h>
32
33 #include "StaticMeshModuleModule.h"
34
35 class STATICMESHMODULE_EXPORT vtkGenericStaticEnSightReader : public vtkGenericEnSightReader
36 {
37 public:
38   static vtkGenericStaticEnSightReader* New();
39   vtkTypeMacro(vtkGenericStaticEnSightReader, vtkGenericEnSightReader);
40   void PrintSelf(ostream& os, vtkIndent indent) override;
41
42   // @{
43   /**
44    * This boolean control whether or not the output
45    * should be considered a static mesh.
46    */
47   vtkGetMacro(UseStaticMesh, bool);
48   vtkSetMacro(UseStaticMesh, bool);
49   vtkBooleanMacro(UseStaticMesh, bool);
50   // @}
51
52 protected:
53   vtkGenericStaticEnSightReader() = default;
54   ~vtkGenericStaticEnSightReader() override = default;
55
56   /**
57    * see vtkDataSetAlgorithm
58    */
59   int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
60
61 private:
62   vtkGenericStaticEnSightReader(const vtkGenericStaticEnSightReader&) = delete;
63   void operator=(const vtkGenericStaticEnSightReader&) = delete;
64
65   bool UseStaticMesh = false;
66 };
67
68 #endif