Debian Codegraph @

src/FDM/AIWake/AircraftMesh.hxx

raw symbols SCIP
1 // AircraftMesh.hxx -- Mesh for the computation of the wake induced force and
2 // moment on an aircraft.
3 //
4 // Written by Bertrand Coconnier, started March 2017.
5 //
6 // Copyright (C) 2017 Bertrand Coconnier - [email protected]
7 //
8 // This program is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU General Public License as published by the Free Software
10 // Foundation; either version 2 of the License, or (at your option) any later
11 // version.
12 //
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
16 // details.
17 //
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc., 51
20 // Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 //
22 // $Id$
23
24 #ifndef _FG_AEROMESH_HXX
25 #define _FG_AEROMESH_HXX
26
27 #include "WakeMesh.hxx"
28
29 namespace FGTestApi { namespace PrivateAccessor { namespace FDM { class Accessor; } } }
30 class FGAIAircraft;
31 class AIWakeGroup;
32
33 class AircraftMesh : public WakeMesh {
34 public:
35 AircraftMesh(double _span, double _chord, const std::string& name);
36 void setPosition(const SGVec3d& pos, const SGQuatd& orient);
37 SGVec3d GetForce(const AIWakeGroup& wg, const SGVec3d& vel, double rho);
38 const SGVec3d& GetMoment(void) const { return moment; };
39
40 private:
41 friend class FGTestApi::PrivateAccessor::FDM::Accessor;
42
43 std::vector<SGVec3d> collPt, midPt;
44 SGQuatd Te2b;
45 SGVec3d moment;
46 };
47
48 typedef SGSharedPtr<AircraftMesh> AircraftMesh_ptr;
49
50 #endif