Panda3D
 All Classes Functions Variables Enumerations
pointParticleFactory.h
1 // Filename: pointParticleFactory.h
2 // Created by: charles (05Jul00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef POINTPARTICLEFACTORY_H
16 #define POINTPARTICLEFACTORY_H
17 
18 #include "baseParticleFactory.h"
19 
20 ////////////////////////////////////////////////////////////////////
21 // Class : PointParticleFactory
22 // Description : Creates point particles to user specs
23 ////////////////////////////////////////////////////////////////////
24 
25 class EXPCL_PANDAPHYSICS PointParticleFactory : public BaseParticleFactory {
26 PUBLISHED:
29  virtual ~PointParticleFactory();
30 
31  virtual void output(ostream &out) const;
32  virtual void write(ostream &out, int indent=0) const;
33 
34 private:
35  virtual BaseParticle *alloc_particle() const;
36  virtual void populate_child_particle(BaseParticle *bp) const;
37 };
38 
39 #endif // POINTPARTICLEFACTORY_H
Pure Virtual base class for creating particles.
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
Creates point particles to user specs.
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
An individual, physically-modelable particle abstract base class.
Definition: baseParticle.h:26