Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tfVertexSolverFIO.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego and Tien Comlekoglu
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
24
25#ifndef _MODELS_VERTEX_SOLVER_TFVERTEXSOLVERFIO_H_
26#define _MODELS_VERTEX_SOLVER_TFVERTEXSOLVERFIO_H_
27
28#include <tf_port.h>
29
30#include <io/tfFIO.h>
31
32#include <vector>
33
34
35namespace TissueForge::models::vertex::io {
36
37
46 struct CAPI_EXPORT VertexSolverFIOImportSummary {
47
49 std::unordered_map<unsigned int, unsigned int> vertexIdMap;
50
52 std::unordered_map<unsigned int, unsigned int> surfaceIdMap;
53
55 std::unordered_map<unsigned int, unsigned int> bodyIdMap;
56
58 std::unordered_map<unsigned int, unsigned int> surfaceTypeIdMap;
59
61 std::unordered_map<unsigned int, unsigned int> bodyTypeIdMap;
62
63 };
64
66
69
70 std::string moduleName() override;
71 HRESULT toFile(const TissueForge::io::MetaData &metaData, TissueForge::io::IOElement &fileElement) override;
72 HRESULT fromFile(const TissueForge::io::MetaData &metaData, const TissueForge::io::IOElement &fileElement) override;
73
77 static bool hasImport();
78
83
84 };
85
86}
87
88#endif // _MODELS_VERTEX_SOLVER_TFVERTEXSOLVERFIO_H_
Interface for Tissue Forge peripheral module I/O (e.g., models)
Definition tfFIO.h:151
Container for _IOElement.
Definition tf_io.h:71
Tissue Forge meta data.
Definition tf_io.h:131
Vertex solver module data import summary.
Definition tfVertexSolverFIO.h:46
std::unordered_map< unsigned int, unsigned int > bodyTypeIdMap
Definition tfVertexSolverFIO.h:61
std::unordered_map< unsigned int, unsigned int > surfaceIdMap
Definition tfVertexSolverFIO.h:52
std::unordered_map< unsigned int, unsigned int > surfaceTypeIdMap
Definition tfVertexSolverFIO.h:58
std::unordered_map< unsigned int, unsigned int > bodyIdMap
Definition tfVertexSolverFIO.h:55
std::unordered_map< unsigned int, unsigned int > vertexIdMap
Definition tfVertexSolverFIO.h:49
std::string moduleName() override
Name of module. Used as a storage key.
HRESULT toFile(const TissueForge::io::MetaData &metaData, TissueForge::io::IOElement &fileElement) override
Export module data.
static VertexSolverFIOImportSummary * importSummary
Definition tfVertexSolverFIO.h:68
static HRESULT clearImport()
Clear imported data, if available.
static bool hasImport()
Test whether imported data is available.
HRESULT fromFile(const TissueForge::io::MetaData &metaData, const TissueForge::io::IOElement &fileElement) override
Import module data.
int32_t HRESULT
Definition tf_port.h:255