Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
//osgParticle - Copyright (C) 2002 Marco Jez
|
||||
@@ -40,9 +40,9 @@ namespace osgParticle
|
||||
public:
|
||||
ParticleSystemUpdater();
|
||||
ParticleSystemUpdater(const ParticleSystemUpdater& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
|
||||
META_Node(osgParticle,ParticleSystemUpdater);
|
||||
|
||||
|
||||
/// Add a particle system to the list.
|
||||
virtual bool addParticleSystem(ParticleSystem* ps);
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace osgParticle
|
||||
|
||||
/// Remove a particle system(s) from the list (by index).
|
||||
virtual bool removeParticleSystem(unsigned int i, unsigned int numParticleSystemsToRemove=1);
|
||||
|
||||
|
||||
/// Replace ParticleSystem with another ParticleSystem.
|
||||
virtual bool replaceParticleSystem(ParticleSystem* origPS, ParticleSystem* newPS);
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace osgParticle
|
||||
|
||||
/// Get a particle system from the list.
|
||||
inline ParticleSystem* getParticleSystem(unsigned int i);
|
||||
|
||||
|
||||
/// Get a particle system from the list.
|
||||
inline const ParticleSystem* getParticleSystem(unsigned int i) const;
|
||||
|
||||
@@ -72,33 +72,33 @@ namespace osgParticle
|
||||
|
||||
/// get index number of ParticleSystem.
|
||||
inline unsigned int getParticleSystemIndex( const ParticleSystem* ps ) const;
|
||||
|
||||
|
||||
virtual void traverse(osg::NodeVisitor& nv);
|
||||
|
||||
virtual osg::BoundingSphere computeBound() const;
|
||||
|
||||
virtual osg::BoundingSphere computeBound() const;
|
||||
|
||||
protected:
|
||||
virtual ~ParticleSystemUpdater() {}
|
||||
ParticleSystemUpdater &operator=(const ParticleSystemUpdater &) { return *this; }
|
||||
|
||||
|
||||
private:
|
||||
typedef std::vector<osg::ref_ptr<ParticleSystem> > ParticleSystem_Vector;
|
||||
|
||||
|
||||
ParticleSystem_Vector _psv;
|
||||
double _t0;
|
||||
|
||||
|
||||
//added 1/17/06- bgandere@nps.edu
|
||||
//a var to keep from doing multiple updates per frame
|
||||
unsigned int _frameNumber;
|
||||
};
|
||||
|
||||
|
||||
// INLINE FUNCTIONS
|
||||
|
||||
|
||||
inline unsigned int ParticleSystemUpdater::getNumParticleSystems() const
|
||||
{
|
||||
return static_cast<int>(_psv.size());
|
||||
}
|
||||
|
||||
|
||||
inline ParticleSystem* ParticleSystemUpdater::getParticleSystem(unsigned int i)
|
||||
{
|
||||
return _psv[i].get();
|
||||
|
||||
Reference in New Issue
Block a user