Panda3D
Loading...
Searching...
No Matches
zSpinParticleFactory.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 zSpinParticleFactory.h
10 * @author charles
11 * @date 2000-08-16
12 */
13
14#ifndef ZSPINPARTICLEFACTORY_H
15#define ZSPINPARTICLEFACTORY_H
16
17#include "baseParticleFactory.h"
18
19/**
20 *
21 */
22class EXPCL_PANDA_PARTICLESYSTEM ZSpinParticleFactory : public BaseParticleFactory {
23PUBLISHED:
26 virtual ~ZSpinParticleFactory();
27
28 INLINE void set_initial_angle(PN_stdfloat angle);
29 INLINE void set_final_angle(PN_stdfloat angle);
30 INLINE void set_initial_angle_spread(PN_stdfloat spread);
31 INLINE void set_final_angle_spread(PN_stdfloat spread);
32
33 INLINE PN_stdfloat get_initial_angle() const;
34 INLINE PN_stdfloat get_final_angle() const;
35 INLINE PN_stdfloat get_initial_angle_spread() const;
36 INLINE PN_stdfloat get_final_angle_spread() const;
37
38 INLINE void set_angular_velocity(PN_stdfloat v);
39 INLINE PN_stdfloat get_angular_velocity() const;
40
41 INLINE void set_angular_velocity_spread(PN_stdfloat spread);
42 INLINE PN_stdfloat get_angular_velocity_spread() const;
43
44 INLINE void enable_angular_velocity(bool bEnabled);
45 INLINE bool get_angular_velocity_enabled() const;
46
47 virtual void output(std::ostream &out) const;
48 virtual void write(std::ostream &out, int indent=0) const;
49
50private:
51 PN_stdfloat _initial_angle;
52 PN_stdfloat _initial_angle_spread;
53 PN_stdfloat _final_angle;
54 PN_stdfloat _final_angle_spread;
55 PN_stdfloat _angular_velocity;
56 PN_stdfloat _angular_velocity_spread;
57 bool _bUseAngularVelocity;
58
59 virtual void populate_child_particle(BaseParticle *bp) const;
60 virtual BaseParticle *alloc_particle() const;
61};
62
64
65#endif // ZSPINPARTICLEFACTORY_H
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Pure Virtual base class for creating particles.
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
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.
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.