Panda3D
|
00001 // Filename: ringEmitter.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 ARCEMITTER_H 00016 #define ARCEMITTER_H 00017 00018 #include "ringEmitter.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Class : ArcEmitter 00022 // Description : Describes a planar ring region in which 00023 // particles are generated. 00024 //////////////////////////////////////////////////////////////////// 00025 class EXPCL_PANDAPHYSICS ArcEmitter : public RingEmitter { 00026 PUBLISHED: 00027 ArcEmitter(); 00028 ArcEmitter(const ArcEmitter ©); 00029 virtual ~ArcEmitter(); 00030 00031 virtual BaseParticleEmitter *make_copy(); 00032 00033 INLINE void set_start_angle(PN_stdfloat angle); 00034 INLINE void set_end_angle(PN_stdfloat angle); 00035 INLINE void set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle); 00036 00037 INLINE PN_stdfloat get_start_angle(); 00038 INLINE PN_stdfloat get_end_angle(); 00039 00040 virtual void output(ostream &out) const; 00041 virtual void write(ostream &out, int indent=0) const; 00042 00043 private: 00044 // our emitter limits 00045 PN_stdfloat _start_theta; 00046 PN_stdfloat _end_theta; 00047 /////////////////////////////// 00048 00049 virtual void assign_initial_position(LPoint3& pos); 00050 }; 00051 00052 #include "arcEmitter.I" 00053 00054 #endif // ARCEMITTER_H