SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
ReadMesh.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_ReadMesh_h
12
#define smtk_io_ReadMesh_h
13
14
#include "smtk/CoreExports.h"
// For SMTKCORE_EXPORT macro.
15
#include "
smtk/PublicPointerDefs.h
"
16
17
#include "smtk/io/mesh/MeshIO.h"
18
19
#include <string>
20
#include <vector>
21
22
namespace
smtk
23
{
24
namespace
io
25
{
26
30
class
SMTKCORE_EXPORT
ReadMesh
31
{
32
public
:
33
ReadMesh
();
34
~
ReadMesh
();
35
36
ReadMesh
& operator=(
const
ReadMesh
&) =
delete
;
37
ReadMesh
(
const
ReadMesh
&) =
delete
;
38
39
static
std::vector<smtk::io::mesh::MeshIOPtr>& SupportedIOTypes();
40
41
static
bool
ExtensionIsSupported(
const
std::string& ext);
42
43
//Load the domain sets from a moab data file as a new resource into the
44
//given manager.
45
smtk::mesh::ResourcePtr
operator()(
46
const
std::string& filePath,
47
const
smtk::mesh::InterfacePtr
& interface,
48
mesh::Subset
subset = mesh::Subset::EntireResource)
const
;
49
bool
operator()(
50
const
std::string& filePath,
51
smtk::mesh::ResourcePtr
resource,
52
mesh::Subset
subset = mesh::Subset::EntireResource)
const
;
53
};
54
55
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
readMesh(
56
const
std::string& filePath,
57
const
smtk::mesh::InterfacePtr
& interface,
58
mesh::Subset
subset = mesh::Subset::EntireResource);
59
// Explicit functions for each subset type
60
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
readEntireResource(
61
const
std::string& filePath,
62
const
smtk::mesh::InterfacePtr
& interface);
63
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
readDomain(
64
const
std::string& filePath,
65
const
smtk::mesh::InterfacePtr
& interface);
66
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
readDirichlet(
67
const
std::string& filePath,
68
const
smtk::mesh::InterfacePtr
& interface);
69
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
readNeumann(
70
const
std::string& filePath,
71
const
smtk::mesh::InterfacePtr
& interface);
72
73
SMTKCORE_EXPORT
bool
readMesh(
74
const
std::string& filePath,
75
smtk::mesh::ResourcePtr
resource,
76
mesh::Subset
subset = mesh::Subset::EntireResource);
77
// Explicit functions for each subset type
78
SMTKCORE_EXPORT
bool
readEntireResource(
79
const
std::string& filePath,
80
smtk::mesh::ResourcePtr
resource);
81
SMTKCORE_EXPORT
bool
readDomain(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
82
SMTKCORE_EXPORT
bool
readDirichlet(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
83
SMTKCORE_EXPORT
bool
readNeumann(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
84
}
// namespace io
85
}
// namespace smtk
86
87
#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::mesh::InterfacePtr
smtk::shared_ptr< smtk::mesh::Interface > InterfacePtr
Definition:
PublicPointerDefs.h:369
smtk::io::ReadMesh
Read an entire SMTK mesh resource from a file, or just sub-sections.
Definition:
ReadMesh.h:30
Generated by
1.8.17