X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FStaticMesh%2Fplugin%2FStaticMeshModule%2FvtkStaticEnSightGoldBinaryReader.h;fp=src%2FPlugins%2FStaticMesh%2Fplugin%2FStaticMeshModule%2FvtkStaticEnSightGoldBinaryReader.h;h=6ed79c197a6bcb205a4ac8f2797802a345cb2f89;hb=d725e568696c84e8bb64200b105872f5b480bba8;hp=e246509a29311c849b0c3c2d54c8fcc878bb811a;hpb=82b5539c09838b78cd4c9502f5c872bfa14fac2e;p=modules%2Fparavis.git diff --git a/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticEnSightGoldBinaryReader.h b/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticEnSightGoldBinaryReader.h index e246509a..6ed79c19 100644 --- a/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticEnSightGoldBinaryReader.h +++ b/src/Plugins/StaticMesh/plugin/StaticMeshModule/vtkStaticEnSightGoldBinaryReader.h @@ -31,9 +31,9 @@ * of the pipeline because (due to the nature of the file format) it is * not possible to know ahead of time how many outputs you will have or * what types they will be. - * This reader can only handle static EnSight datasets (both static geometry - * and variables). -*/ + * If UseStaticMesh is true, this reader generates an unstructured grid + * with static geometry. + */ #ifndef vtkStaticEnSightGoldBinaryReader_h #define vtkStaticEnSightGoldBinaryReader_h @@ -41,29 +41,43 @@ #include #include +#include "StaticMeshModuleModule.h" + class vtkMultiBlockDataSet; -class vtkStaticEnSightGoldBinaryReader : public vtkEnSightGoldBinaryReader +class STATICMESHMODULE_EXPORT vtkStaticEnSightGoldBinaryReader : public vtkEnSightGoldBinaryReader { public: - static vtkStaticEnSightGoldBinaryReader *New(); + static vtkStaticEnSightGoldBinaryReader* New(); vtkTypeMacro(vtkStaticEnSightGoldBinaryReader, vtkEnSightGoldBinaryReader); + // @{ + /** + * This boolean control whether or not the output + * should be considered a static mesh. + */ + vtkGetMacro(UseStaticMesh, bool); + vtkSetMacro(UseStaticMesh, bool); + vtkBooleanMacro(UseStaticMesh, bool); + // @} + protected: vtkStaticEnSightGoldBinaryReader() = default; ~vtkStaticEnSightGoldBinaryReader() override = default; - int RequestData(vtkInformation*, - vtkInformationVector**, - vtkInformationVector*) override; - - vtkNew Cache; - vtkTimeStamp CacheMTime; + /** + * see vtkDataSetAlgorithm + */ + int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override; private: vtkStaticEnSightGoldBinaryReader(const vtkStaticEnSightGoldBinaryReader&) = delete; void operator=(const vtkStaticEnSightGoldBinaryReader&) = delete; + + bool UseStaticMesh = false; + + vtkNew Cache; + vtkTimeStamp CacheMTime; }; #endif -