Panda3D

Loading...
Searching...
No Matches
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::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::output
virtual void output(std::ostream &out) const
Write a string representation of this instance to <out>.
Definition baseParticle.cxx:54
BaseParticle::make_copy
virtual PhysicsObject * make_copy() const =0
dynamic copy.
OrientedParticle::OrientedParticle
OrientedParticle(int lifespan=0, bool alive=false)
simple constructor
Definition orientedParticle.cxx:20
OrientedParticle::update
virtual void update()
particle update routine.
Definition orientedParticle.cxx:67
OrientedParticle::init
virtual void init()
particle init routine
Definition orientedParticle.cxx:52
OrientedParticle::die
virtual void die()
particle death routine
Definition orientedParticle.cxx:59
PhysicsObject::PhysicsObject
PhysicsObject()
Default Constructor.
Definition physicsObject.cxx:25
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.