1 // MED MEDMEM : MED files in memory
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : MEDMEM_VtkMedDriver.hxx
27 #ifndef VTK_MED_DRIVER_HXX
28 #define VTK_MED_DRIVER_HXX
31 #include "MEDMEM_STRING.hxx"
32 #include "utilities.h"
33 #include "MEDMEM_Exception.hxx"
35 #include "MEDMEM_GenDriver.hxx"
46 // This driver pilots within a VTK class read/write accesses of fields/meshes
47 class VTK_MED_DRIVER : public GENDRIVER
51 MED * const _ptrMed ; // Store 'VTK_DRIVER (0..n)----(1) VTK' associations
52 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
57 //writeField(FIELD * myField) ;
58 //writeMesh(MESH * myMesh) ;
62 void openConst() const ;
63 void closeConst() const ;
66 VTK_MED_DRIVER(const string & fileName, MED * const ptrMed);
67 VTK_MED_DRIVER(const VTK_MED_DRIVER & driver);
69 // OPERATEUR DE RECOPIE AVEC _vtkFile ??
71 //virtual void write ( void ) ;
72 void write ( void ) const ;
73 virtual void read ( void ) {} ;
74 // virtual void writeFrom ( void ) const ;
75 // virtual void read ( void ) ;
76 GENDRIVER * copy (void ) const ;
79 void writeMesh(MESH * myMesh) const ;
80 void writeSupport(SUPPORT * mySupport) const ;
81 void writeField(FIELD_ * myField,string name) const ;
86 #endif /* VTK_MED_DRIVER_HXX */