#include <GeometryManager.h>
|
| GeometryManager (VClouds *vc) |
| Constructor. More...
|
|
| ~GeometryManager () |
| Destructor. More...
|
|
void | create (const Ogre::Vector2 &Height, const float &Radius, const Ogre::Radian &Alpha, const Ogre::Radian &Beta, const int &NumberOfBlocks, const int &Na, const int &Nb, const int &Nc) |
| Create. More...
|
|
void | remove () |
| Remove. More...
|
|
void | update (const Ogre::Real &timeSinceLastFrame) |
| Update, to be invoked per frame. More...
|
|
void | updateGeometry (Ogre::Camera *c, const Ogre::Real &timeSinceLastCameraFrame) |
| Update geoemtry. More...
|
|
const bool & | isCreated () const |
| Has been create() already called? More...
|
|
Ogre::SceneNode * | getSceneNode () |
| Get scene node. More...
|
|
const Ogre::Vector2 | getHeight () const |
| Get height (x = Altitude over the camera, y: Field height (both in world coordinates)) More...
|
|
void | _setMaterialName (const Ogre::String &mn) |
| Set material name. More...
|
|
void | _updateRenderQueueGroup (const Ogre::uint8 &rqg) |
| Update render queue group. More...
|
|
const Ogre::Vector3 | _getCurrentDistance () const |
| Get current camera to cloud field distance. More...
|
|
Definition at line 35 of file GeometryManager.h.
◆ GeometryManager()
SkyX::VClouds::GeometryManager::GeometryManager |
( |
VClouds * |
vc | ) |
|
◆ ~GeometryManager()
SkyX::VClouds::GeometryManager::~GeometryManager |
( |
| ) |
|
◆ _createGeometry()
void SkyX::VClouds::GeometryManager::_createGeometry |
( |
| ) |
|
|
private |
◆ _getCurrentDistance()
const Ogre::Vector3 SkyX::VClouds::GeometryManager::_getCurrentDistance |
( |
| ) |
const |
|
inline |
Get current camera to cloud field distance.
- Returns
- Current camera to cloud field distance
Definition at line 116 of file GeometryManager.h.
◆ _setMaterialName()
void SkyX::VClouds::GeometryManager::_setMaterialName |
( |
const Ogre::String & |
mn | ) |
|
◆ _updateGeometry()
void SkyX::VClouds::GeometryManager::_updateGeometry |
( |
Ogre::Camera * |
c, |
|
|
const Ogre::Real & |
timeSinceLastFrame |
|
) |
| |
|
private |
Update geometry.
- Parameters
-
c | Camera |
timeSinceLastFrame | Time since last frame |
Definition at line 149 of file GeometryManager.cpp.
◆ _updateRenderQueueGroup()
void SkyX::VClouds::GeometryManager::_updateRenderQueueGroup |
( |
const Ogre::uint8 & |
rqg | ) |
|
◆ create()
void SkyX::VClouds::GeometryManager::create |
( |
const Ogre::Vector2 & |
Height, |
|
|
const float & |
Radius, |
|
|
const Ogre::Radian & |
Alpha, |
|
|
const Ogre::Radian & |
Beta, |
|
|
const int & |
NumberOfBlocks, |
|
|
const int & |
Na, |
|
|
const int & |
Nb, |
|
|
const int & |
Nc |
|
) |
| |
Create.
- Parameters
-
Height | x = Field altitude, y: Field height (both in world coordinates) |
Radius | Radius |
Alpha | Alpha angle |
Beta | Beta angle |
NumberOfBlocks | Number of geometry blocks |
Na | Number of slices in A zone |
Nb | Number of slices in B zone |
Nc | Number of slices in C zone |
Definition at line 52 of file GeometryManager.cpp.
◆ getHeight()
const Ogre::Vector2 SkyX::VClouds::GeometryManager::getHeight |
( |
| ) |
const |
|
inline |
Get height (x = Altitude over the camera, y: Field height (both in world coordinates))
- Returns
- Height (x = Altitude over the camera, y: Field height (both in world coordinates))
Definition at line 95 of file GeometryManager.h.
◆ getSceneNode()
Ogre::SceneNode* SkyX::VClouds::GeometryManager::getSceneNode |
( |
| ) |
|
|
inline |
◆ isCreated()
const bool& SkyX::VClouds::GeometryManager::isCreated |
( |
| ) |
const |
|
inline |
Has been create() already called?
- Returns
- true if created() have been already called, false if not
Definition at line 79 of file GeometryManager.h.
◆ remove()
void SkyX::VClouds::GeometryManager::remove |
( |
| ) |
|
◆ update()
void SkyX::VClouds::GeometryManager::update |
( |
const Ogre::Real & |
timeSinceLastFrame | ) |
|
Update, to be invoked per frame.
- Parameters
-
timeSinceLastFrame | Time since last frame |
Definition at line 94 of file GeometryManager.cpp.
◆ updateGeometry()
void SkyX::VClouds::GeometryManager::updateGeometry |
( |
Ogre::Camera * |
c, |
|
|
const Ogre::Real & |
timeSinceLastCameraFrame |
|
) |
| |
Update geoemtry.
- Parameters
-
c | Camera |
timeSinceLastCameraFrame | Time since last CAMERA frame |
Definition at line 104 of file GeometryManager.cpp.
◆ mA
float SkyX::VClouds::GeometryManager::mA |
|
private |
◆ mAlpha
Ogre::Radian SkyX::VClouds::GeometryManager::mAlpha |
|
private |
◆ mB
float SkyX::VClouds::GeometryManager::mB |
|
private |
◆ mBeta
Ogre::Radian SkyX::VClouds::GeometryManager::mBeta |
|
private |
◆ mC
float SkyX::VClouds::GeometryManager::mC |
|
private |
◆ mCreated
bool SkyX::VClouds::GeometryManager::mCreated |
|
private |
◆ mCurrentDistance
Ogre::Vector3 SkyX::VClouds::GeometryManager::mCurrentDistance |
|
private |
◆ mGeometryBlocks
std::vector<GeometryBlock*> SkyX::VClouds::GeometryManager::mGeometryBlocks |
|
private |
◆ mHeight
Ogre::Vector2 SkyX::VClouds::GeometryManager::mHeight |
|
private |
Height: x = Altitude over the camera, y: Field height (both in world coordinates)
Definition at line 136 of file GeometryManager.h.
◆ mNa
int SkyX::VClouds::GeometryManager::mNa |
|
private |
◆ mNb
int SkyX::VClouds::GeometryManager::mNb |
|
private |
◆ mNc
int SkyX::VClouds::GeometryManager::mNc |
|
private |
◆ mNumberOfBlocks
int SkyX::VClouds::GeometryManager::mNumberOfBlocks |
|
private |
◆ mPhi
Ogre::Radian SkyX::VClouds::GeometryManager::mPhi |
|
private |
◆ mRadius
float SkyX::VClouds::GeometryManager::mRadius |
|
private |
◆ mSceneNode
Ogre::SceneNode* SkyX::VClouds::GeometryManager::mSceneNode |
|
private |
◆ mVClouds
VClouds* SkyX::VClouds::GeometryManager::mVClouds |
|
private |
◆ mWorldOffset
Ogre::Vector2 SkyX::VClouds::GeometryManager::mWorldOffset |
|
private |
The documentation for this class was generated from the following files: