Panda3D
panda
src
particlesystem
arcEmitter.h
1
// Filename: ringEmitter.h
2
// Created by: charles (22Jun00)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef ARCEMITTER_H
16
#define ARCEMITTER_H
17
18
#include "ringEmitter.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Class : ArcEmitter
22
// Description : Describes a planar ring region in which
23
// particles are generated.
24
////////////////////////////////////////////////////////////////////
25
class
EXPCL_PANDAPHYSICS
ArcEmitter
:
public
RingEmitter
{
26
PUBLISHED:
27
ArcEmitter
();
28
ArcEmitter
(
const
ArcEmitter
©);
29
virtual
~
ArcEmitter
();
30
31
virtual
BaseParticleEmitter
*
make_copy
();
32
33
INLINE
void
set_start_angle(PN_stdfloat angle);
34
INLINE
void
set_end_angle(PN_stdfloat angle);
35
INLINE
void
set_arc(PN_stdfloat startAngle, PN_stdfloat endAngle);
36
37
INLINE PN_stdfloat get_start_angle();
38
INLINE PN_stdfloat get_end_angle();
39
40
virtual
void
output
(ostream &out)
const
;
41
virtual
void
write
(ostream &out,
int
indent=0)
const
;
42
43
private
:
44
// our emitter limits
45
PN_stdfloat _start_theta;
46
PN_stdfloat _end_theta;
47
///////////////////////////////
48
49
virtual
void
assign_initial_position(
LPoint3
& pos);
50
};
51
52
#include "arcEmitter.I"
53
54
#endif // ARCEMITTER_H
ArcEmitter
Describes a planar ring region in which particles are generated.
Definition:
arcEmitter.h:25
RingEmitter::write
virtual void write(ostream &out, int indent=0) const
Write a string representation of this instance to <out>.
Definition:
ringEmitter.cxx:137
LPoint3f
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition:
lpoint3.h:99
RingEmitter
Describes a planar ring region in which particles are generated.
Definition:
ringEmitter.h:25
RingEmitter::output
virtual void output(ostream &out) const
Write a string representation of this instance to <out>.
Definition:
ringEmitter.cxx:124
BaseParticleEmitter
Describes a physical region in space in which particles are randomly generated.
Definition:
baseParticleEmitter.h:31
RingEmitter::make_copy
virtual BaseParticleEmitter * make_copy()
copier
Definition:
ringEmitter.cxx:61
Generated on Wed May 17 2017 23:44:11 for Panda3D by
1.8.13