GUIClippedRectangle Class Reference

#include <glwx.h>

Inheritance diagram for GUIClippedRectangle:

Inheritance graph
[legend]
Collaboration diagram for GUIClippedRectangle:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GUIClippedRectangle (int clipSize=5)
void enableBGColor (bool enable)
bool isBGColorOn ()
void computeClippedBounds (const Tuple4i &windowBounds)
void setClipSize (int clipSize)
int getClipSize ()
void setVisibleBounds (bool visible)
bool boundsVisible ()
void setBGColor (float x, float y, float z, float alpha)
void setBGColor (const Tuple4f &color)
const Tuple4f & getBGColor ()
const Tuple2i * getVertices () const
void setBordersColor (const Tuple3f &color)
void setBordersColor (float x, float y, float z)
const Tuple3f & getBordersColor ()
const Tuple2f * getTexCoords () const
void setTextureRectangle (float x, float y, float z, float w)
void setTextureRectangle (const Tuple4f &textureRectangle)
const Tuple4f & getTextureRectangle ()
TexturegetTexture ()
void setTexture (const Texture &texture)
virtual void renderClippedBounds ()
virtual bool loadXMLClippedRectangleInfo (const TiXmlElement *element)

Protected Attributes

Texture texture
Tuple2f texCoords [7]
Tuple4f textureRectangle
Tuple4f bgColor
Tuple3f bordersColor
Tuple2i vertices [7]
bool drawBackground
bool drawBounds
int clipSize


Detailed Description

Definition at line 549 of file glwx.h.


Constructor & Destructor Documentation

GUIClippedRectangle::GUIClippedRectangle ( int  clipSize = 5  ) 

Definition at line 3 of file GUIClippedRectangle.cpp.

References drawBackground, drawBounds, setBGColor(), setBordersColor(), setClipSize(), and setTextureRectangle().


Member Function Documentation

void GUIClippedRectangle::enableBGColor ( bool  enable  ) 

Definition at line 172 of file GUIClippedRectangle.cpp.

References drawBackground.

Referenced by GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), loadXMLClippedRectangleInfo(), and GUIComboBox::render().

bool GUIClippedRectangle::isBGColorOn (  ) 

Definition at line 221 of file GUIClippedRectangle.cpp.

References drawBackground.

void GUIClippedRectangle::computeClippedBounds ( const Tuple4i &  windowBounds  ) 

Definition at line 147 of file GUIClippedRectangle.cpp.

References clipSize, texCoords, textureRectangle, and vertices.

Referenced by GUIButton::computeWindowBounds(), GUIPanel::packFreeLayout(), GUIPanel::packXAxisLayout(), and GUIPanel::packYAxisLayout().

void GUIClippedRectangle::setClipSize ( int  clipSize  ) 

Definition at line 14 of file GUIClippedRectangle.cpp.

References clipSize.

Referenced by GUIClippedRectangle(), GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), and loadXMLClippedRectangleInfo().

int GUIClippedRectangle::getClipSize (  ) 

Definition at line 19 of file GUIClippedRectangle.cpp.

References clipSize.

void GUIClippedRectangle::setVisibleBounds ( bool  visible  ) 

Definition at line 24 of file GUIClippedRectangle.cpp.

References drawBounds.

Referenced by GUIComboBox::GUIComboBox(), GUITabbedPanel::GUITabbedPanel(), loadXMLClippedRectangleInfo(), and GUIComboBox::render().

bool GUIClippedRectangle::boundsVisible (  ) 

Definition at line 29 of file GUIClippedRectangle.cpp.

References drawBounds.

void GUIClippedRectangle::setBGColor ( float  x,
float  y,
float  z,
float  alpha 
)

Definition at line 74 of file GUIClippedRectangle.cpp.

References bgColor.

Referenced by GUIClippedRectangle(), loadXMLClippedRectangleInfo(), GUITabbedPanel::loadXMLSettings(), GUIComboBox::loadXMLSettings(), and setBGColor().

void GUIClippedRectangle::setBGColor ( const Tuple4f &  color  ) 

Definition at line 69 of file GUIClippedRectangle.cpp.

References setBGColor().

const Tuple4f & GUIClippedRectangle::getBGColor (  ) 

Definition at line 226 of file GUIClippedRectangle.cpp.

References bgColor.

Referenced by GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().

const Tuple2i * GUIClippedRectangle::getVertices (  )  const

Definition at line 231 of file GUIClippedRectangle.cpp.

References vertices.

void GUIClippedRectangle::setBordersColor ( const Tuple3f &  color  ) 

Definition at line 87 of file GUIClippedRectangle.cpp.

Referenced by GUITabbedPanel::addPanel(), GUIButton::GUIButton(), GUIClippedRectangle(), loadXMLClippedRectangleInfo(), GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().

void GUIClippedRectangle::setBordersColor ( float  x,
float  y,
float  z 
)

