Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/particlesystem/tangentRingEmitter.h

Go to the documentation of this file.
00001 // Filename: tangentRingEmitter.h
00002 // Created by:  charles (25Jul00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef TANGENTRINGEMITTER_H
00020 #define TANGENTRINGEMITTER_H
00021 
00022 #include "baseParticleEmitter.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : TangentRingEmitter
00026 // Description : Describes a planar ring region in which
00027 //               tangent particles are generated, and particles
00028 //               fly off tangential to the ring.
00029 ////////////////////////////////////////////////////////////////////
00030 class EXPCL_PANDAPHYSICS TangentRingEmitter : public BaseParticleEmitter {
00031 private:
00032   float _radius;
00033 
00034   // CUSTOM EMISSION PARAMETERS
00035   // none
00036 
00037   ///////////////////////////////
00038   // scratch variables that carry over from position calc to velocity calc
00039   float _x, _y;
00040   ///////////////////////////////
00041 
00042   virtual void assign_initial_position(LPoint3f& pos);
00043   virtual void assign_initial_velocity(LVector3f& vel);
00044 
00045 PUBLISHED:
00046   TangentRingEmitter(void);
00047   TangentRingEmitter(const TangentRingEmitter &copy);
00048   virtual ~TangentRingEmitter(void);
00049 
00050   virtual BaseParticleEmitter *make_copy(void);
00051 
00052   INLINE void set_radius(float r);
00053   INLINE float get_radius(void) const;
00054 };
00055 
00056 #include "tangentRingEmitter.I"
00057 
00058 #endif // TANGENTRINGEMITTER_H

Generated on Fri May 2 00:41:02 2003 for Panda by doxygen1.3