Ellipsoid class x^2 y^2 z^2 / + / + / = 1 a^2 b^2 c^2.
More...
#include <Ellipsoid.h>
|
| | Ellipsoid (const int &a, const int &b, const int &c, const int &nx, const int &ny, const int &nz, const int &x, const int &y, const int &z, const Ogre::Real &DynLibManager=1.0f) |
| | Constructor.
|
| |
| | ~Ellipsoid () |
| | Destructor.
|
| |
| void | move (const int &Ax, const int &Ay, const int &Az) |
| | Move the ellipsoid.
|
| |
| const Ogre::Vector3 | getProbabilities (const int &x, const int &y, const int &z) const |
| | Get probabilities at a point.
|
| |
| void | updateProbabilities (DataManager::Cell ***c, const int &nx, const int &ny, const int &nz, const bool &delayedResponse=true) |
| | Update probabilities.
|
| |
| const bool | isOutOfCells () const |
| | Determines if the ellipsoid is out of the cells domain and needs to be removed.
|
| |
| const Ogre::Vector3 | getDimensions () const |
| | Get dimensions.
|
| |
| const Ogre::Vector3 | getPosition () const |
| | Get position.
|
| |
| void | setDimensions (const Ogre::Vector3 &Dimensions) |
| | Set dimensions.
|
| |
| void | setPosition (const Ogre::Vector3 &Position) |
| | Set position.
|
| |
|
| const float | _getLength (const int &x, const int &y, const int &z) const |
| | Get length.
|
| |
Ellipsoid class x^2 y^2 z^2 / + / + / = 1 a^2 b^2 c^2.
Definition at line 38 of file Ellipsoid.h.
◆ Ellipsoid()
| SkyX::VClouds::Ellipsoid::Ellipsoid |
( |
const int & |
a, |
|
|
const int & |
b, |
|
|
const int & |
c, |
|
|
const int & |
nx, |
|
|
const int & |
ny, |
|
|
const int & |
nz, |
|
|
const int & |
x, |
|
|
const int & |
y, |
|
|
const int & |
z, |
|
|
const Ogre::Real & |
DynLibManager = 1.0f |
|
) |
| |
Constructor.
- Parameters
-
| a | A constant |
| b | B constant |
| c | C constant |
| nx | X size |
| ny | Y size |
| nz | Z size |
| x | x Coord (position) |
| y | y Coord (position) |
| z | z Coord (position) |
| Density | Cloud density |
Definition at line 29 of file Ellipsoid.cpp.
◆ ~Ellipsoid()
| SkyX::VClouds::Ellipsoid::~Ellipsoid |
( |
| ) |
|
◆ _getLength()
| const float SkyX::VClouds::Ellipsoid::_getLength |
( |
const int & |
x, |
|
|
const int & |
y, |
|
|
const int & |
z |
|
) |
| const |
|
private |
Get length.
- Parameters
-
| x | x Coord |
| y | y Coord |
| z | z Coord |
- Returns
- [0,1] range where 0 is the center of the ellipsoid and 1 the superfice
Definition at line 46 of file Ellipsoid.cpp.
◆ getDimensions()
| const Ogre::Vector3 SkyX::VClouds::Ellipsoid::getDimensions |
( |
| ) |
const |
|
inline |
◆ getPosition()
| const Ogre::Vector3 SkyX::VClouds::Ellipsoid::getPosition |
( |
| ) |
const |
|
inline |
Get position.
- Returns
- Position
Definition at line 101 of file Ellipsoid.h.
◆ getProbabilities()
| const Ogre::Vector3 SkyX::VClouds::Ellipsoid::getProbabilities |
( |
const int & |
x, |
|
|
const int & |
y, |
|
|
const int & |
z |
|
) |
| const |
Get probabilities at a point.
- Parameters
-
| x | x Coord |
| y | y Coord |
| z | z Coord |
- Returns
- Probabilities (Hum, Ext, Act)
Definition at line 75 of file Ellipsoid.cpp.
◆ isOutOfCells()
| const bool SkyX::VClouds::Ellipsoid::isOutOfCells |
( |
| ) |
const |
Determines if the ellipsoid is out of the cells domain and needs to be removed.
Definition at line 121 of file Ellipsoid.cpp.
◆ move()
| void SkyX::VClouds::Ellipsoid::move |
( |
const int & |
Ax, |
|
|
const int & |
Ay, |
|
|
const int & |
Az |
|
) |
| |
Move the ellipsoid.
- Parameters
-
| Ax | x increment |
| Ay | y increment |
| Az | z increment |
Definition at line 116 of file Ellipsoid.cpp.
◆ setDimensions()
| void SkyX::VClouds::Ellipsoid::setDimensions |
( |
const Ogre::Vector3 & |
Dimensions | ) |
|
◆ setPosition()
| void SkyX::VClouds::Ellipsoid::setPosition |
( |
const Ogre::Vector3 & |
Position | ) |
|
|
inline |
◆ updateProbabilities()
| void SkyX::VClouds::Ellipsoid::updateProbabilities |
( |
DataManager::Cell *** |
c, |
|
|
const int & |
nx, |
|
|
const int & |
ny, |
|
|
const int & |
nz, |
|
|
const bool & |
delayedResponse = true |
|
) |
| |
Update probabilities.
- Parameters
-
| c | Cells |
| nx | X complexity |
| ny | Y complexity |
| nz | Z complexity |
| delayedResponse | true to get a delayed response, updating only probabilities, false to also set clouds |
Definition at line 82 of file Ellipsoid.cpp.
◆ mA
| int SkyX::VClouds::Ellipsoid::mA |
|
private |
◆ mA2
| int SkyX::VClouds::Ellipsoid::mA2 |
|
private |
◆ mB
| int SkyX::VClouds::Ellipsoid::mB |
|
private |
◆ mB2
| int SkyX::VClouds::Ellipsoid::mB2 |
|
private |
◆ mC
| int SkyX::VClouds::Ellipsoid::mC |
|
private |
◆ mC2
| int SkyX::VClouds::Ellipsoid::mC2 |
|
private |
◆ mDensity
| Ogre::Real SkyX::VClouds::Ellipsoid::mDensity |
|
private |
◆ mNx
| int SkyX::VClouds::Ellipsoid::mNx |
|
private |
◆ mNy
| int SkyX::VClouds::Ellipsoid::mNy |
|
private |
◆ mNz
| int SkyX::VClouds::Ellipsoid::mNz |
|
private |
◆ mX
| int SkyX::VClouds::Ellipsoid::mX |
|
private |
◆ mY
| int SkyX::VClouds::Ellipsoid::mY |
|
private |
◆ mZ
| int SkyX::VClouds::Ellipsoid::mZ |
|
private |
The documentation for this class was generated from the following files: