SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
WriteMesh.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_WriteMesh_h
12
#define smtk_io_WriteMesh_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
WriteMesh
31
{
32
public
:
33
WriteMesh
();
34
~
WriteMesh
();
35
36
WriteMesh
& operator=(
const
WriteMesh
&) =
delete
;
37
WriteMesh
(
const
WriteMesh
&) =
delete
;
38
39
static
std::vector<smtk::io::mesh::MeshIOPtr>& SupportedIOTypes();
40
41
bool
operator()(
42
const
std::string& filePath,
43
smtk::mesh::ResourcePtr
resource,
44
mesh::Subset
subset = mesh::Subset::EntireResource)
const
;
45
bool
operator()(
46
smtk::mesh::ResourcePtr
resource,
47
mesh::Subset
subset = mesh::Subset::EntireResource)
const
;
48
};
49
50
SMTKCORE_EXPORT
bool
writeMesh(
51
const
std::string& filePath,
52
smtk::mesh::ResourcePtr
resource,
53
mesh::Subset
subset = mesh::Subset::EntireResource);
54
SMTKCORE_EXPORT
bool
writeEntireResource(
55
const
std::string& filePath,
56
smtk::mesh::ResourcePtr
resource);
57
// Explicit functions for each subset type
58
SMTKCORE_EXPORT
bool
writeDomain(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
59
SMTKCORE_EXPORT
bool
writeDirichlet(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
60
SMTKCORE_EXPORT
bool
writeNeumann(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
61
62
SMTKCORE_EXPORT
bool
writeMesh(
63
smtk::mesh::ResourcePtr
resource,
64
mesh::Subset
subset = mesh::Subset::EntireResource);
65
// Explicit functions for each subset type
66
SMTKCORE_EXPORT
bool
writeEntireResource(
smtk::mesh::ResourcePtr
resource);
67
SMTKCORE_EXPORT
bool
writeDomain(
smtk::mesh::ResourcePtr
resource);
68
SMTKCORE_EXPORT
bool
writeDirichlet(
smtk::mesh::ResourcePtr
resource);
69
SMTKCORE_EXPORT
bool
writeNeumann(
smtk::mesh::ResourcePtr
resource);
70
}
// namespace io
71
}
// namespace smtk
72
73
#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:356
smtk::io::WriteMesh
Write an entire SMTK mesh resource from a file, or just sub-sections.
Definition:
WriteMesh.h:30
smtk::io::mesh::Subset
Subset
Mesh subset types.
Definition:
MeshIO.h:30
Generated by
1.8.17