Last change
on this file since 366 was 361, checked in by Sanahuja Guillaume, 4 years ago |
add ball for Julio
|
File size:
1.2 KB
|
Rev | Line | |
---|
[361] | 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 |
|
---|
| 22 | namespace irr {
|
---|
| 23 | namespace scene {
|
---|
| 24 | class IMeshSceneNode;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | namespace flair {
|
---|
| 29 | namespace gui {
|
---|
| 30 | class DoubleSpinBox;
|
---|
| 31 | class Vector3DSpinBox;
|
---|
| 32 | class PushButton;
|
---|
| 33 | }
|
---|
| 34 | }
|
---|
| 35 |
|
---|
| 36 | namespace flair {
|
---|
| 37 | namespace simulator {
|
---|
| 38 |
|
---|
| 39 | class Ball : private Model {
|
---|
| 40 | public:
|
---|
| 41 | Ball(std::string name,uint32_t modelId);
|
---|
| 42 | ~Ball();
|
---|
| 43 |
|
---|
| 44 | private:
|
---|
| 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.