Panda3D
Loading...
Searching...
No Matches
orientedParticleFactory.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 orientedParticleFactory.h
10 * @author charles
11 * @date 2000-07-05
12 */
13
14#ifndef ORIENTEDPARTICLEFACTORY_H
15#define ORIENTEDPARTICLEFACTORY_H
16
17#include "baseParticleFactory.h"
18
19#include "luse.h"
20
21/**
22 * Creates particles that are affected by angular forces.
23 */
24class EXPCL_PANDA_PARTICLESYSTEM OrientedParticleFactory : public BaseParticleFactory {
25PUBLISHED:
29
30 INLINE void set_initial_orientation(const LOrientation &o);
31 INLINE void set_final_orientation(const LOrientation &o);
32 INLINE LOrientation get_initial_orientation() const;
33 INLINE LOrientation get_final_orientation() const;
34
35 virtual void output(std::ostream &out) const;
36 virtual void write(std::ostream &out, int indent=0) const;
37
38private:
39 virtual void populate_child_particle(BaseParticle *bp) const;
40 virtual BaseParticle *alloc_particle() const;
41
42 LOrientation _initial_orientation;
43 LOrientation _final_orientation;
44};
45
47
48#endif // ORIENTEDPARTICLEFACTORY_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.
Creates particles that are affected by angular forces.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.