00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ARCEMITTER_H
00016 #define ARCEMITTER_H
00017
00018 #include "ringEmitter.h"
00019
00020
00021
00022
00023
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
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