Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/particlesystem/particleSystemManager.I

Go to the documentation of this file.
00001 // Filename: particleSystemManager.I
00002 // Created by:  charles (28Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 ////////////////////////////////////////////////////////////////////
00020 // Function : set_frame_stepping
00021 //   Access : public
00022 ////////////////////////////////////////////////////////////////////
00023 
00024 INLINE void ParticleSystemManager::
00025 set_frame_stepping(int every_nth_frame) {
00026   _nth_frame = every_nth_frame;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 // Function : get_frame_stepping
00031 //   Access : public
00032 ////////////////////////////////////////////////////////////////////
00033 
00034 INLINE int ParticleSystemManager::
00035 get_frame_stepping(void) const {
00036   return _nth_frame;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 // Function : attach_particlesystem
00041 //   Access : public
00042 ////////////////////////////////////////////////////////////////////
00043 
00044 INLINE void ParticleSystemManager::
00045 attach_particlesystem(ParticleSystem *ps) {
00046   ps->_manager = this;
00047   plist< PT(ParticleSystem) >::iterator found;
00048   PT(ParticleSystem) ptps = ps;
00049   found = find(_ps_list.begin(), _ps_list.end(), ptps);
00050   if (found == _ps_list.end())
00051     _ps_list.push_back(ps);
00052 }
00053 
00054 ////////////////////////////////////////////////////////////////////
00055 // Function : clear
00056 //   Access : public
00057 ////////////////////////////////////////////////////////////////////
00058 
00059 INLINE void ParticleSystemManager::
00060 clear(void) {
00061   _ps_list.erase(_ps_list.begin(), _ps_list.end());
00062 }

Generated on Fri May 2 00:40:59 2003 for Panda by doxygen1.3