#include <lugre_beam.h>

Public Member Functions | |
| cBeam () | |
| virtual | ~cBeam () |
| int | CountLines () |
| void | ClearLines () |
| int | AddLine () |
| void | DeleteLine (const int iLine) |
| void | AddPoint (const int iLine, const cBeamPoint &p) |
| void | ClearLine (const int iLine) |
| int | CountLinePoints (const int iLine) |
| void | PopFront (const int iLine) |
| void | PopBack (const int iLine) |
| cBeamPoint * | GetPoint (const int iLine, const int iPoint) |
| void | UpdateBeamBounds (cRobRenderOp &pRobRenderOp) |
| void | Draw (cRobRenderOp &pRobRenderOp, Ogre::Vector3 vEyePos, const bool bUseVertexColour, cBeamFilter &filter=cBeamFilter::IDENTITY) |
| overwrites pRobRenderOp completely (begin...end) | |
| void | Draw (cRobRenderOp &pRobRenderOp, Ogre::Camera &pCam, Ogre::SceneNode &pBeamSceneNode, const bool bUseVertexColour, cBeamFilter &filter=cBeamFilter::IDENTITY) |
Static Public Member Functions | |
| static Ogre::Vector3 | CalcEyePos (Ogre::Camera &pCam, Ogre::SceneNode &pBeamSceneNode) |
Public Attributes | |
| bool | mbBoundsDirty |
| std::deque< std::deque < cBeamPoint > * > | mlBeamLines |
Definition at line 66 of file lugre_beam.h.
| Lugre::cBeam::cBeam | ( | ) |
Definition at line 55 of file lugre_beam.cpp.
| Lugre::cBeam::~cBeam | ( | ) | [virtual] |
Definition at line 56 of file lugre_beam.cpp.
| int Lugre::cBeam::CountLines | ( | ) | [inline] |
| void Lugre::cBeam::ClearLines | ( | ) | [inline] |
| int Lugre::cBeam::AddLine | ( | ) | [inline] |
| void Lugre::cBeam::DeleteLine | ( | const int | iLine | ) | [inline] |
| void Lugre::cBeam::AddPoint | ( | const int | iLine, | |
| const cBeamPoint & | p | |||
| ) | [inline] |
| void Lugre::cBeam::ClearLine | ( | const int | iLine | ) | [inline] |
| int Lugre::cBeam::CountLinePoints | ( | const int | iLine | ) | [inline] |
| void Lugre::cBeam::PopFront | ( | const int | iLine | ) | [inline] |
| void Lugre::cBeam::PopBack | ( | const int | iLine | ) | [inline] |
| cBeamPoint* Lugre::cBeam::GetPoint | ( | const int | iLine, | |
| const int | iPoint | |||
| ) | [inline] |
| void Lugre::cBeam::UpdateBeamBounds | ( | cRobRenderOp & | pRobRenderOp | ) |
Definition at line 62 of file lugre_beam.cpp.
References mbBoundsDirty, Lugre::cRobRenderOp::mfBoundingRadius, mlBeamLines, Lugre::cRobRenderOp::mpBox, and Lugre::mymax().
Referenced by Lugre::cSimpleBeam::UpdateBounds().
| void Lugre::cBeam::Draw | ( | cRobRenderOp & | pRobRenderOp, | |
| Ogre::Vector3 | vEyePos, | |||
| const bool | bUseVertexColour, | |||
| cBeamFilter & | filter = cBeamFilter::IDENTITY | |||
| ) |
overwrites pRobRenderOp completely (begin...end)
Definition at line 79 of file lugre_beam.cpp.
References Lugre::cRobRenderOp::Begin(), Lugre::cBeamPoint::col1, Lugre::cBeamPoint::col2, Lugre::cBeamFilter::CurPoint(), Lugre::cRobRenderOp::End(), Lugre::cBeamPoint::h1, Lugre::cBeamPoint::h2, Lugre::cRobRenderOp::Index(), mbBoundsDirty, mlBeamLines, Lugre::cBeamFilter::NextPoint(), Lugre::cBeamPoint::pos, Lugre::cBeamFilter::PrevPoint(), Lugre::cBeamPoint::u1, Lugre::cBeamPoint::u2, Lugre::cBeamPoint::v1, Lugre::cBeamPoint::v2, and Lugre::cRobRenderOp::Vertex().
Referenced by Lugre::cSimpleBeam::_notifyCurrentCamera(), and Draw().
| void Lugre::cBeam::Draw | ( | cRobRenderOp & | pRobRenderOp, | |
| Ogre::Camera & | pCam, | |||
| Ogre::SceneNode & | pBeamSceneNode, | |||
| const bool | bUseVertexColour, | |||
| cBeamFilter & | filter = cBeamFilter::IDENTITY | |||
| ) |
| Ogre::Vector3 Lugre::cBeam::CalcEyePos | ( | Ogre::Camera & | pCam, | |
| Ogre::SceneNode & | pBeamSceneNode | |||
| ) | [static] |
Definition at line 67 of file lugre_beam.h.
Referenced by AddPoint(), ClearLine(), ClearLines(), DeleteLine(), Draw(), Lugre::cSimpleBeam::getBoundingBox(), Lugre::cSimpleBeam::getBoundingRadius(), Lugre::cSimpleBeam::getSquaredViewDepth(), PopBack(), PopFront(), and UpdateBeamBounds().
| std::deque<std::deque<cBeamPoint>*> Lugre::cBeam::mlBeamLines |
Definition at line 68 of file lugre_beam.h.
Referenced by AddLine(), AddPoint(), ClearLine(), ClearLines(), CountLinePoints(), CountLines(), DeleteLine(), Draw(), GetPoint(), PopBack(), PopFront(), and UpdateBeamBounds().
1.5.6