OpenStructure
geom_info_conversion.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_INFO_GEOM_INFO_CONVERSION_HH
20 #define OST_INFO_GEOM_INFO_CONVERSION_HH
21 
22 /*
23  A variety of info conversion routines for classes of the geom module.
24 
25  Author: Marco Biasini
26  */
27 
28 #include <ost/geom/geom.hh>
29 
31 #include <ost/info/info_fw.hh>
32 
33 
34 namespace ost { namespace info {
35 
36 
38 
39 void DLLEXPORT_OST_INFO Mat2ToInfo(const geom::Mat2& mat, InfoGroup& group);
41 
44 
47 
50 
53 
56 
59 geom::Transform DLLEXPORT_OST_INFO TransformFromInfo(const info::InfoGroup& group);
62 void DLLEXPORT_OST_INFO TransformToInfo(const geom::Transform& transform,
63  info::InfoGroup& group);
64 
66 }}
67 
68 #endif
basic and essential transformation class, including translation, rotation and center of rotation
Definition: transform.hh:39
#define DLLEXPORT_OST_INFO
void DLLEXPORT_OST_INFO Mat2ToInfo(const geom::Mat2 &mat, InfoGroup &group)
store Mat2 in info group
geom::Mat3 DLLEXPORT_OST_INFO Mat3FromInfo(const InfoGroup &group)
load Mat3 from info
geom::Mat4 DLLEXPORT_OST_INFO Mat4FromInfo(const InfoGroup &group)
load Mat4 from info
geom::Mat2 DLLEXPORT_OST_INFO Mat2FromInfo(const InfoGroup &group)
load Mat2 from info group
void DLLEXPORT_OST_INFO Mat4ToInfo(const geom::Mat4 &mat, InfoGroup &group)
store Mat4 in info group
void DLLEXPORT_OST_INFO Mat3ToInfo(const geom::Mat3 &mat, InfoGroup &group)
store Mat3 in info group
Definition: base.dox:1