SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
session
mesh
Topology.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
#ifndef smtk_session_mesh_Topology_h
11
#define smtk_session_mesh_Topology_h
12
13
#include "smtk/session/mesh/Exports.h"
14
15
#include "smtk/mesh/core/MeshSet.h"
16
#include "smtk/mesh/core/Resource.h"
17
18
#include "smtk/common/UUID.h"
19
#include "smtk/common/UUIDGenerator.h"
20
21
#include <vector>
22
23
namespace
smtk
24
{
25
namespace
session
26
{
27
namespace
mesh
28
{
29
37
struct
SMTKMESHSESSION_EXPORT
Topology
38
{
39
Topology
(
40
const
smtk::common::UUID
& modelId,
41
const
smtk::mesh::MeshSet
& meshset,
42
bool
constructHierarchy =
true
);
43
44
struct
Element
45
{
46
Element
(
const
smtk::mesh::MeshSet
& mesh,
const
smtk::common::UUID
&
id
,
int
dimension = -1)
47
: m_mesh(mesh)
48
, m_dimension(dimension)
49
, m_id(
id
)
50
{
51
}
52
53
smtk::mesh::MeshSet
m_mesh;
54
int
m_dimension;
55
smtk::common::UUID
m_id;
56
std::set<smtk::common::UUID> m_parents;
57
std::set<smtk::common::UUID> m_children;
58
};
59
60
smtk::mesh::ResourcePtr
m_resource;
61
smtk::common::UUID
m_modelId;
62
std::map<smtk::common::UUID, Element> m_elements;
63
};
64
}
// namespace mesh
65
}
// namespace session
66
}
// namespace smtk
67
68
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::session::mesh::Topology::Element
Definition:
Topology.h:44
smtk::mesh::ResourcePtr
smtk::shared_ptr< smtk::mesh::Resource > ResourcePtr
Definition:
PublicPointerDefs.h:363
smtk::common::UUID
Definition:
UUID.h:38
smtk::session::mesh::Topology
A tree for representing hierarchical relationships between mesh sets.
Definition:
Topology.h:37
smtk::mesh::MeshSet
Definition:
MeshSet.h:42
Generated by
1.8.17