Panda3D
pointParticleFactory.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file pointParticleFactory.h
10  * @author charles
11  * @date 2000-07-05
12  */
13 
14 #ifndef POINTPARTICLEFACTORY_H
15 #define POINTPARTICLEFACTORY_H
16 
17 #include "baseParticleFactory.h"
18 
19 /**
20  * Creates point particles to user specs
21  */
22 
23 class EXPCL_PANDA_PARTICLESYSTEM PointParticleFactory : public BaseParticleFactory {
24 PUBLISHED:
27  virtual ~PointParticleFactory();
28 
29  virtual void output(std::ostream &out) const;
30  virtual void write(std::ostream &out, int indent=0) const;
31 
32 private:
33  virtual BaseParticle *alloc_particle() const;
34  virtual void populate_child_particle(BaseParticle *bp) const;
35 };
36 
37 #endif // POINTPARTICLEFACTORY_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure Virtual base class for creating particles.
Creates point particles to user specs.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
virtual void write(std::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:23