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

panda/src/particlesystem/rectangleEmitter.h

Go to the documentation of this file.
00001 // Filename: rectangleEmitter.h
00002 // Created by:  charles (22Jun00)
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 RECTANGLEEMITTER_H
00020 #define RECTANGLEEMITTER_H
00021 
00022 #include "baseParticleEmitter.h"
00023 
00024 ////////////////////////////////////////////////////////////////////
00025 //       Class : RectangleEmitter
00026 // Description : Describes a planar square region in which
00027 //               particles are generated.
00028 ////////////////////////////////////////////////////////////////////
00029 class EXPCL_PANDAPHYSICS RectangleEmitter : public BaseParticleEmitter {
00030 private:
00031   LPoint2f _vmin, _vmax;
00032 
00033   // CUSTOM EMISSION PARAMETERS
00034   // none
00035 
00036   virtual void assign_initial_position(LPoint3f& pos);
00037   virtual void assign_initial_velocity(LVector3f& vel);
00038 
00039 PUBLISHED:
00040   RectangleEmitter(void);
00041   RectangleEmitter(const RectangleEmitter &copy);
00042   virtual ~RectangleEmitter(void);
00043 
00044   virtual BaseParticleEmitter *make_copy(void);
00045 
00046   INLINE void set_min_bound(const LPoint2f& vmin);
00047   INLINE void set_max_bound(const LPoint2f& vmax);
00048 
00049   INLINE LPoint2f get_min_bound(void) const;
00050   INLINE LPoint2f get_max_bound(void) const;
00051 };
00052 
00053 #include "rectangleEmitter.I"
00054 
00055 #endif // RECTANGLEEMITTER_H

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