source: flair-src/branches/mavlink/lib/FlairSimulator/src/MeshSceneNode.h@ 89

Last change on this file since 89 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

File size: 1.8 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: 2012/08/22
6// filename: MeshSceneNode.h
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe definissant un IMeshSceneNode
14//
15/*********************************************************************/
16
17#ifndef MESHSCENENODE_H
18#define MESHSCENENODE_H
19
20#include <IMeshSceneNode.h>
21
22namespace flair {
23namespace simulator {
24class Model;
25
26class MeshSceneNode : public irr::scene::IMeshSceneNode {
27public:
28 MeshSceneNode(
29 Model *parent, irr::scene::IMesh *mesh,
30 const irr::core::vector3df &position = irr::core::vector3df(0, 0, 0),
31 const irr::core::vector3df &rotation = irr::core::vector3df(0, 0, 0),
32 irr::video::ITexture *texture = NULL, irr::s32 id = -1);
33
34 virtual void OnRegisterSceneNode(void);
35 virtual void render(void);
36 virtual const irr::core::aabbox3d<irr::f32> &getBoundingBox() const {
37 return Box;
38 }
39 virtual irr::u32 getMaterialCount(void) const { return 1; }
40 virtual irr::video::SMaterial &getMaterial(irr::u32 i);
41 virtual void setMesh(irr::scene::IMesh *ptr);
42 virtual irr::scene::IMesh *getMesh(void);
43 virtual void setReadOnlyMaterials(bool readonly);
44 virtual bool isReadOnlyMaterials(void) const { return false; }
45 virtual irr::scene::IShadowVolumeSceneNode *
46 addShadowVolumeSceneNode(const irr::scene::IMesh *shadowMesh = 0,
47 irr::s32 id = -1, bool zfailmethod = true,
48 irr::f32 infinity = 1000.0f) {
49 return NULL;
50 }
51
52private:
53 irr::scene::IMesh *mesh;
54 irr::core::aabbox3d<irr::f32> Box;
55 irr::video::SMaterial Material;
56};
57} // end namespace simulator
58} // end namespace flair
59
60#endif // MESHSCENENODE_H
Note: See TracBrowser for help on using the repository browser.