Lugre::cBorderColourClipPaneOverlay Class Reference

#include <lugre_BorderColourClipPaneOverlay.h>

Inheritance diagram for Lugre::cBorderColourClipPaneOverlay:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cBorderColourClipPaneOverlay:

Collaboration graph
[legend]

List of all members.

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
CCPBorderRenderablemBorderRenderable
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"


Detailed Description

Definition at line 39 of file lugre_BorderColourClipPaneOverlay.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
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.


Constructor & Destructor Documentation

Lugre::cBorderColourClipPaneOverlay::cBorderColourClipPaneOverlay ( const Ogre::String &  name  ) 

Definition at line 43 of file lugre_BorderColourClipPaneOverlay.cpp.

References mBorder.

Lugre::cBorderColourClipPaneOverlay::~cBorderColourClipPaneOverlay (  )  [virtual]

Definition at line 51 of file lugre_BorderColourClipPaneOverlay.cpp.

References mBorderRenderable, and mRenderOpBorder.


Member Function Documentation

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]

void Lugre::cBorderColourClipPaneOverlay::SetColours ( const int  iPart,
const Ogre::ColourValue  colLT,
const Ogre::ColourValue  colRT,
const Ogre::ColourValue  colLB,
const Ogre::ColourValue  colRB 
) [virtual]

void Lugre::cBorderColourClipPaneOverlay::SetTexCoords ( const Ogre::Real  fU1,
const Ogre::Real  fV1,
const Ogre::Real  fU2,
const Ogre::Real  fV2 
) [virtual]

void Lugre::cBorderColourClipPaneOverlay::SetTexCoords ( const int  iPart,
const Ogre::Real  fU1,
const Ogre::Real  fV1,
const Ogre::Real  fU2,
const Ogre::Real  fV2 
) [virtual]

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  ) 

void Lugre::cBorderColourClipPaneOverlay::initialise ( void   )  [virtual]

virtual void Lugre::cBorderColourClipPaneOverlay::_updateRenderQueue ( Ogre::RenderQueue *  queue  )  [virtual]

Overridden from OverlayContainer

Reimplemented from Lugre::cColourClipPaneOverlay.

void Lugre::cBorderColourClipPaneOverlay::updatePositionGeometry ( void   )  [virtual]


Member Data Documentation

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]

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.

Definition at line 67 of file lugre_BorderColourClipPaneOverlay.h.

Referenced by updatePositionGeometry().


The documentation for this class was generated from the following files:

Generated on Thu Feb 9 06:00:20 2012 for cpp by  doxygen 1.5.6