Go to the documentation of this file.
29 #ifndef __BorderPanelOverlayElement_H__
30 #define __BorderPanelOverlayElement_H__
42 class BorderRenderable;
179 bool debugRenderables =
false);
294 BCELL_BOTTOM_LEFT = 5,
296 BCELL_BOTTOM_RIGHT = 7
328 mUseIdentityProjection =
true;
329 mUseIdentityView =
true;
352 #endif // __BorderPanelOverlayElement_H__
String doGet(const void *target) const
Real getBottomBorderSize(void) const
Gets the size of the bottom border.
Command object for specifying texture coordinates for the border (see ParamCommand).
String mBorderMaterialName
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
A specialisation of the PanelOverlayElement to provide a panel with a border.
OverlayElement representing a flat, single-material (or transparent) panel which can contain other el...
Real getRightBorderSize(void) const
Gets the size of the right border.
A viewpoint from which the scene will be rendered.
void getRenderOperation(RenderOperation &op)
Gets the render operation required to send this object to the frame buffer.
const String & getTypeName(void) const
See OverlayElement.
String getCellUVString(BorderCellIndex idx) const
ushort mPixelTopBorderSize
void updatePositionGeometry(void)
internal method for setting up geometry, called by OverlayElement::update
String doGet(const void *target) const
void doSet(void *target, const String &val)
void setTopRightBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the top-right corner of the border.
Class for rendering the border of a BorderPanelOverlayElement.
ushort mPixelRightBorderSize
GuiMetricsMode
Enum describing how the position / size of an element is to be recorded.
void doSet(void *target, const String &val)
String getLeftBorderUVString() const
BorderPanelOverlayElement(const String &name)
Constructor.
Command object for specifying texture coordinates for the border (see ParamCommand).
bool getPolygonModeOverrideable(void) const
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setti...
String getTopLeftBorderUVString() const
void setBorderSize(Real size)
Sets the size of the border.
void setLeftBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the left edge of the border.
Command object for specifying texture coordinates for the border (see ParamCommand).
String doGet(const void *target) const
void setTopBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the top edge of the border.
void doSet(void *target, const String &val)
void visitRenderables(Renderable::Visitor *visitor, bool debugRenderables=false)
Method to allow a caller to abstractly iterate over the Renderable instances that this MovableObject ...
void _update(void)
Internal method to update the element based on transforms applied.
void setBottomBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the bottom edge of the border.
void setBorderMaterialName(const String &name)
Sets the name of the material to use for the borders.
void updateTextureGeometry(void)
internal method for setting up geometry, called by OverlayElement::update
String doGet(const void *target) const
String doGet(const void *target) const
void doSet(void *target, const String &val)
Command object for specifying texture coordinates for the border (see ParamCommand).
Command object for specifying border sizes (see ParamCommand).
Abstract class which is command object which gets/sets parameters.
Command object for specifying texture coordinates for the border (see ParamCommand).
const MaterialPtr & getMaterial(void) const
Retrieves a weak reference to the material this renderable object uses.
BorderRenderable(BorderPanelOverlayElement *parent)
Constructed with pointers to parent.
Class encapsulating a standard 4x4 homogeneous matrix.
void doSet(void *target, const String &val)
String doGet(const void *target) const
RenderOperation mRenderOp2
Render operation for the border area.
Command object for specifying texture coordinates for the border (see ParamCommand).
void doSet(void *target, const String &val)
void setBorderSize(Real sides, Real topAndBottom)
Sets the size of the border, with different sizes for vertical and horizontal borders.
#define _OgreOverlayExport
unsigned short getNumWorldTransforms(void) const
Returns the number of world transform matrices this renderable requires.
Real getTopBorderSize(void) const
Gets the size of the top border.
ushort mPixelBottomBorderSize
void setBottomRightBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the bottom-right corner of the border.
void doSet(void *target, const String &val)
String getBottomRightBorderUVString() const
void setTopLeftBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the top-left corner of the border.
String doGet(const void *target) const
const String & getBorderMaterialName(void) const
Gets the name of the material to use for the borders.
void getWorldTransforms(Matrix4 *xform) const
See Renderable.
void setBorderSize(Real left, Real right, Real top, Real bottom)
Sets the size of the border separately for all borders.
static CmdBorderMaterial msCmdBorderMaterial
void setMetricsMode(GuiMetricsMode gmm)
Tells this element how to interpret the position and dimension values it is given.
String doGet(const void *target) const
MaterialPtr mBorderMaterial
BorderPanelOverlayElement * mParent
Real getSquaredViewDepth(const Camera *cam) const
Overridden from Renderable.
static CmdBorderTopRightUV msCmdBorderTopRightUV
Command object for specifying the Material for the border (see ParamCommand).
static CmdBorderRightUV msCmdBorderRightUV
virtual bool getPolygonModeOverrideable(void) const
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setti...
static CmdBorderLeftUV msCmdBorderLeftUV
void doSet(void *target, const String &val)
static CmdBorderTopUV msCmdBorderTopUV
Real getLeftBorderSize(void) const
Gets the size of the left border.
ushort mPixelLeftBorderSize
Visitor object that can be used to iterate over a collection of Renderable instances abstractly.
Abstract class defining the interface all renderable objects must implement.
void _updateRenderQueue(RenderQueue *queue)
Overridden from OverlayElement.
static CmdBorderBottomUV msCmdBorderBottomUV
virtual void initialise(void)
Initialise.
const LightList & getLights(void) const
Gets a list of lights, ordered relative to how close they are to this renderable.
static CmdBorderTopLeftUV msCmdBorderTopLeftUV
String getBottomBorderUVString() const
String doGet(const void *target) const
float Real
Software floating point type.
String getRightBorderUVString() const
virtual ~BorderPanelOverlayElement()
void doSet(void *target, const String &val)
Command object for specifying texture coordinates for the border (see ParamCommand).
String doGet(const void *target) const
Command object for specifying texture coordinates for the border (see ParamCommand).
void setRightBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the right edge of the border.
BorderRenderable * mBorderRenderable
void setBottomLeftBorderUV(Real u1, Real v1, Real u2, Real v2)
Sets the texture coordinates for the bottom-left corner of the border.
Real getSquaredViewDepth(const Camera *cam) const
Returns the camera-relative squared depth of this renderable.
void getWorldTransforms(Matrix4 *xform) const
Gets the world transform matrix / matrices for this renderable object.
void addBaseParameters(void)
Internal method for setting up parameters.
'New' rendering operation using vertex buffers.
String getTopBorderUVString() const
String getTopRightBorderUVString() const
Class to manage the scene object rendering queue.
void doSet(void *target, const String &val)
static CmdBorderBottomLeftUV msCmdBorderBottomLeftUV
static CmdBorderSize msCmdBorderSize
static CmdBorderBottomRightUV msCmdBorderBottomRightUV
String getBottomLeftBorderUVString() const
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.