Panda3D

sphereSurfaceEmitter.h

00001 // Filename: sphereSurfaceEmitter.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 SPHERESURFACEEMITTER_H
00016 #define SPHERESURFACEEMITTER_H
00017 
00018 #include "baseParticleEmitter.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : SphereSurfaceEmitter
00022 // Description : Describes a curved space in which
00023 //               particles are generated.
00024 ////////////////////////////////////////////////////////////////////
00025 class EXPCL_PANDAPHYSICS SphereSurfaceEmitter : public BaseParticleEmitter {
00026 PUBLISHED:
00027   SphereSurfaceEmitter();
00028   SphereSurfaceEmitter(const SphereSurfaceEmitter &copy);
00029   virtual ~SphereSurfaceEmitter();
00030 
00031   virtual BaseParticleEmitter *make_copy();
00032 
00033   INLINE void set_radius(PN_stdfloat r);
00034   INLINE PN_stdfloat get_radius() const;
00035 
00036   virtual void output(ostream &out) const;
00037   virtual void write(ostream &out, int indent=0) const;
00038 
00039 private:
00040   PN_stdfloat _radius;
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 "sphereSurfaceEmitter.I"
00050 
00051 #endif // SPHERESURFACEEMITTER_H
 All Classes Functions Variables Enumerations