Panda3D

pointEmitter.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 pointEmitter.h
10 * @author charles
11 * @date 2000-06-22
12 */
13
14 #ifndef POINTEMITTER_H
15 #define POINTEMITTER_H
16
17 #include "baseParticleEmitter.h"
18
19 /**
20 * Describes a planar ring region in which particles are generated.
21 */
22 class EXPCL_PANDA_PARTICLESYSTEM PointEmitter : public BaseParticleEmitter {
23 PUBLISHED:
24 PointEmitter();
25 PointEmitter(const PointEmitter &copy);
26 virtual ~PointEmitter();
27
28 virtual BaseParticleEmitter *make_copy();
29
30 INLINE void set_location(const LPoint3& p);
31 INLINE LPoint3 get_location() const;
32
33 virtual void output(std::ostream &out) const;
34 virtual void write(std::ostream &out, int indent=0) const;
35
36 private:
37 LPoint3 _location;
38
39 // CUSTOM EMISSION PARAMETERS none
40
41 virtual void assign_initial_position(LPoint3& pos);
42 virtual void assign_initial_velocity(LVector3& vel);
43 };
44
45 #include "pointEmitter.I"
46
47 #endif // POINTEMITTER_H
baseParticleEmitter.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BaseParticleEmitter
Definition: baseParticleEmitter.h:25
BaseParticleEmitter::write
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Definition: baseParticleEmitter.cxx:92
BaseParticleEmitter::output
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Definition: baseParticleEmitter.cxx:82
PointEmitter
Describes a planar ring region in which particles are generated.
Definition: pointEmitter.h:22
indent
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
pointEmitter.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.