OGRE
1.9
Object-Oriented Graphics Rendering Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
OgreAreaEmitter.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OGRE
4
(Object-oriented Graphics Rendering Engine)
5
For the latest info, see http://www.ogre3d.org/
6
7
Copyright (c) 2000-2014 Torus Knot Software Ltd
8
9
Permission is hereby granted, free of charge, to any person obtaining a copy
10
of this software and associated documentation files (the "Software"), to deal
11
in the Software without restriction, including without limitation the rights
12
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
copies of the Software, and to permit persons to whom the Software is
14
furnished to do so, subject to the following conditions:
15
16
The above copyright notice and this permission notice shall be included in
17
all copies or substantial portions of the Software.
18
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
THE SOFTWARE.
26
-----------------------------------------------------------------------------
27
*/
28
#ifndef __AreaEmitter_H__
29
#define __AreaEmitter_H__
30
31
#include "
OgreParticleFXPrerequisites.h
"
32
#include "
OgreParticleEmitter.h
"
33
34
namespace
Ogre {
35
47
class
_OgreParticleFXExport
AreaEmitter
:
public
ParticleEmitter
48
{
49
public
:
51
class
CmdWidth
:
public
ParamCommand
52
{
53
public
:
54
String
doGet(
const
void
* target)
const
;
55
void
doSet(
void
* target,
const
String
& val);
56
};
58
class
CmdHeight
:
public
ParamCommand
59
{
60
public
:
61
String
doGet(
const
void
* target)
const
;
62
void
doSet(
void
* target,
const
String
& val);
63
};
65
class
CmdDepth
:
public
ParamCommand
66
{
67
public
:
68
String
doGet(
const
void
* target)
const
;
69
void
doSet(
void
* target,
const
String
& val);
70
};
71
72
73
AreaEmitter
(
ParticleSystem
* psys) :
ParticleEmitter
(psys) {}
74
75
77
unsigned
short
_getEmissionCount(
Real
timeElapsed);
78
80
void
setDirection(
const
Vector3
& direction );
81
89
void
setSize(
const
Vector3
& size);
90
98
void
setSize(
Real
x,
Real
y,
Real
z);
99
101
void
setWidth(
Real
width);
103
Real
getWidth(
void
)
const
;
105
void
setHeight(
Real
Height);
107
Real
getHeight(
void
)
const
;
109
void
setDepth(
Real
Depth);
111
Real
getDepth(
void
)
const
;
112
113
protected
:
115
Vector3
mSize
;
116
118
Vector3
mXRange, mYRange,
mZRange
;
119
121
void
genAreaAxes(
void
);
125
bool
initDefaults(
const
String
& mType);
126
128
static
CmdWidth
msWidthCmd
;
129
static
CmdHeight
msHeightCmd
;
130
static
CmdDepth
msDepthCmd
;
131
132
133
134
};
135
136
}
137
138
#endif
139
Ogre::AreaEmitter
Particle emitter which emits particles randomly from points inside an area (box, sphere, ellipsoid whatever subclasses choose to be).
Definition:
OgreAreaEmitter.h:47
Ogre::ParticleSystem
Class defining particle system based special effects.
Definition:
OgreParticleSystem.h:67
Ogre::AreaEmitter::CmdHeight
Command object for area emitter size (see ParamCommand).
Definition:
OgreAreaEmitter.h:58
Ogre::Real
float Real
Software floating point type.
Definition:
OgrePrerequisites.h:70
Ogre::AreaEmitter::AreaEmitter
AreaEmitter(ParticleSystem *psys)
Definition:
OgreAreaEmitter.h:73
OgreParticleFXPrerequisites.h
Ogre::AreaEmitter::mZRange
Vector3 mZRange
Definition:
OgreAreaEmitter.h:118
Ogre::AreaEmitter::mSize
Vector3 mSize
Size of the area.
Definition:
OgreAreaEmitter.h:115
OgreParticleEmitter.h
Ogre::AreaEmitter::msDepthCmd
static CmdDepth msDepthCmd
Definition:
OgreAreaEmitter.h:130
_OgreParticleFXExport
#define _OgreParticleFXExport
Definition:
OgreParticleFXPrerequisites.h:43
Ogre::ParticleEmitter
Abstract class defining the interface to be implemented by particle emitters.
Definition:
OgreParticleEmitter.h:72
Ogre::Vector3
Standard 3-dimensional vector.
Definition:
OgreVector3.h:51
Ogre::AreaEmitter::CmdDepth
Command object for area emitter size (see ParamCommand).
Definition:
OgreAreaEmitter.h:65
Ogre::AreaEmitter::msHeightCmd
static CmdHeight msHeightCmd
Definition:
OgreAreaEmitter.h:129
Ogre::String
_StringBase String
Definition:
OgrePrerequisites.h:442
Ogre::AreaEmitter::msWidthCmd
static CmdWidth msWidthCmd
Command objects.
Definition:
OgreAreaEmitter.h:128
Ogre::AreaEmitter::CmdWidth
Command object for area emitter size (see ParamCommand).
Definition:
OgreAreaEmitter.h:51
Ogre::ParamCommand
Abstract class which is command object which gets/sets parameters.
Definition:
OgreStringInterface.h:79
Plugins
ParticleFX
include
OgreAreaEmitter.h
Generated on Fri Jun 20 2014 00:37:30 for OGRE by
1.8.7