1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef VTK_MESH_DRIVER_HXX
21 #define VTK_MESH_DRIVER_HXX
27 #include "MEDMEM_define.hxx"
28 #include "MEDMEM_GenDriver.hxx"
30 #include "MEDMEM_STRING.hxx"
31 #include "MEDMEM_Exception.hxx"
32 #include "MEDMEM_Utilities.hxx"
39 Driver Vtk for MESH (only for writing).
41 Generic part : implement open and close methods.
49 class MEDMEM_EXPORT VTK_MESH_DRIVER : public GENDRIVER
54 ofstream * _vtkFile ; // The _vtkFile used to write Meshes and Fields to _filename
66 VTK_MESH_DRIVER(const string & fileName, MESH * ptrMesh) ;
70 VTK_MESH_DRIVER(const VTK_MESH_DRIVER & driver) ;
80 void openConst() const throw (MEDEXCEPTION);
81 void closeConst() const throw (MEDEXCEPTION);
83 void write( void ) const throw (MEDEXCEPTION) ;
84 void read ( void ) throw (MEDEXCEPTION) ;
87 Set the name of the MESH asked in file.
89 It could be different than the name of the MESH object.
91 void setMeshName(const string & meshName) ;
93 Get the name of the MESH asked in file.
95 string getMeshName() const ;
98 GENDRIVER * copy ( void ) const;
103 #endif /* VTK_MESH_DRIVER_HXX */