Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91853453
mesh_io.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 15, 04:07
Size
3 KB
Mime Type
text/x-c++
Expires
Sun, Nov 17, 04:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22333833
Attached To
rAKA akantu
mesh_io.hh
View Options
/**
* @file mesh_io.hh
*
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date Fri Jun 18 11:47:19 2010
*
* @brief interface of a mesh io class, reader and writer
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu 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 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MESH_IO_HH__
#define __AKANTU_MESH_IO_HH__
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "mesh.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
class
MeshIO
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
MeshIO
();
virtual
~
MeshIO
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
read
(
const
std
::
string
&
filename
,
Mesh
&
mesh
,
const
MeshIOType
&
type
);
void
write
(
const
std
::
string
&
filename
,
Mesh
&
mesh
,
const
MeshIOType
&
type
);
/// read a mesh from the file
virtual
void
read
(
__attribute__
((
unused
))
const
std
::
string
&
filename
,
__attribute__
((
unused
))
Mesh
&
mesh
)
{
AKANTU_DEBUG_TO_IMPLEMENT
();
};
/// write a mesh to a file
virtual
void
write
(
__attribute__
((
unused
))
const
std
::
string
&
filename
,
__attribute__
((
unused
))
const
Mesh
&
mesh
)
{
AKANTU_DEBUG_TO_IMPLEMENT
();
};
private
:
MeshIO
*
getMeshIO
(
const
std
::
string
&
filename
,
const
MeshIOType
&
type
);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
bool
canReadSurface
;
bool
canReadExtendedData
;
// std::string filename;
// Mesh & mesh;
};
__END_AKANTU__
#endif
/* __AKANTU_MESH_IO_HH__ */
#include "mesh_io_msh.hh"
#include "mesh_io_diana.hh"
Event Timeline
Log In to Comment