Panda3D

orientedParticle.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 orientedParticle.h
10 * @author charles
11 * @date 2000-06-19
12 */
13
14 #ifndef ORIENTEDPARTICLE_H
15 #define ORIENTEDPARTICLE_H
16
17 #include "baseParticle.h"
18
19 /**
20 * Describes a particle that has angular characteristics (velocity,
21 * orientation).
22 */
23 class EXPCL_PANDA_PARTICLESYSTEM OrientedParticle : public BaseParticle {
24 public:
25 OrientedParticle(int lifespan = 0, bool alive = false);
26 OrientedParticle(const OrientedParticle &copy);
27 virtual ~OrientedParticle();
28
29 virtual PhysicsObject *make_copy() const;
30
31 INLINE void set_velocity();
32 INLINE void set_orientation();
33
34 virtual void init();
35 virtual void update();
36 virtual void die();
37
38 virtual void output(std::ostream &out) const;
39 virtual void write(std::ostream &out, int indent=0) const;
40 };
41
42 #include "orientedParticle.I"
43
44 #endif // ORIENTEDPARTICLE_H
baseParticle.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
BaseParticle
An individual, physically-modelable particle abstract base class.
Definition: baseParticle.h:23
BaseParticle::write
virtual void write(std::ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Definition: baseParticle.cxx:64
BaseParticle::make_copy
virtual PhysicsObject * make_copy() const =0
dynamic copy.
BaseParticle::output
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Definition: baseParticle.cxx:54
OrientedParticle
Describes a particle that has angular characteristics (velocity, orientation).
Definition: orientedParticle.h:23
PhysicsObject
A body on which physics will be applied.
Definition: physicsObject.h:27
PhysicsObject::set_velocity
set_velocity
Vector velocity assignment.
Definition: physicsObject.h:107
indent
std::ostream & indent(std::ostream &out, int indent_level)
A handy function for doing text formatting.
Definition: indent.cxx:20
orientedParticle.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.