SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
io
ExportMesh.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_ExportMesh_h
12
#define smtk_io_ExportMesh_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
ExportMesh
31
{
32
public
:
33
ExportMesh
();
34
~
ExportMesh
();
35
36
ExportMesh
& operator=(
const
ExportMesh
&) =
delete
;
37
ExportMesh
(
const
ExportMesh
&) =
delete
;
38
39
static
std::vector<smtk::io::mesh::MeshIOPtr>& SupportedIOTypes();
40
41
bool
operator()(
const
std::string& filePath,
smtk::mesh::ResourcePtr
meshResource)
const
;
42
bool
operator()(
43
const
std::string& filePath,
44
smtk::mesh::ResourcePtr
meshResource,
45
smtk::model::ResourcePtr
resource,
46
const
std::string& modelPropertyName)
const
;
47
};
48
49
SMTKCORE_EXPORT
50
bool
exportMesh(
const
std::string& filePath,
smtk::mesh::ResourcePtr
meshResource);
51
SMTKCORE_EXPORT
52
bool
exportMesh(
53
const
std::string& filePath,
54
smtk::mesh::ResourcePtr
meshResource,
55
smtk::model::ResourcePtr
resource,
56
const
std::string& modelPropertyName);
57
}
// namespace io
58
}
// namespace smtk
59
60
#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::ExportMesh
Export an entire SMTK mesh resource from a file, or just sub-sections.
Definition:
ExportMesh.h:30
smtk::model::ResourcePtr
smtk::shared_ptr< smtk::model::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:419
Generated by
1.8.17