Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/particle/ParticleInterface.h @ 637

Last change on this file since 637 was 621, checked in by nicolasc, 17 years ago

don't access variables directly!!

File size: 1.5 KB
RevLine 
[535]1#ifndef MODULE_ParticleInterface_H
2#define MODULE_ParticleInterface_H
3
4// #include "ParticleInterface.h"
[618]5// #include <Ogre.h>
6// #include <OIS/OIS.h>
[535]7// #include <CEGUI/CEGUI.h>
8// #include <CEGUIRenderer.h>
[618]9#include <OgreParticleSystem.h>
10#include <OgreParticleEmitter.h>
11#include <OgreSceneManager.h>
[535]12
13
14namespace particle
15{
16
17class ParticleInterface
18{
19 public:
20
[609]21        ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName );
[535]22        ~ParticleInterface( void );
[609]23        void addToSceneNode( Ogre::SceneNode* sceneNode );
[535]24        void dettachFromSceneNode( void );
[609]25        Ogre::ParticleEmitter* getEmitter ( int emitterNr );
[535]26        void newEmitter ( void );
[609]27        void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position );
28        Ogre::Vector3 getPositionOfEmitter ( int emitterNr );
29        void setDirection ( Ogre::Vector3 direction );
30        Ogre::Vector3 getDirection ( void );
31        Ogre::Real getVelocity();
32        void setVelocity( Ogre::Real v );
[535]33        int getRate();
34        void setRate( int r );
[609]35        Ogre::Real getDistance();
36        void setDistance( Ogre::Real d );
37        Ogre::ColourValue getColour( void );
38        void setColour( Ogre::ColourValue colour );
[535]39        void switchEnable( void );
40
[621]41  Ogre::ParticleSystem* getParticleSystem() {return this->particleSystem_; };
42
[535]43 private:
[609]44        Ogre::SceneNode *sceneNode_;
45        Ogre::SceneManager *sceneManager_;
[621]46  Ogre::ParticleSystem *particleSystem_;
[609]47        Ogre::Real distance_;
48        Ogre::Real velocity_;
[535]49        int rate_;
[609]50        Ogre::ColourValue colour_;
[535]51        int numberOfEmitters_;
52
53        void standardizeEmitters();
54};
55
56
57}
58#endif
Note: See TracBrowser for help on using the repository browser.