SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
mesh
MeshIO.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
//
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
11
#ifndef smtk_io_MeshIO_h
12
#define smtk_io_MeshIO_h
13
14
#include "smtk/CoreExports.h"
// For SMTKCORE_EXPORT macro.
15
#include "
smtk/PublicPointerDefs.h
"
16
17
#include "smtk/io/mesh/Format.h"
18
19
#include <memory>
20
21
namespace
smtk
22
{
23
namespace
io
24
{
26
namespace
mesh
27
{
28
30
enum class
Subset
: unsigned int
31
{
32
EntireResource,
33
OnlyDomain,
34
OnlyDirichlet,
35
OnlyNeumann,
36
};
37
46
class
MeshIO;
47
typedef
std::unique_ptr<MeshIO> MeshIOPtr;
48
49
class
SMTKCORE_EXPORT
MeshIO
50
{
51
public
:
52
virtual
~
MeshIO
() =
default
;
53
54
virtual
smtk::mesh::ResourcePtr
55
importMesh(
const
std::string&,
const
smtk::mesh::InterfacePtr
&,
const
std::string&)
const
56
{
57
return
smtk::mesh::ResourcePtr
();
58
}
59
virtual
bool
importMesh(
const
std::string&,
smtk::mesh::ResourcePtr
,
const
std::string&)
const
60
{
61
return
false
;
62
}
63
64
virtual
bool
exportMesh(
const
std::string&,
smtk::mesh::ResourcePtr
)
const
{
return
false
; }
65
virtual
bool
exportMesh(
66
const
std::string&,
67
smtk::mesh::ResourcePtr
,
68
smtk::model::ResourcePtr
,
69
const
std::string&)
const
70
{
71
return
false
;
72
}
73
74
virtual
smtk::mesh::ResourcePtr
read(
const
std::string&,
const
smtk::mesh::InterfacePtr
&,
Subset
)
75
const
76
{
77
return
smtk::mesh::ResourcePtr
();
78
}
79
virtual
bool
read(
const
std::string&,
smtk::mesh::ResourcePtr
,
Subset
)
const
{
return
false
; }
80
81
virtual
bool
write(
const
std::string&,
smtk::mesh::ResourcePtr
,
Subset
)
const
{
return
false
; }
82
virtual
bool
write(
smtk::mesh::ResourcePtr
,
Subset
)
const
{
return
false
; }
83
84
const
std::vector<smtk::io::mesh::Format>& FileFormats()
const
{
return
this->Formats; }
85
86
protected
:
87
std::vector<smtk::io::mesh::Format> Formats;
88
};
89
}
// namespace mesh
90
}
// namespace io
91
}
// namespace smtk
92
93
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
PublicPointerDefs.h
smtk::mesh::ResourcePtr
smtk::shared_ptr< smtk::mesh::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:363
smtk::io::mesh::Subset
Subset
Mesh subset types.
Definition:
MeshIO.h:30
smtk::model::ResourcePtr
smtk::shared_ptr< smtk::model::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:426
smtk::mesh::InterfacePtr
smtk::shared_ptr< smtk::mesh::Interface > InterfacePtr
Definition:
PublicPointerDefs.h:369
smtk::io::mesh::MeshIO
Definition:
MeshIO.h:49
Generated by
1.8.17