SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
ImportMesh.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_ImportMesh_h
12
#define smtk_io_ImportMesh_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
ImportMesh
31
{
32
public
:
33
ImportMesh
();
34
~
ImportMesh
();
35
36
ImportMesh
& operator=(
const
ImportMesh
&) =
delete
;
37
ImportMesh
(
const
ImportMesh
&) =
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 with the
44
//given interface.
45
smtk::mesh::ResourcePtr
operator()(
46
const
std::string& filePath,
47
const
smtk::mesh::InterfacePtr
& interface,
48
std::string domainPropertyName = std::string())
const
;
49
bool
operator()(
50
const
std::string& filePath,
51
smtk::mesh::ResourcePtr
resource,
52
std::string domainPropertyName = std::string())
const
;
53
54
//Return the file format selected to read the file at <filePath>.
55
smtk::io::mesh::Format
fileFormat(
const
std::string& filePath);
56
};
57
58
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
importMesh(
59
const
std::string& filePath,
60
const
smtk::mesh::InterfacePtr
& interface);
61
SMTKCORE_EXPORT
smtk::mesh::ResourcePtr
importMesh(
62
const
std::string& filePath,
63
const
smtk::mesh::InterfacePtr
& interface,
64
const
std::string& domainPropertyName);
65
SMTKCORE_EXPORT
bool
importMesh(
const
std::string& filePath,
smtk::mesh::ResourcePtr
resource);
66
SMTKCORE_EXPORT
bool
importMesh(
67
const
std::string& filePath,
68
smtk::mesh::ResourcePtr
resource,
69
const
std::string& domainPropertyName);
70
SMTKCORE_EXPORT
smtk::io::mesh::Format
meshFileFormat(
const
std::string& filePath);
71
}
// namespace io
72
}
// namespace smtk
73
74
#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::Format
Definition:
Format.h:37
smtk::io::ImportMesh
Import an entire SMTK mesh resource from a file, or just sub-sections.
Definition:
ImportMesh.h:30
smtk::mesh::InterfacePtr
smtk::shared_ptr< smtk::mesh::Interface > InterfacePtr
Definition:
PublicPointerDefs.h:369
Generated by
1.8.17