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