source: flair-src/trunk/lib/FlairSimulator/src/Plane.h@ 457

Last change on this file since 457 was 457, checked in by Sanahuja Guillaume, 8 months ago

simple plane for Armando

File size: 1.4 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2021/12/22
6// filename: Plane.h
7//
8// author: Armando Alatorre Sevilla, Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe definissant un avion
14//
15/*********************************************************************/
16
17#ifndef PLANE_H
18#define PLANE_H
19
20#include <Model.h>
21
22namespace flair {
23namespace core {
24class Mutex;
25}
26namespace gui {
27class DoubleSpinBox;
28class SpinBox;
29}
30namespace actuator {
31class SimuBldc;
32}
33}
34
35#ifdef GL
36namespace irr {
37namespace scene {
38class IMesh;
39}
40}
41#endif
42
43namespace flair {
44namespace simulator {
45class Blade;
46class MeshSceneNode;
47
48class Plane : public Model {
49public:
50 Plane(std::string name, uint32_t modelId);
51 ~Plane();
52#ifdef GL
53 virtual void Draw(void);
54 virtual void ExtraDraw(void){};
55#endif
56
57private:
58 void CalcModel(void);
59#ifdef GL
60 void AnimateModel(void);
61 size_t dbtSize(void) const;
62 void WritedbtBuf(char *dbtbuf);
63 void ReaddbtBuf(char *dbtbuf);
64 core::Mutex *motor_speed_mutex;
65 Blade *f_blade;
66 MeshSceneNode *l_aileron,*r_aileron;
67#endif
68
69 actuator::SimuBldc *motor;
70 float motor_speed;
71 gui::DoubleSpinBox *m;
72 gui::SpinBox *motorTimeout;
73};
74} // end namespace simulator
75} // end namespace flair
76#endif // PLANE_H
Note: See TracBrowser for help on using the repository browser.