Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 11:08:56 PM (16 years ago)
Author:
nicolasc
Message:
  • fixed (possible) typo in network
  • some inlining in PI - probably more possible
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/particle/ParticleInterface.cc

    r647 r658  
    2424 *      ...
    2525 *
     26 */
     27
     28/**
     29 * @file ParticleInterface.cc
     30 * @brief class to control praticle effects
    2631 */
    2732
     
    7075  }
    7176
    72   void ParticleInterface::addToSceneNode( SceneNode* sceneNode )
    73   {
    74     sceneNode_ = sceneNode;
    75     sceneNode_->attachObject(particleSystem_);
    76   }
    77 
    78   void ParticleInterface::detachFromSceneNode ( void )
    79   {
    80     sceneNode_->detachObject(particleSystem_);
    81     sceneNode_ = NULL;
    82   }
    83 
    84   Real ParticleInterface::getVelocity()
    85   {
    86     return velocity_;
    87   }
    88 
    8977  void ParticleInterface::setVelocity(Real v)
    9078  {
     
    9482  }
    9583
    96   int ParticleInterface::getRate()
    97   {
    98     return rate_;
    99   }
    10084  void ParticleInterface::setRate(int r)
    10185  {
     
    10791  }
    10892
    109   Real ParticleInterface::getDistance()
    110   {
    111     return distance_;
    112   }
    113 
    11493  void ParticleInterface::setDistance(Real d)
    11594  {
     
    11998      particleSystem_->getEmitter(i)->setTimeToLive(distance_);
    12099    }
    121   }
    122   ColourValue ParticleInterface::getColour()
    123   {
    124     return colour_;
    125100  }
    126101
     
    147122  }
    148123
    149   void ParticleInterface::setPositionOfEmitter ( int emitterNr, Vector3 position )
    150   {
    151     particleSystem_->getEmitter(emitterNr)->setPosition(position);
    152   }
    153 
     124 // TODO check if this really works
    154125  Vector3 ParticleInterface::getPositionOfEmitter ( int emitterNr )
    155126  {
     
    164135  }
    165136
    166 
    167   Vector3 ParticleInterface::getDirection ( void )
    168   {
    169     return particleSystem_->getEmitter(0)->getDirection();
    170   }
    171 
    172137  void ParticleInterface::switchEnable(){
    173138    bool enable=(!(particleSystem_->getEmitter(0)->getEnabled()));
Note: See TracChangeset for help on using the changeset viewer.