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
OgreLinearForceAffector.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 __LinearForceAffector_H__
29
#define __LinearForceAffector_H__
30
31
#include "
OgreParticleFXPrerequisites.h
"
32
#include "
OgreParticleAffector.h
"
33
#include "
OgreVector3.h
"
34
35
36
namespace
Ogre {
37
51
class
_OgreParticleFXExport
LinearForceAffector
:
public
ParticleAffector
52
{
53
public
:
55
class
CmdForceVector
:
public
ParamCommand
56
{
57
public
:
58
String
doGet(
const
void
* target)
const
;
59
void
doSet(
void
* target,
const
String
& val);
60
};
61
63
class
CmdForceApp
:
public
ParamCommand
64
{
65
public
:
66
String
doGet(
const
void
* target)
const
;
67
void
doSet(
void
* target,
const
String
& val);
68
};
70
enum
ForceApplication
71
{
73
FA_AVERAGE
,
75
FA_ADD
76
};
78
LinearForceAffector
(
ParticleSystem
* psys);
79
81
void
_affectParticles(
ParticleSystem
* pSystem,
Real
timeElapsed);
82
83
85
void
setForceVector(
const
Vector3
& force);
86
88
Vector3
getForceVector(
void
)
const
;
89
95
void
setForceApplication(ForceApplication fa);
96
100
ForceApplication getForceApplication(
void
)
const
;
101
103
static
CmdForceVector
msForceVectorCmd
;
104
static
CmdForceApp
msForceAppCmd
;
105
106
protected
:
108
Vector3
mForceVector
;
109
111
ForceApplication
mForceApplication
;
112
113
};
114
115
116
}
117
118
119
#endif
120
OgreVector3.h
Ogre::ParticleSystem
Class defining particle system based special effects.
Definition:
OgreParticleSystem.h:67
Ogre::Real
float Real
Software floating point type.
Definition:
OgrePrerequisites.h:70
Ogre::LinearForceAffector::CmdForceVector
Command object for force vector (see ParamCommand).
Definition:
OgreLinearForceAffector.h:55
OgreParticleFXPrerequisites.h
Ogre::LinearForceAffector::FA_AVERAGE
Take the average of the force vector and the particle momentum.
Definition:
OgreLinearForceAffector.h:73
Ogre::LinearForceAffector::ForceApplication
ForceApplication
Choice of how to apply the force vector to particles.
Definition:
OgreLinearForceAffector.h:70
Ogre::LinearForceAffector
This class defines a ParticleAffector which applies a linear force to particles in a system...
Definition:
OgreLinearForceAffector.h:51
Ogre::LinearForceAffector::msForceAppCmd
static CmdForceApp msForceAppCmd
Definition:
OgreLinearForceAffector.h:104
_OgreParticleFXExport
#define _OgreParticleFXExport
Definition:
OgreParticleFXPrerequisites.h:43
Ogre::Vector3
Standard 3-dimensional vector.
Definition:
OgreVector3.h:51
Ogre::ParticleAffector
Abstract class defining the interface to be implemented by particle affectors.
Definition:
OgreParticleAffector.h:64
Ogre::LinearForceAffector::msForceVectorCmd
static CmdForceVector msForceVectorCmd
Command objects.
Definition:
OgreLinearForceAffector.h:103
Ogre::LinearForceAffector::mForceApplication
ForceApplication mForceApplication
How to apply force.
Definition:
OgreLinearForceAffector.h:111
OgreParticleAffector.h
Ogre::String
_StringBase String
Definition:
OgrePrerequisites.h:442
Ogre::ParamCommand
Abstract class which is command object which gets/sets parameters.
Definition:
OgreStringInterface.h:79
Ogre::LinearForceAffector::mForceVector
Vector3 mForceVector
Force vector.
Definition:
OgreLinearForceAffector.h:108
Ogre::LinearForceAffector::CmdForceApp
Command object for force application (see ParamCommand).
Definition:
OgreLinearForceAffector.h:63
Plugins
ParticleFX
include
OgreLinearForceAffector.h
Generated on Fri Jun 20 2014 00:37:34 for OGRE by
1.8.7