X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FIO%2FvtkMEDReader.h;h=b907583aa3510deeae96b84c979bf62338414dbd;hb=f671e69102c5ae8e2194509a6b719fae0b06d26c;hp=a87c6bd667497c0a18f7ee961d71102ecd2f4244;hpb=d170abf6cb7fa44827057ce004760d1ef45d9f2d;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/IO/vtkMEDReader.h b/src/Plugins/MEDReader/IO/vtkMEDReader.h index a87c6bd6..b907583a 100644 --- a/src/Plugins/MEDReader/IO/vtkMEDReader.h +++ b/src/Plugins/MEDReader/IO/vtkMEDReader.h @@ -1,9 +1,9 @@ -// Copyright (C) 2010-2014 CEA/DEN, EDF R&D +// Copyright (C) 2010-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -21,9 +21,12 @@ #ifndef __vtkMEDReader_h_ #define __vtkMEDReader_h_ +#include + #include "vtkMultiBlockDataSetAlgorithm.h" class vtkMutableDirectedGraph; +class vtkInformationDataObjectMetaDataKey; class VTK_EXPORT vtkMEDReader : public vtkMultiBlockDataSetAlgorithm { @@ -50,22 +53,34 @@ class VTK_EXPORT vtkMEDReader : public vtkMultiBlockDataSetAlgorithm virtual const char *GetTimesFlagsArrayName(int index); //! Build the graph used to pass information to the client on the supports virtual std::string BuildSIL(vtkMutableDirectedGraph*); - virtual void Reload(int); + + // Description + // Reload will delete the internal reader and recreate it with default properties + virtual void Reload(); + + virtual int GetServerModifTime(); + // virtual void GenerateVectors(int); virtual void ChangeMode(int); - virtual const char *GetSeparator(); + static const char *GetSeparator(); + + // Description + // Static information key used to transfer the meta data graph along the pipeline + static vtkInformationDataObjectMetaDataKey* META_DATA(); + protected: vtkMEDReader(); virtual ~vtkMEDReader(); virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*); virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); private: - void UpdateSIL(vtkInformation *info); + void UpdateSIL(vtkInformation *request, vtkInformation *info); virtual double PublishTimeStepsIfNeeded(vtkInformation*, bool& isUpdated); virtual void FillMultiBlockDataSetInstance(vtkMultiBlockDataSet *output, double reqTS); private: //BTX //ETX + class vtkMEDReaderInternal; vtkMEDReaderInternal* Internal; };