Lugre::cCompassOverlay Class Reference

#include <lugre_CompassOverlay.h>

Inheritance diagram for Lugre::cCompassOverlay:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 cCompassOverlay (const Ogre::String &name)
virtual ~cCompassOverlay ()
virtual void initialise (void)
void SetUVMid (const float fMidU, const float fMidV)
void SetUVRad (const float fRadU, const float fRadV)
void SetAngBias (const float fAngBias)
void setTransparent (bool isTransparent)
 Sets whether this panel is transparent (used only as a grouping level), or if it is actually renderred. mTransparent = isTransparent;.
bool isTransparent (void) const
virtual const Ogre::String & getTypeName (void) const
void getRenderOperation (Ogre::RenderOperation &op)
void setMaterialName (const Ogre::String &matName)
void _updateRenderQueue (Ogre::RenderQueue *queue)
virtual void updatePositionGeometry (void)
 internal method for setting up geometry, called by OverlayElement::update
virtual void updateTextureGeometry (void)
 Called to update the texture coords when layers change.
void addBaseParameters (void)
 Method for setting up base parameters for this class.

Static Public Member Functions

static void RegisterFactory ()
 should be called once at programmstart after initialising ogre::root

Public Attributes

Ogre::RenderOperation mRenderOp
float mfMidU
float mfMidV
float mfRadU
float mfRadV
float mfAngBias
bool mTransparent

Static Public Attributes

static Ogre::String msTypeName = "Compass"


Detailed Description

Definition at line 38 of file lugre_CompassOverlay.h.


Constructor & Destructor Documentation

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

Definition at line 41 of file lugre_CompassOverlay.cpp.

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

Definition at line 49 of file lugre_CompassOverlay.cpp.

References mRenderOp.


Member Function Documentation

void Lugre::cCompassOverlay::RegisterFactory (  )  [static]

should be called once at programmstart after initialising ogre::root

Definition at line 34 of file lugre_CompassOverlay.cpp.

Referenced by Lugre::cOgreWrapper::CreateOgreWindow().

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

Initialise

Definition at line 55 of file lugre_CompassOverlay.cpp.

void Lugre::cCompassOverlay::SetUVMid ( const float  fMidU,
const float  fMidV 
)

Definition at line 108 of file lugre_CompassOverlay.cpp.

References mfMidU, and mfMidV.

void Lugre::cCompassOverlay::SetUVRad ( const float  fRadU,
const float  fRadV 
)

Definition at line 109 of file lugre_CompassOverlay.cpp.

References mfRadU, and mfRadV.

void Lugre::cCompassOverlay::SetAngBias ( const float  fAngBias  ) 

Definition at line 110 of file lugre_CompassOverlay.cpp.

References mfAngBias.

void Lugre::cCompassOverlay::setTransparent ( bool  isTransparent  ) 

Sets whether this panel is transparent (used only as a grouping level), or if it is actually renderred. mTransparent = isTransparent;.

Definition at line 61 of file lugre_CompassOverlay.cpp.

References mTransparent.

bool Lugre::cCompassOverlay::isTransparent ( void   )  const

Returns whether this panel is transparent.

Definition at line 67 of file lugre_CompassOverlay.cpp.

References mTransparent.

const String & Lugre::cCompassOverlay::getTypeName ( void   )  const [virtual]

See OverlayElement.

Definition at line 73 of file lugre_CompassOverlay.cpp.

References msTypeName.

void Lugre::cCompassOverlay::getRenderOperation ( Ogre::RenderOperation &  op  ) 

See Renderable.

void Lugre::cCompassOverlay::setMaterialName ( const Ogre::String &  matName  ) 

Overridden from OverlayElement

void Lugre::cCompassOverlay::_updateRenderQueue ( Ogre::RenderQueue *  queue  ) 

Overridden from OverlayContainer

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

internal method for setting up geometry, called by OverlayElement::update

Definition at line 113 of file lugre_CompassOverlay.cpp.

References Lugre::cRobRenderOp::Begin(), Lugre::cRobRenderOp::End(), Lugre::cRobRenderOp::GetMaxZ(), Lugre::cRobRenderOp::Index(), mfAngBias, mfMidU, mfMidV, mfRadU, mfRadV, and Lugre::cRobRenderOp::Vertex().

void Lugre::cCompassOverlay::updateTextureGeometry ( void   )  [virtual]

Called to update the texture coords when layers change.

Definition at line 162 of file lugre_CompassOverlay.cpp.

void Lugre::cCompassOverlay::addBaseParameters ( void   ) 

Method for setting up base parameters for this class.

Definition at line 165 of file lugre_CompassOverlay.cpp.


Member Data Documentation

Ogre::RenderOperation Lugre::cCompassOverlay::mRenderOp

Definition at line 39 of file lugre_CompassOverlay.h.

Referenced by ~cCompassOverlay().

String Lugre::cCompassOverlay::msTypeName = "Compass" [static]

Definition at line 41 of file lugre_CompassOverlay.h.

Referenced by SetUVMid(), and updatePositionGeometry().

Definition at line 42 of file lugre_CompassOverlay.h.

Referenced by SetUVMid(), and updatePositionGeometry().

Definition at line 43 of file lugre_CompassOverlay.h.

Referenced by SetUVRad(), and updatePositionGeometry().

Definition at line 44 of file lugre_CompassOverlay.h.

Referenced by SetUVRad(), and updatePositionGeometry().

Definition at line 45 of file lugre_CompassOverlay.h.

Referenced by SetAngBias(), and updatePositionGeometry().

Definition at line 50 of file lugre_CompassOverlay.h.

Referenced by isTransparent(), and setTransparent().


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

Generated on Wed Feb 8 06:00:20 2012 for cpp by  doxygen 1.5.6