Last change
on this file since 55 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.2 KB
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[8] | 5 | // created: 2013/03/25
|
---|
| 6 | // filename: Simulator_impl.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: classe de base du simulateur
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 |
|
---|
| 17 | #ifndef SIMULATOR_IMPL_H
|
---|
| 18 | #define SIMULATOR_IMPL_H
|
---|
| 19 |
|
---|
| 20 | #include <vrpn_Connection.h>
|
---|
| 21 | #include <Thread.h>
|
---|
| 22 |
|
---|
[15] | 23 | namespace flair {
|
---|
| 24 | namespace simulator {
|
---|
| 25 | class Simulator;
|
---|
| 26 | class Model;
|
---|
| 27 | class GenericObject;
|
---|
[8] | 28 | }
|
---|
[15] | 29 | }
|
---|
[8] | 30 |
|
---|
[15] | 31 | class Simulator_impl : public vrpn_Connection_IP, private flair::core::Thread {
|
---|
| 32 | friend class flair::simulator::Model;
|
---|
| 33 | friend class flair::simulator::GenericObject;
|
---|
[8] | 34 |
|
---|
[15] | 35 | public:
|
---|
| 36 | Simulator_impl(flair::simulator::Simulator *self, int optitrack_mstime = 10,
|
---|
| 37 | float yaw_deg = 30);
|
---|
| 38 | ~Simulator_impl();
|
---|
[8] | 39 |
|
---|
[15] | 40 | void RunSimu(void);
|
---|
| 41 | float yaw_rad;
|
---|
[8] | 42 |
|
---|
[15] | 43 | private:
|
---|
| 44 | void Run(void);
|
---|
| 45 | flair::simulator::Simulator *self;
|
---|
| 46 | std::vector<flair::simulator::Model *> models;
|
---|
| 47 | std::vector<flair::simulator::GenericObject *> objects;
|
---|
| 48 | int optitrack_mstime;
|
---|
[8] | 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif // SIMULATOR_IMPL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.