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

panda/src/particlesystem/pointParticleFactory.cxx

Go to the documentation of this file.
00001 // Filename: pointParticleFactory.cxx
00002 // Created by:  charles (05Jul00)
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 #include "pointParticleFactory.h"
00020 #include "pointParticle.h"
00021 
00022 #include <stdlib.h>
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //    Function : PointParticleFactory
00026 //      Access : public
00027 // Description : default constructor
00028 ////////////////////////////////////////////////////////////////////
00029 PointParticleFactory::
00030 PointParticleFactory(void) :
00031   BaseParticleFactory() {
00032 }
00033 
00034 ////////////////////////////////////////////////////////////////////
00035 //    Function : PointParticleFactory
00036 //      Access : public
00037 // Description : copy constructor
00038 ////////////////////////////////////////////////////////////////////
00039 PointParticleFactory::
00040 PointParticleFactory(const PointParticleFactory &copy) :
00041   BaseParticleFactory(copy) {
00042 }
00043 
00044 ////////////////////////////////////////////////////////////////////
00045 //    Function : ~PointParticleFactory
00046 //      Access : public
00047 // Description : destructor
00048 ////////////////////////////////////////////////////////////////////
00049 PointParticleFactory::
00050 ~PointParticleFactory(void) {
00051 }
00052 
00053 ////////////////////////////////////////////////////////////////////
00054 //    Function : populate_child_particle
00055 //      Access : public
00056 // Description : child particle generation function
00057 ////////////////////////////////////////////////////////////////////
00058 void PointParticleFactory::
00059 populate_child_particle(BaseParticle *bp) const {
00060   bp->set_oriented(false);
00061 }
00062 
00063 ////////////////////////////////////////////////////////////////////
00064 //    Function : alloc_particle
00065 //      Access : public
00066 // Description : child particle generation function
00067 ////////////////////////////////////////////////////////////////////
00068 BaseParticle *PointParticleFactory::
00069 alloc_particle(void) const {
00070   return new PointParticle;
00071 }

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