Lugre::cColourClipPaneOverlay::VertexRect Struct Reference

#include <lugre_ColourClipPaneOverlay.h>

Collaboration diagram for Lugre::cColourClipPaneOverlay::VertexRect:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VertexRect ()
 VertexRect (const Vertex &lt, const Vertex &lb, const Vertex &rt, const Vertex &rb)
void SetLTWH (const Ogre::Real l, const Ogre::Real t, const Ogre::Real w, const Ogre::Real h)
 left top width height
void SetLTRB (const Ogre::Real l, const Ogre::Real t, const Ogre::Real r, const Ogre::Real b)
 left top right bottom
void SetCol (const Ogre::ColourValue &col)
void SetUV (const Ogre::Real u1, const Ogre::Real v1, const Ogre::Real u2, const Ogre::Real v2)
Vertex Pick (const Ogre::Real x, const Ogre::Real y)
 x in [lt.x,rt.x] , interpolates color and texcoords
VertexRect Intersect (const Ogre::Rectangle &clippingRegion)
void DrawStrip (cRobRenderOp *pRobRenderOp, const Ogre::Real z)
 overlayspecific, expects coords in [0,1] transforms to [-1,1], for TriStrip
void DrawList (cRobRenderOp *pRobRenderOp, const Ogre::Real z)
 overlayspecific, expects coords in [0,1] transforms to [-1,1], for TriList
void Print ()
 for debug

Public Attributes

Vertex lt
Vertex lb
Vertex rt
Vertex rb
 left-top,..,right-bottom (redundant : lt.x = lb.x,...)


Detailed Description

Definition at line 54 of file lugre_ColourClipPaneOverlay.h.


Constructor & Destructor Documentation

Lugre::cColourClipPaneOverlay::VertexRect::VertexRect (  ) 

Definition at line 71 of file lugre_ColourClipPaneOverlay.cpp.

Lugre::cColourClipPaneOverlay::VertexRect::VertexRect ( const Vertex lt,
const Vertex lb,
const Vertex rt,
const Vertex rb 
)

Definition at line 73 of file lugre_ColourClipPaneOverlay.cpp.


Member Function Documentation

void Lugre::cColourClipPaneOverlay::VertexRect::SetLTWH ( const Ogre::Real  l,
const Ogre::Real  t,
const Ogre::Real  w,
const Ogre::Real  h 
)

void Lugre::cColourClipPaneOverlay::VertexRect::SetLTRB ( const Ogre::Real  l,
const Ogre::Real  t,
const Ogre::Real  r,
const Ogre::Real  b 
)

void Lugre::cColourClipPaneOverlay::VertexRect::SetCol ( const Ogre::ColourValue &  col  ) 

void Lugre::cColourClipPaneOverlay::VertexRect::SetUV ( const Ogre::Real  u1,
const Ogre::Real  v1,
const Ogre::Real  u2,
const Ogre::Real  v2 
)

cColourClipPaneOverlay::Vertex Lugre::cColourClipPaneOverlay::VertexRect::Pick ( const Ogre::Real  x,
const Ogre::Real  y 
)

x in [lt.x,rt.x] , interpolates color and texcoords

Definition at line 103 of file lugre_ColourClipPaneOverlay.cpp.

References Lugre::Interpolate(), lb, lt, rb, rt, Lugre::cColourClipPaneOverlay::Vertex::x, and Lugre::cColourClipPaneOverlay::Vertex::y.

Referenced by Intersect().

cColourClipPaneOverlay::VertexRect Lugre::cColourClipPaneOverlay::VertexRect::Intersect ( const Ogre::Rectangle &  clippingRegion  ) 

void Lugre::cColourClipPaneOverlay::VertexRect::DrawStrip ( cRobRenderOp pRobRenderOp,
const Ogre::Real  z 
)

overlayspecific, expects coords in [0,1] transforms to [-1,1], for TriStrip

Definition at line 122 of file lugre_ColourClipPaneOverlay.cpp.

References Lugre::cColourClipPaneOverlay::Vertex::Draw(), lb, lt, rb, and rt.

Referenced by Lugre::cColourClipPaneOverlay::updatePositionGeometry(), and Lugre::cBorderColourClipPaneOverlay::updatePositionGeometry().

void Lugre::cColourClipPaneOverlay::VertexRect::DrawList ( cRobRenderOp pRobRenderOp,
const Ogre::Real  z 
)

overlayspecific, expects coords in [0,1] transforms to [-1,1], for TriList

Definition at line 136 of file lugre_ColourClipPaneOverlay.cpp.

References Lugre::cColourClipPaneOverlay::Vertex::Draw(), lb, lt, rb, and rt.

Referenced by Lugre::cColourClipTextOverlay::updatePositionGeometry(), and Lugre::cBorderColourClipPaneOverlay::updatePositionGeometry().

void Lugre::cColourClipPaneOverlay::VertexRect::Print (  ) 

for debug

Definition at line 129 of file lugre_ColourClipPaneOverlay.cpp.

References lb, lt, Lugre::cColourClipPaneOverlay::Vertex::Print(), rb, and rt.


Member Data Documentation


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

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