X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPlugins%2FMEDReader%2FIO%2FMEDUtilities.hxx;h=fbbbebfe4ed313ad770e1493c742480076b6e400;hb=0aca9e62c928f151af43789b5fd908a774758922;hp=767820cea968c606695d90fd5a4d4c44cfff704c;hpb=654addd46335c9a7f42e87b662f9085414db8069;p=modules%2Fparavis.git diff --git a/src/Plugins/MEDReader/IO/MEDUtilities.hxx b/src/Plugins/MEDReader/IO/MEDUtilities.hxx index 767820ce..fbbbebfe 100644 --- a/src/Plugins/MEDReader/IO/MEDUtilities.hxx +++ b/src/Plugins/MEDReader/IO/MEDUtilities.hxx @@ -22,6 +22,9 @@ #define __MEDUTILITIES_HXX__ #include "MEDLoaderForPV.h" +#include "vtkCellType.h" + +#include class vtkInformationIntegerKey; @@ -32,4 +35,25 @@ public: static vtkInformationIntegerKey *ELNO(); }; +class ExportedTinyInfo +{ +public: + void pushGaussAdditionnalInfo(int ct, int dim, const std::vector& refCoo, const std::vector& posInRefCoo); + const std::vector& getData() const { return _data; } + bool empty() const { return _data.empty(); } +private: + void prepareForAppend(); +private: + // first place is nb of ct + // 2nd place is the size of first ct def (this 2nd place included) + // 3rd place is the VTK cell type of first ct def + // 4th place is the dimension of first ct def + // 5th->n th : ref Coo + // nth -> n+p th : posInRefCoo + // n+p+1 -> size of second ct def (this n+p+1 place included) + // n+p+2 -> VTK cell type of second ct def + // ... + std::vector _data; +}; + #endif