source: flair-src/trunk/lib/FlairSimulator/src/unexported/Simulator_impl.h @ 10

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 6 years ago

lic

File size: 1.3 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:    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
23
24namespace flair
25{
26    namespace simulator
27    {
28        class Simulator;
29        class Model;
30        class GenericObject;
31    }
32}
33
34class Simulator_impl: public vrpn_Connection_IP, private flair::core::Thread
35{
36    friend class flair::simulator::Model;
37    friend class flair::simulator::GenericObject;
38
39    public:
40        Simulator_impl(flair::simulator::Simulator* self,int optitrack_mstime=10,float yaw_deg=30);
41        ~Simulator_impl();
42
43        void RunSimu(void);
44        float yaw_rad;
45
46    private:
47        void Run(void);
48        flair::simulator::Simulator* self;
49        std::vector<flair::simulator::Model*> models;
50        std::vector<flair::simulator::GenericObject*> objects;
51        int optitrack_mstime;
52};
53
54#endif // SIMULATOR_IMPL_H
Note: See TracBrowser for help on using the repository browser.