Panda3D
 All Classes Functions Variables Enumerations
pointEmitter.h
00001 // Filename: pointEmitter.h
00002 // Created by:  charles (22Jun00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef POINTEMITTER_H
00016 #define POINTEMITTER_H
00017 
00018 #include "baseParticleEmitter.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : PointEmitter
00022 // Description : Describes a planar ring region in which
00023 //               particles are generated.
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDAPHYSICS PointEmitter : public BaseParticleEmitter {
00026 PUBLISHED:
00027   PointEmitter();
00028   PointEmitter(const PointEmitter &copy);
00029   virtual ~PointEmitter();
00030 
00031   virtual BaseParticleEmitter *make_copy();
00032 
00033   INLINE void set_location(const LPoint3& p);
00034   INLINE LPoint3 get_location() const;
00035 
00036   virtual void output(ostream &out) const;
00037   virtual void write(ostream &out, int indent=0) const;
00038 
00039 private:
00040   LPoint3 _location;
00041 
00042   // CUSTOM EMISSION PARAMETERS
00043   // none
00044 
00045   virtual void assign_initial_position(LPoint3& pos);
00046   virtual void assign_initial_velocity(LVector3& vel);
00047 };
00048 
00049 #include "pointEmitter.I"
00050 
00051 #endif // POINTEMITTER_H
 All Classes Functions Variables Enumerations