#include <Lightning.h>
|
| | Lightning (Ogre::SceneManager *sm, Ogre::SceneNode *sn, const Ogre::Vector3 &orig, const Ogre::Vector3 &dir, const Ogre::Real &l, const Ogre::uint32 &d, const Ogre::uint32 &rec, const Ogre::Real &tm, const Ogre::Real &wm, const Ogre::Vector2 &b=Ogre::Vector2(0, 1)) |
| | Constructor. More...
|
| |
| | ~Lightning () |
| | Destructor. More...
|
| |
| void | create () |
| | Create. More...
|
| |
| void | remove () |
| | Remove. More...
|
| |
| void | update (Ogre::Real timeSinceLastFrame) |
| | Update. More...
|
| |
| const Ogre::Vector3 & | getDirection () const |
| | Get ray direction. More...
|
| |
| const Ogre::Real & | getLength () const |
| | Get ray length. More...
|
| |
| const Ogre::Real & | getIntensity () const |
| | Get lightning intensity. More...
|
| |
| Ogre::BillboardSet * | getBillboardSet () const |
| | Get billboard set. More...
|
| |
| Ogre::SceneNode * | getSceneNode () const |
| | Get scene node. More...
|
| |
| const bool & | isFinished () const |
| | Has the ray finished? More...
|
| |
| void | _updateRenderQueueGroup (const Ogre::uint8 &rqg) |
| | Update render queue group. More...
|
| |
|
| void | _updateData (const Ogre::Real &alpha, const Ogre::Real ¤tPos, const Ogre::Real &parentTime) |
| | Update data. More...
|
| |
Definition at line 31 of file Lightning.h.
◆ Lightning()
| SkyX::VClouds::Lightning::Lightning |
( |
Ogre::SceneManager * |
sm, |
|
|
Ogre::SceneNode * |
sn, |
|
|
const Ogre::Vector3 & |
orig, |
|
|
const Ogre::Vector3 & |
dir, |
|
|
const Ogre::Real & |
l, |
|
|
const Ogre::uint32 & |
d, |
|
|
const Ogre::uint32 & |
rec, |
|
|
const Ogre::Real & |
tm, |
|
|
const Ogre::Real & |
wm, |
|
|
const Ogre::Vector2 & |
b = Ogre::Vector2(0,1) |
|
) |
| |
Constructor.
- Parameters
-
| sm | Scene manager |
| sn | Scene node |
| orig | Lighting origin |
| dir | Lighting direction |
| l | Lighting lenth |
| d | Divisions |
| rec | Recursivity level |
| tm | Time multiplier |
| wm | Width multiplier |
| b | Bounds |
Definition at line 28 of file Lightning.cpp.
◆ ~Lightning()
| SkyX::VClouds::Lightning::~Lightning |
( |
| ) |
|
◆ _updateData()
| void SkyX::VClouds::Lightning::_updateData |
( |
const Ogre::Real & |
alpha, |
|
|
const Ogre::Real & |
currentPos, |
|
|
const Ogre::Real & |
parentTime |
|
) |
| |
|
private |
Update data.
- Parameters
-
| alpha | Alpha |
| currentPos | Current position |
| parentTime | Parent time |
Definition at line 252 of file Lightning.cpp.
◆ _updateRenderQueueGroup()
| void SkyX::VClouds::Lightning::_updateRenderQueueGroup |
( |
const Ogre::uint8 & |
rqg | ) |
|
Update render queue group.
- Parameters
-
Definition at line 242 of file Lightning.cpp.
◆ create()
| void SkyX::VClouds::Lightning::create |
( |
| ) |
|
◆ getBillboardSet()
| Ogre::BillboardSet* SkyX::VClouds::Lightning::getBillboardSet |
( |
| ) |
const |
|
inline |
Get billboard set.
- Returns
- Billboard set
Definition at line 122 of file Lightning.h.
◆ getDirection()
| const Ogre::Vector3& SkyX::VClouds::Lightning::getDirection |
( |
| ) |
const |
|
inline |
Get ray direction.
- Returns
- Ray direction
Definition at line 98 of file Lightning.h.
◆ getIntensity()
| const Ogre::Real& SkyX::VClouds::Lightning::getIntensity |
( |
| ) |
const |
|
inline |
◆ getLength()
| const Ogre::Real& SkyX::VClouds::Lightning::getLength |
( |
| ) |
const |
|
inline |
Get ray length.
- Returns
- Ray length
Definition at line 106 of file Lightning.h.
◆ getSceneNode()
| Ogre::SceneNode* SkyX::VClouds::Lightning::getSceneNode |
( |
| ) |
const |
|
inline |
Get scene node.
- Returns
- Scene node
Definition at line 130 of file Lightning.h.
◆ isFinished()
| const bool& SkyX::VClouds::Lightning::isFinished |
( |
| ) |
const |
|
inline |
Has the ray finished?
- Returns
- true if the ray has finished, false otherwise
Definition at line 138 of file Lightning.h.
◆ remove()
| void SkyX::VClouds::Lightning::remove |
( |
| ) |
|
◆ update()
| void SkyX::VClouds::Lightning::update |
( |
Ogre::Real |
timeSinceLastFrame | ) |
|
Update.
- Parameters
-
| timeSinceLastFrame | Time since last frame |
Definition at line 180 of file Lightning.cpp.
◆ mAngleRange
| Ogre::Vector2 SkyX::VClouds::Lightning::mAngleRange |
|
private |
Angle range (Little values -> Less derivations, bigger values -> More derivations)
Definition at line 175 of file Lightning.h.
◆ mBillboardSet
| Ogre::BillboardSet* SkyX::VClouds::Lightning::mBillboardSet |
|
private |
◆ mBounds
| Ogre::Vector2 SkyX::VClouds::Lightning::mBounds |
|
private |
Ray bounds (for internal visual calculations)
Definition at line 173 of file Lightning.h.
◆ mChildren
| std::vector<Lightning*> SkyX::VClouds::Lightning::mChildren |
|
private |
◆ mCreated
| bool SkyX::VClouds::Lightning::mCreated |
|
private |
◆ mDirection
| Ogre::Vector3 SkyX::VClouds::Lightning::mDirection |
|
private |
◆ mDivisions
| Ogre::uint32 SkyX::VClouds::Lightning::mDivisions |
|
private |
◆ mFinished
| bool SkyX::VClouds::Lightning::mFinished |
|
private |
◆ mIntensity
| Ogre::Real SkyX::VClouds::Lightning::mIntensity |
|
private |
◆ mLength
| Ogre::Real SkyX::VClouds::Lightning::mLength |
|
private |
◆ mOrigin
| Ogre::Vector3 SkyX::VClouds::Lightning::mOrigin |
|
private |
◆ mRealLength
| Ogre::Real SkyX::VClouds::Lightning::mRealLength |
|
private |
Real ray length (total segments length amount)
Definition at line 165 of file Lightning.h.
◆ mRecursivity
| Ogre::uint32 SkyX::VClouds::Lightning::mRecursivity |
|
private |
◆ mSceneManager
| Ogre::SceneManager* SkyX::VClouds::Lightning::mSceneManager |
|
private |
◆ mSceneNode
| Ogre::SceneNode* SkyX::VClouds::Lightning::mSceneNode |
|
private |
◆ mSegments
| std::vector<Segment> SkyX::VClouds::Lightning::mSegments |
|
private |
◆ mTime
| Ogre::Real SkyX::VClouds::Lightning::mTime |
|
private |
◆ mTimeMultiplier
| Ogre::Real SkyX::VClouds::Lightning::mTimeMultiplier |
|
private |
◆ mTimeMultipliers
| Ogre::Vector3 SkyX::VClouds::Lightning::mTimeMultipliers |
|
private |
Per step time multipliers.
Definition at line 182 of file Lightning.h.
◆ mWidthMultiplier
| Ogre::Real SkyX::VClouds::Lightning::mWidthMultiplier |
|
private |
The documentation for this class was generated from the following files: