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 */
24 class EXPCL_PANDA_PARTICLESYSTEM OrientedParticleFactory : public BaseParticleFactory {
25PUBLISHED:
26 OrientedParticleFactory();
27 OrientedParticleFactory(const OrientedParticleFactory &copy);
28 virtual ~OrientedParticleFactory();
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
38 private:
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
46#include "orientedParticleFactory.I"
47
48#endif // ORIENTEDPARTICLEFACTORY_H
baseParticleFactory.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BaseParticleFactory::output
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Definition baseParticleFactory.cxx:72
BaseParticleFactory::write
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Definition baseParticleFactory.cxx:82
BaseParticle
An individual, physically-modelable particle abstract base class.
Definition baseParticle.h:23
OrientedParticleFactory::OrientedParticleFactory
OrientedParticleFactory()
Constructor.
Definition orientedParticleFactory.cxx:21
indent
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition indent.cxx:20
luse.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
orientedParticleFactory.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.