29 #ifndef __BorderPanelOverlayElement_H__
30 #define __BorderPanelOverlayElement_H__
42 class BorderRenderable;
65 virtual void initialise(
void);
67 const String& getTypeName(
void)
const;
79 void setBorderSize(
Real size);
92 void setBorderSize(
Real sides,
Real topAndBottom);
110 Real getLeftBorderSize(
void)
const;
112 Real getRightBorderSize(
void)
const;
114 Real getTopBorderSize(
void)
const;
116 Real getBottomBorderSize(
void)
const;
158 String getLeftBorderUVString()
const;
159 String getRightBorderUVString()
const;
160 String getTopBorderUVString()
const;
161 String getBottomBorderUVString()
const;
162 String getTopLeftBorderUVString()
const;
163 String getTopRightBorderUVString()
const;
164 String getBottomLeftBorderUVString()
const;
165 String getBottomRightBorderUVString()
const;
171 void setBorderMaterialName(
const String& name);
173 const String& getBorderMaterialName(
void)
const;
179 bool debugRenderables =
false);
192 String doGet(
const void* target)
const;
193 void doSet(
void* target,
const String& val);
199 String doGet(
const void* target)
const;
200 void doSet(
void* target,
const String& val);
206 String doGet(
const void* target)
const;
207 void doSet(
void* target,
const String& val);
213 String doGet(
const void* target)
const;
214 void doSet(
void* target,
const String& val);
220 String doGet(
const void* target)
const;
221 void doSet(
void* target,
const String& val);
227 String doGet(
const void* target)
const;
228 void doSet(
void* target,
const String& val);
234 String doGet(
const void* target)
const;
235 void doSet(
void* target,
const String& val);
241 String doGet(
const void* target)
const;
242 void doSet(
void* target,
const String& val);
248 String doGet(
const void* target)
const;
249 void doSet(
void* target,
const String& val);
255 String doGet(
const void* target)
const;
256 void doSet(
void* target,
const String& val);
282 void updatePositionGeometry(
void);
284 void updateTextureGeometry(
void);
286 void addBaseParameters(
void);
294 BCELL_BOTTOM_LEFT = 5,
296 BCELL_BOTTOM_RIGHT = 7
298 String getCellUVString(BorderCellIndex idx)
const;
328 mUseIdentityProjection =
true;
329 mUseIdentityView =
true;
344 return mParent->getPolygonModeOverrideable();
A viewpoint from which the scene will be rendered.
OverlayElement representing a flat, single-material (or transparent) panel which can contain other el...
Class encapsulating a standard 4x4 homogeneous matrix.
const MaterialPtr & getMaterial(void) const
Retrieves a weak reference to the material this renderable object uses.
float Real
Software floating point type.
Class for rendering the border of a BorderPanelOverlayElement.
static CmdBorderBottomRightUV msCmdBorderBottomRightUV
A specialisation of the PanelOverlayElement to provide a panel with a border.
Command object for specifying texture coordinates for the border (see ParamCommand).
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...
BorderRenderable(BorderPanelOverlayElement *parent)
Constructed with pointers to parent.
const LightList & getLights(void) const
Gets a list of lights, ordered relative to how close they are to this renderable. ...
static CmdBorderLeftUV msCmdBorderLeftUV
static CmdBorderBottomLeftUV msCmdBorderBottomLeftUV
BorderPanelOverlayElement * mParent
static CmdBorderTopUV msCmdBorderTopUV
ushort mPixelLeftBorderSize
ushort mPixelBottomBorderSize
GuiMetricsMode
Enum describing how the position / size of an element is to be recorded.
Abstract class defining the interface all renderable objects must implement.
MaterialPtr mBorderMaterial
Command object for specifying texture coordinates for the border (see ParamCommand).
Command object for specifying texture coordinates for the border (see ParamCommand).
Command object for specifying texture coordinates for the border (see ParamCommand).
static CmdBorderTopLeftUV msCmdBorderTopLeftUV
ushort mPixelTopBorderSize
ushort mPixelRightBorderSize
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
static CmdBorderBottomUV msCmdBorderBottomUV
String mBorderMaterialName
Visitor object that can be used to iterate over a collection of Renderable instances abstractly...
Command object for specifying the Material for the border (see ParamCommand).
'New' rendering operation using vertex buffers.
Command object for specifying border sizes (see ParamCommand).
static CmdBorderMaterial msCmdBorderMaterial
Class to manage the scene object rendering queue.
void getRenderOperation(RenderOperation &op)
Gets the render operation required to send this object to the frame buffer.
RenderOperation mRenderOp2
Real getSquaredViewDepth(const Camera *cam) const
Returns the camera-relative squared depth of this renderable.
static CmdBorderRightUV msCmdBorderRightUV
BorderRenderable * mBorderRenderable
Command object for specifying texture coordinates for the border (see ParamCommand).
static CmdBorderSize msCmdBorderSize
static CmdBorderTopRightUV msCmdBorderTopRightUV
Specialisation of SharedPtr to allow SharedPtr to be assigned to MaterialPtr.
void getWorldTransforms(Matrix4 *xform) const
Gets the world transform matrix / matrices for this renderable object.
Command object for specifying texture coordinates for the border (see ParamCommand).
Command object for specifying texture coordinates for the border (see ParamCommand).
unsigned short getNumWorldTransforms(void) const
Returns the number of world transform matrices this renderable requires.
Abstract class which is command object which gets/sets parameters.