Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 658 was 658, checked in by nicolasc, 18 years ago
  • fixed (possible) typo in network
  • some inlining in PI - probably more possible
File size: 1.9 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 );
[658]23
24  void inline addToSceneNode( Ogre::SceneNode* sceneNode ) { sceneNode_ = sceneNode; sceneNode_->attachObject(particleSystem_);};
25  void inline detachFromSceneNode( void ) { sceneNode_->detachObject(particleSystem_); sceneNode_ = NULL;};
26
[609]27        Ogre::ParticleEmitter* getEmitter ( int emitterNr );
[535]28        void newEmitter ( void );
[658]29
30  Ogre::Vector3 getPositionOfEmitter ( int emitterNr );
31  inline void setPositionOfEmitter ( int emitterNr, Ogre::Vector3 position ) { particleSystem_->getEmitter(emitterNr)->setPosition(position); };
32
33  inline Ogre::Vector3 getDirection ( void ) { return particleSystem_->getEmitter(0)->getDirection(); };
[609]34        void setDirection ( Ogre::Vector3 direction );
[658]35
36        inline Ogre::Real getVelocity() {return velocity_; };
[609]37        void setVelocity( Ogre::Real v );
[658]38
39        inline int getRate() { return rate_; };
[535]40        void setRate( int r );
[658]41
42        inline Ogre::Real getDistance() { return distance_; };
[609]43        void setDistance( Ogre::Real d );
[658]44
45        inline Ogre::ColourValue getColour( void ) {return colour_;};
[609]46        void setColour( Ogre::ColourValue colour );
[658]47
[535]48        void switchEnable( void );
49
[658]50  inline Ogre::ParticleSystem* getParticleSystem() {return this->particleSystem_; };
[621]51
[535]52 private:
[609]53        Ogre::SceneNode *sceneNode_;
54        Ogre::SceneManager *sceneManager_;
[621]55  Ogre::ParticleSystem *particleSystem_;
[609]56        Ogre::Real distance_;
57        Ogre::Real velocity_;
[535]58        int rate_;
[609]59        Ogre::ColourValue colour_;
[535]60        int numberOfEmitters_;
61
62        void standardizeEmitters();
63};
64
65
66}
67#endif
Note: See TracBrowser for help on using the repository browser.