- Timestamp:
- Dec 20, 2007, 4:10:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/particle/ParticleInterface.h
r658 r659 19 19 public: 20 20 21 22 21 ParticleInterface( Ogre::SceneManager *sceneManager, Ogre::String name, Ogre::String templateName ); 22 ~ParticleInterface( void ); 23 23 24 24 void inline addToSceneNode( Ogre::SceneNode* sceneNode ) { sceneNode_ = sceneNode; sceneNode_->attachObject(particleSystem_);}; 25 25 void inline detachFromSceneNode( void ) { sceneNode_->detachObject(particleSystem_); sceneNode_ = NULL;}; 26 26 27 28 27 Ogre::ParticleEmitter* getEmitter ( int emitterNr ); 28 void newEmitter ( void ); 29 29 30 30 Ogre::Vector3 getPositionOfEmitter ( int emitterNr ); … … 32 32 33 33 inline Ogre::Vector3 getDirection ( void ) { return particleSystem_->getEmitter(0)->getDirection(); }; 34 34 void setDirection ( Ogre::Vector3 direction ); 35 35 36 37 36 inline Ogre::Real getVelocity() {return velocity_; }; 37 void setVelocity( Ogre::Real v ); 38 38 39 40 39 inline int getRate() { return rate_; }; 40 void setRate( int r ); 41 41 42 43 42 inline Ogre::Real getDistance() { return distance_; }; 43 void setDistance( Ogre::Real d ); 44 44 45 46 45 inline Ogre::ColourValue getColour( void ) {return colour_;}; 46 void setColour( Ogre::ColourValue colour ); 47 47 48 void switchEnable( void);48 void switchEnable(); 49 49 50 inline Ogre::ParticleSystem* getParticleSystem() { return this->particleSystem_; };50 inline Ogre::ParticleSystem* getParticleSystem() { return this->particleSystem_; }; 51 51 52 52 private: 53 54 53 Ogre::SceneNode *sceneNode_; 54 Ogre::SceneManager *sceneManager_; 55 55 Ogre::ParticleSystem *particleSystem_; 56 57 58 59 60 56 Ogre::Real distance_; 57 Ogre::Real velocity_; 58 int rate_; 59 Ogre::ColourValue colour_; 60 int numberOfEmitters_; 61 61 62 62 void standardizeEmitters(); 63 63 }; 64 65 64 66 65 }
Note: See TracChangeset
for help on using the changeset viewer.