source: flair-src/trunk/lib/FlairSimulator/src/Ball.h@ 382

Last change on this file since 382 was 361, checked in by Sanahuja Guillaume, 5 years ago

add ball for Julio

File size: 1.2 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: 2020/05/26
6// filename: Ball.h
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe chargeant une balle
14//
15/*********************************************************************/
16
17#ifndef BALL_H
18#define BALL_H
19
20#include <Model.h>
21
22namespace irr {
23namespace scene {
24class IMeshSceneNode;
25}
26}
27
28namespace flair {
29namespace gui {
30class DoubleSpinBox;
31class Vector3DSpinBox;
32class PushButton;
33}
34}
35
36namespace flair {
37namespace simulator {
38
39class Ball : private Model {
40public:
41 Ball(std::string name,uint32_t modelId);
42 ~Ball();
43
44private:
45 size_t dbtSize(void) const;
46 void WritedbtBuf(char *dbtbuf);
47 void ReaddbtBuf(char *dbtbuf);
48 void CalcModel(void);
49 void AnimateModel(void);
50
51 irr::scene::IMeshSceneNode *node;
52 gui::DoubleSpinBox *radius,*Km,*weight;
53 gui::Vector3DSpinBox *velInit;
54 gui::PushButton *throwButton,*resetButton;
55 bool throwing;
56};
57} // end namespace simulator
58} // end namespace flair
59#endif // BALL_H
Note: See TracBrowser for help on using the repository browser.