#include <lugre_BorderColourClipPaneOverlay.h>


Public Types | |
| enum | { kBCCPOPart_LT = 0, kBCCPOPart_T, kBCCPOPart_RT, kBCCPOPart_L, kBCCPOPart_R, kBCCPOPart_LB, kBCCPOPart_B, kBCCPOPart_RB, kBCCPOPart_M } |
Public Member Functions | |
| cBorderColourClipPaneOverlay (const Ogre::String &name) | |
| virtual | ~cBorderColourClipPaneOverlay () |
| virtual void | setColour (const Ogre::ColourValue &col) |
| virtual void | SetColours (const Ogre::ColourValue colLT, const Ogre::ColourValue colRT, const Ogre::ColourValue colLB, const Ogre::ColourValue colRB) |
| virtual void | SetColours (const int iPart, const Ogre::ColourValue colLT, const Ogre::ColourValue colRT, const Ogre::ColourValue colLB, const Ogre::ColourValue colRB) |
| virtual void | SetTexCoords (const Ogre::Real fU1, const Ogre::Real fV1, const Ogre::Real fU2, const Ogre::Real fV2) |
| u1,v1 is left top u2,v2 is right bottom | |
| virtual void | SetTexCoords (const int iPart, const Ogre::Real fU1, const Ogre::Real fV1, const Ogre::Real fU2, const Ogre::Real fV2) |
| virtual void | SetBorder (const Ogre::Real l, const Ogre::Real t, const Ogre::Real r, const Ogre::Real b) |
| left top right bottom | |
| virtual const Ogre::String & | getTypeName (void) const |
| void | setBorderMaterialName (const Ogre::String &name) |
| virtual void | initialise (void) |
| virtual void | _updateRenderQueue (Ogre::RenderQueue *queue) |
| virtual void | updatePositionGeometry (void) |
| internal method for setting up geometry, called by OverlayElement::update | |
Static Public Member Functions | |
| static void | RegisterFactory () |
| should be called once at programmstart after initialising ogre::root | |
Public Attributes | |
| Ogre::RenderOperation | mRenderOpBorder |
| 2 render ops, mRenderOp for the center, and mRenderOpBorder for the border | |
| CCPBorderRenderable * | mBorderRenderable |
| VertexRect | mFormParts [9] |
| Ogre::Rectangle | mBorder |
| inner border (margin) in the current MetricsMode, default : GMM_PIXELS | |
| Ogre::String | mBorderMaterialName |
| Ogre::MaterialPtr | mpBorderMaterial |
| cRobRenderOp | mpRobRenderOpBorder |
Static Public Attributes | |
| static Ogre::String | msTypeName = "BorderColourClipPane" |
Definition at line 39 of file lugre_BorderColourClipPaneOverlay.h.
| anonymous enum |
| kBCCPOPart_LT | |
| kBCCPOPart_T | |
| kBCCPOPart_RT | |
| kBCCPOPart_L | |
| kBCCPOPart_R | |
| kBCCPOPart_LB | |
| kBCCPOPart_B | |
| kBCCPOPart_RB | |
| kBCCPOPart_M |
Definition at line 49 of file lugre_BorderColourClipPaneOverlay.h.
| Lugre::cBorderColourClipPaneOverlay::cBorderColourClipPaneOverlay | ( | const Ogre::String & | name | ) |
| Lugre::cBorderColourClipPaneOverlay::~cBorderColourClipPaneOverlay | ( | ) | [virtual] |
Definition at line 51 of file lugre_BorderColourClipPaneOverlay.cpp.
References mBorderRenderable, and mRenderOpBorder.
| void Lugre::cBorderColourClipPaneOverlay::RegisterFactory | ( | ) | [static] |
should be called once at programmstart after initialising ogre::root
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 32 of file lugre_BorderColourClipPaneOverlay.cpp.
Referenced by Lugre::cOgreWrapper::CreateOgreWindow().
| void Lugre::cBorderColourClipPaneOverlay::setColour | ( | const Ogre::ColourValue & | col | ) | [virtual] |
Initialise
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 112 of file lugre_BorderColourClipPaneOverlay.cpp.
References SetColours().
| void Lugre::cBorderColourClipPaneOverlay::SetColours | ( | const Ogre::ColourValue | colLT, | |
| const Ogre::ColourValue | colRT, | |||
| const Ogre::ColourValue | colLB, | |||
| const Ogre::ColourValue | colRB | |||
| ) | [virtual] |
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 116 of file lugre_BorderColourClipPaneOverlay.cpp.
References kBCCPOPart_B, kBCCPOPart_L, kBCCPOPart_LB, kBCCPOPart_LT, kBCCPOPart_M, kBCCPOPart_R, kBCCPOPart_RB, kBCCPOPart_RT, and kBCCPOPart_T.
Referenced by setColour(), Lugre::cGfx2D::SetColours(), and Lugre::cGfx2D::SetPartColours().
| void Lugre::cBorderColourClipPaneOverlay::SetColours | ( | const int | iPart, | |
| const Ogre::ColourValue | colLT, | |||
| const Ogre::ColourValue | colRT, | |||
| const Ogre::ColourValue | colLB, | |||
| const Ogre::ColourValue | colRB | |||
| ) | [virtual] |
Definition at line 135 of file lugre_BorderColourClipPaneOverlay.cpp.
References Lugre::cColourClipPaneOverlay::Vertex::col, Lugre::cColourClipPaneOverlay::VertexRect::lb, Lugre::cColourClipPaneOverlay::VertexRect::lt, mFormParts, Lugre::cColourClipPaneOverlay::VertexRect::rb, and Lugre::cColourClipPaneOverlay::VertexRect::rt.
| void Lugre::cBorderColourClipPaneOverlay::SetTexCoords | ( | const Ogre::Real | fU1, | |
| const Ogre::Real | fV1, | |||
| const Ogre::Real | fU2, | |||
| const Ogre::Real | fV2 | |||
| ) | [virtual] |
u1,v1 is left top u2,v2 is right bottom
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 100 of file lugre_BorderColourClipPaneOverlay.cpp.
References kBCCPOPart_B, kBCCPOPart_L, kBCCPOPart_LB, kBCCPOPart_LT, kBCCPOPart_M, kBCCPOPart_R, kBCCPOPart_RB, kBCCPOPart_RT, and kBCCPOPart_T.
Referenced by Lugre::cGfx2D::SetPartUV(), and Lugre::cGfx2D::SetUV().
| void Lugre::cBorderColourClipPaneOverlay::SetTexCoords | ( | const int | iPart, | |
| const Ogre::Real | fU1, | |||
| const Ogre::Real | fV1, | |||
| const Ogre::Real | fU2, | |||
| const Ogre::Real | fV2 | |||
| ) | [virtual] |
Definition at line 129 of file lugre_BorderColourClipPaneOverlay.cpp.
References mFormParts, and Lugre::cColourClipPaneOverlay::VertexRect::SetUV().
| void Lugre::cBorderColourClipPaneOverlay::SetBorder | ( | const Ogre::Real | l, | |
| const Ogre::Real | t, | |||
| const Ogre::Real | r, | |||
| const Ogre::Real | b | |||
| ) | [virtual] |
left top right bottom
Definition at line 145 of file lugre_BorderColourClipPaneOverlay.cpp.
References mBorder.
Referenced by Lugre::cGfx2D::SetBorder().
| const String & Lugre::cBorderColourClipPaneOverlay::getTypeName | ( | void | ) | const [virtual] |
See OverlayElement.
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 153 of file lugre_BorderColourClipPaneOverlay.cpp.
References msTypeName.
| void Lugre::cBorderColourClipPaneOverlay::setBorderMaterialName | ( | const Ogre::String & | name | ) |
Referenced by Lugre::cGfx2D::SetBorderMaterial().
| void Lugre::cBorderColourClipPaneOverlay::initialise | ( | void | ) | [virtual] |
Initialise
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 58 of file lugre_BorderColourClipPaneOverlay.cpp.
References Lugre::cColourClipPaneOverlay::initialise(), and mBorderRenderable.
| virtual void Lugre::cBorderColourClipPaneOverlay::_updateRenderQueue | ( | Ogre::RenderQueue * | queue | ) | [virtual] |
Overridden from OverlayContainer
Reimplemented from Lugre::cColourClipPaneOverlay.
| void Lugre::cBorderColourClipPaneOverlay::updatePositionGeometry | ( | void | ) | [virtual] |
internal method for setting up geometry, called by OverlayElement::update
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 159 of file lugre_BorderColourClipPaneOverlay.cpp.
References Lugre::cRobRenderOp::Begin(), Lugre::cColourClipPaneOverlay::VertexRect::DrawList(), Lugre::cColourClipPaneOverlay::VertexRect::DrawStrip(), Lugre::cRobRenderOp::End(), Lugre::cRobRenderOp::GetMaxZ(), kBCCPOPart_B, kBCCPOPart_L, kBCCPOPart_LB, kBCCPOPart_LT, kBCCPOPart_M, kBCCPOPart_R, kBCCPOPart_RB, kBCCPOPart_RT, kBCCPOPart_T, Lugre::cColourClipPaneOverlay::mbClipInitialized, mBorder, Lugre::cColourClipPaneOverlay::mClip, mFormParts, mpRobRenderOpBorder, and Lugre::cColourClipPaneOverlay::VertexRect::SetLTRB().
| Ogre::RenderOperation Lugre::cBorderColourClipPaneOverlay::mRenderOpBorder |
2 render ops, mRenderOp for the center, and mRenderOpBorder for the border
Definition at line 40 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by Lugre::CCPBorderRenderable::getRenderOperation(), and ~cBorderColourClipPaneOverlay().
String Lugre::cBorderColourClipPaneOverlay::msTypeName = "BorderColourClipPane" [static] |
Reimplemented from Lugre::cColourClipPaneOverlay.
Definition at line 41 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by getTypeName(), and Lugre::BorderColourClipPaneOverlayElementFactory::getTypeName().
Definition at line 62 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by initialise(), and ~cBorderColourClipPaneOverlay().
| VertexRect Lugre::cBorderColourClipPaneOverlay::mFormParts[9] |
Definition at line 63 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by SetColours(), SetTexCoords(), and updatePositionGeometry().
| Ogre::Rectangle Lugre::cBorderColourClipPaneOverlay::mBorder |
inner border (margin) in the current MetricsMode, default : GMM_PIXELS
Definition at line 64 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by cBorderColourClipPaneOverlay(), SetBorder(), and updatePositionGeometry().
Definition at line 65 of file lugre_BorderColourClipPaneOverlay.h.
| Ogre::MaterialPtr Lugre::cBorderColourClipPaneOverlay::mpBorderMaterial |
Definition at line 66 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by Lugre::CCPBorderRenderable::getMaterial().
Definition at line 67 of file lugre_BorderColourClipPaneOverlay.h.
Referenced by updatePositionGeometry().
1.5.6