00001 // Filename: pointParticleFactory.h 00002 // Created by: charles (05Jul00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef POINTPARTICLEFACTORY_H 00016 #define POINTPARTICLEFACTORY_H 00017 00018 #include "baseParticleFactory.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Class : PointParticleFactory 00022 // Description : Creates point particles to user specs 00023 //////////////////////////////////////////////////////////////////// 00024 00025 class EXPCL_PANDAPHYSICS PointParticleFactory : public BaseParticleFactory { 00026 PUBLISHED: 00027 PointParticleFactory(); 00028 PointParticleFactory(const PointParticleFactory ©); 00029 virtual ~PointParticleFactory(); 00030 00031 virtual void output(ostream &out) const; 00032 virtual void write(ostream &out, int indent=0) const; 00033 00034 private: 00035 virtual BaseParticle *alloc_particle() const; 00036 virtual void populate_child_particle(BaseParticle *bp) const; 00037 }; 00038 00039 #endif // POINTPARTICLEFACTORY_H