Panda3D
Loading...
Searching...
No Matches
tangentRingEmitter.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 tangentRingEmitter.h
10 * @author charles
11 * @date 2000-07-25
12 */
13
14#ifndef TANGENTRINGEMITTER_H
15#define TANGENTRINGEMITTER_H
16
17#include "baseParticleEmitter.h"
18
19/**
20 * Describes a planar ring region in which tangent particles are generated,
21 * and particles fly off tangential to the ring.
22 */
23class EXPCL_PANDA_PARTICLESYSTEM TangentRingEmitter : public BaseParticleEmitter {
24PUBLISHED:
27 virtual ~TangentRingEmitter();
28
29 virtual BaseParticleEmitter *make_copy();
30
31 INLINE void set_radius(PN_stdfloat r);
32 INLINE void set_radius_spread(PN_stdfloat spread);
33
34 INLINE PN_stdfloat get_radius() const;
35 INLINE PN_stdfloat get_radius_spread() const;
36
37 virtual void output(std::ostream &out) const;
38 virtual void write(std::ostream &out, int indent=0) const;
39
40private:
41 PN_stdfloat _radius;
42 PN_stdfloat _radius_spread;
43
44 // CUSTOM EMISSION PARAMETERS none
45
46 // scratch variables that carry over from position calc to velocity calc
47 PN_stdfloat _x;
48 PN_stdfloat _y;
49
50 virtual void assign_initial_position(LPoint3& pos);
51 virtual void assign_initial_velocity(LVector3& vel);
52};
53
54#include "tangentRingEmitter.I"
55
56#endif // TANGENTRINGEMITTER_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Describes a planar ring region in which tangent particles are generated, and particles fly off tangen...
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.