SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
mesh
MeshIOMoab.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_MeshIOMoab_h
12
#define smtk_io_MeshIOMoab_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 <utility>
24
namespace
smtk
25
{
26
namespace
io
27
{
28
namespace
mesh
29
{
30
31
class
SMTKCORE_EXPORT
MeshIOMoab
:
public
MeshIO
32
{
33
public
:
34
MeshIOMoab
();
35
36
//Load an entire moab data file as a new resource with the given interface.
37
//Returns an invalid resource if the file can't be loaded. The third
38
//parameter is a label with which the domain can be parsed, but it is not
39
//currently implemented for the moab interface
40
smtk::mesh::ResourcePtr
importMesh(
41
const
std::string& filePath,
42
const
smtk::mesh::InterfacePtr
& interface,
43
const
std::string&)
const override
;
44
45
//Merge a moab data file into an existing valid resource. The third
46
//parameter is a label with which the domain can be parsed, but it is not
47
//currently implemented for the moab interface
48
bool
importMesh(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource,
const
std::string&)
49
const override
;
50
51
//Exports the resource to file. Overwrites any existing content in the file
52
bool
exportMesh(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource)
const override
;
53
54
//TODO:
55
// bool exportMesh( const std::string& filePath,
56
// smtk::mesh::ResourcePtr meshResource,
57
// smtk::model::ResourcePtr modelResource,
58
// const std::string& modelPropertyName ) const
59
60
//Load an entire moab data file as a new resource with the given interface.
61
//Returns an invalid resource if the file can't be loaded
62
smtk::mesh::ResourcePtr
read(
63
const
std::string& filePath,
64
const
smtk::mesh::InterfacePtr
& interface,
65
Subset
s)
const override
;
66
67
//Merge a moab data file into an existing valid resource.
68
bool
read(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource,
Subset
s)
const override
;
69
70
//Writes the resource to file. Overwrites any existing content in the file
71
bool
write(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource,
Subset
s)
72
const override
;
73
74
//Writes the resource to the file specified by the resources data member
75
//writeLocation(). Overwrites any existing content in the file
76
bool
write(
smtk::mesh::ResourcePtr
resource,
Subset
s)
const override
;
77
};
78
}
// namespace mesh
79
}
// namespace io
80
}
// namespace smtk
81
82
#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::io::mesh::MeshIOMoab
Definition:
MeshIOMoab.h:31
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