Rev | Line | |
---|
[10] | 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}
|
---|
[8] | 5 | // created: 2013/03/25
|
---|
| 6 | // filename: SensorGL.cpp
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: classe definissant un modele de capteur
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 | #ifdef GL
|
---|
| 17 |
|
---|
| 18 | #include "SensorGL.h"
|
---|
| 19 | #include "Gui.h"
|
---|
| 20 | #include "Model.h"
|
---|
| 21 | #include "Model_impl.h"
|
---|
| 22 | #include <ISceneManager.h>
|
---|
| 23 |
|
---|
| 24 | using namespace irr::scene;
|
---|
| 25 | using namespace flair::simulator;
|
---|
| 26 |
|
---|
| 27 | namespace flair
|
---|
| 28 | {
|
---|
| 29 | namespace sensor
|
---|
| 30 | {
|
---|
| 31 |
|
---|
| 32 | SensorGL::SensorGL(const Model *parent)
|
---|
| 33 | {
|
---|
| 34 | collMan =getGui()->getSceneManager()->getSceneCollisionManager();
|
---|
| 35 | node=parent->Model::pimpl_;
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | SensorGL::~SensorGL()
|
---|
| 39 | {
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | ISceneCollisionManager* SensorGL::CollMan(void) const
|
---|
| 43 | {
|
---|
| 44 | return collMan;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | ISceneNode* SensorGL::Node(void) const
|
---|
| 48 | {
|
---|
| 49 | return node;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | } // end namespace simulator
|
---|
| 53 | } // end namespace flair
|
---|
| 54 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.