Definition at line 97 of file GUIClippedRectangle.cpp.

References bordersColor.

const Tuple3f & GUIClippedRectangle::getBordersColor (  ) 

Definition at line 92 of file GUIClippedRectangle.cpp.

References bordersColor.

Referenced by GUITabbedPanel::loadXMLSettings(), and GUIComboBox::loadXMLSettings().

const Tuple2f * GUIClippedRectangle::getTexCoords (  )  const

Definition at line 236 of file GUIClippedRectangle.cpp.

References texCoords.

void GUIClippedRectangle::setTextureRectangle ( float  x,
float  y,
float  z,
float  w 
)

Definition at line 182 of file GUIClippedRectangle.cpp.

References Texture::getHeight(), Texture::getID(), Texture::getWidth(), texture, and textureRectangle.

Referenced by GUIClippedRectangle(), loadXMLClippedRectangleInfo(), and setTextureRectangle().

void GUIClippedRectangle::setTextureRectangle ( const Tuple4f &  textureRectangle  ) 

Definition at line 177 of file GUIClippedRectangle.cpp.

References setTextureRectangle().

const Tuple4f & GUIClippedRectangle::getTextureRectangle (  ) 

Definition at line 206 of file GUIClippedRectangle.cpp.

References textureRectangle.

Texture & GUIClippedRectangle::getTexture (  ) 

Definition at line 211 of file GUIClippedRectangle.cpp.

References texture.

void GUIClippedRectangle::setTexture ( const Texture texture  ) 

Definition at line 216 of file GUIClippedRectangle.cpp.

References texture.

void GUIClippedRectangle::renderClippedBounds (  )  [virtual]

Definition at line 107 of file GUIClippedRectangle.cpp.

References Texture::activate(), bgColor, bordersColor, Texture::deactivate(), drawBackground, drawBounds, Texture::getID(), texCoords, texture, and vertices.

Referenced by GUIPanel::render(), GUIComboBox::render(), and GUIButton::render().

bool GUIClippedRectangle::loadXMLClippedRectangleInfo ( const TiXmlElement *  element  )  [virtual]

Definition at line 34 of file GUIClippedRectangle.cpp.

References bgColor, bordersColor, clipSize, drawBackground, drawBounds, enableBGColor(), Texture::loadXMLSettings(), setBGColor(), setBordersColor(), setClipSize(), setTextureRectangle(), setVisibleBounds(), texture, and textureRectangle.

Referenced by GUIPanel::loadXMLSettings(), GUIComboBox::loadXMLSettings(), and GUIButton::loadXMLSettings().


Member Data Documentation

Texture GUIClippedRectangle::texture [protected]

Definition at line 552 of file glwx.h.

Referenced by getTexture(), loadXMLClippedRectangleInfo(), renderClippedBounds(), setTexture(), and setTextureRectangle().

Tuple2f GUIClippedRectangle::texCoords[7] [protected]

Reimplemented in GUIFrame.

Definition at line 553 of file glwx.h.

Referenced by computeClippedBounds(), getTexCoords(), and renderClippedBounds().

Tuple4f GUIClippedRectangle::textureRectangle [protected]

Definition at line 555 of file glwx.h.

Referenced by computeClippedBounds(), getTextureRectangle(), loadXMLClippedRectangleInfo(), and setTextureRectangle().

Tuple4f GUIClippedRectangle::bgColor [protected]

Definition at line 555 of file glwx.h.

Referenced by getBGColor(), loadXMLClippedRectangleInfo(), GUIButton::render(), renderClippedBounds(), and setBGColor().

Tuple3f GUIClippedRectangle::bordersColor [protected]

Definition at line 558 of file glwx.h.

Referenced by getBordersColor(), loadXMLClippedRectangleInfo(), renderClippedBounds(), and setBordersColor().

Tuple2i GUIClippedRectangle::vertices[7] [protected]

Definition at line 559 of file glwx.h.

Referenced by computeClippedBounds(), getVertices(), and renderClippedBounds().

bool GUIClippedRectangle::drawBackground [protected]

Definition at line 560 of file glwx.h.

Referenced by enableBGColor(), GUIButton::GUIButton(), GUIClippedRectangle(), isBGColorOn(), loadXMLClippedRectangleInfo(), and renderClippedBounds().

bool GUIClippedRectangle::drawBounds [protected]

Definition at line 560 of file glwx.h.

Referenced by boundsVisible(), GUIButton::GUIButton(), GUIClippedRectangle(), loadXMLClippedRectangleInfo(), renderClippedBounds(), and setVisibleBounds().

int GUIClippedRectangle::clipSize [protected]

Definition at line 562 of file glwx.h.

Referenced by computeClippedBounds(), GUIButton::computeWindowBounds(), getClipSize(), loadXMLClippedRectangleInfo(), GUIPanel::packFreeLayout(), and setClipSize().


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3