Last change
on this file since 296 was 286, checked in by Sanahuja Guillaume, 6 years ago |
draw vrpn axis in simulator
|
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: GenericObject.h
|
---|
7 | //
|
---|
8 | // author: Cesar Richard
|
---|
9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
10 | //
|
---|
11 | // version: $Id: $
|
---|
12 | //
|
---|
13 | // purpose: classe definissant un modele a simuler
|
---|
14 | //
|
---|
15 | /*********************************************************************/
|
---|
16 |
|
---|
17 | #ifndef GENERICOBJECT_H
|
---|
18 | #define GENERICOBJECT_H
|
---|
19 | #ifdef GL
|
---|
20 |
|
---|
21 | #include <vector3d.h>
|
---|
22 |
|
---|
23 | namespace irr {
|
---|
24 | namespace scene {
|
---|
25 | class IMesh;
|
---|
26 | class IMeshSceneNode;
|
---|
27 | class ITriangleSelector;
|
---|
28 | class ISceneNode;
|
---|
29 | }
|
---|
30 | }
|
---|
31 |
|
---|
32 | class Simulator_impl;
|
---|
33 |
|
---|
34 | namespace flair {
|
---|
35 | namespace simulator {
|
---|
36 |
|
---|
37 | class GenericObject {
|
---|
38 | friend class ::Simulator_impl;
|
---|
39 |
|
---|
40 | public:
|
---|
41 | GenericObject(irr::scene::IMesh *mesh);
|
---|
42 | virtual ~GenericObject();
|
---|
43 |
|
---|
44 | irr::scene::ITriangleSelector *TriangleSelector(void);
|
---|
45 | void setScale(float value);
|
---|
46 | void setScale(const irr::core::vector3df& scale);
|
---|
47 | void setPosition(const irr::core::vector3df& position);
|
---|
48 | void setRotation(const irr::core::vector3df& rotation);
|
---|
49 | void setVisible(bool isVisible);//visible by default at construction
|
---|
50 |
|
---|
51 | private:
|
---|
52 | irr::scene::ITriangleSelector *selector;
|
---|
53 | irr::scene::IMeshSceneNode *meshSceneNode;
|
---|
54 | };
|
---|
55 | } // end namespace simulator
|
---|
56 | } // end namespace flair
|
---|
57 | #endif // GL
|
---|
58 | #endif // GENERICOBJECT_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.