Castor3D
..
|
A rectangular overlay with a border. More...
Classes | |
class | BinaryParser |
BorderPanelOverlay loader. More... | |
class | TextLoader |
BorderPanelOverlay loader. More... | |
Public Member Functions | |
C3D_API | BorderPanelOverlay () |
Constructor. More... | |
virtual C3D_API | ~BorderPanelOverlay () |
Destructor. More... | |
C3D_API void | SetBorderMaterial (MaterialSPtr p_material) |
Sets the border material. More... | |
C3D_API Castor::Rectangle | GetAbsoluteBorderSize (Castor::Size const &p_size) const |
Retrieves the absolute overlay borders size, in pixels. More... | |
C3D_API Castor::Point4d | GetAbsoluteBorderSize () const |
Retrieves the absolute overlay borders size. More... | |
virtual C3D_API bool | IsChanged () const |
OverlayCategory::VertexArray const & | GetPanelVertex () const |
Retrieves the panel vertex buffer. More... | |
double | GetLeftBorderSize () const |
Retrieves the left border thickness. More... | |
double | GetTopBorderSize () const |
Retrieves the top border thickness. More... | |
double | GetRightBorderSize () const |
Retrieves the right border thickness. More... | |
double | GetBottomBorderSize () const |
Retrieves the bottom border thickness. More... | |
Castor::Point4d const & | GetBorderSize () const |
Retrieves the borders thicknesses. More... | |
Castor::Point4d & | GetBorderSize () |
Retrieves the borders thicknesses. More... | |
MaterialSPtr | GetBorderMaterial () const |
Retrieves the border material. More... | |
void | SetLeftBorderSize (double p_size) |
Sets the left border thickness. More... | |
void | SetTopBorderSize (double p_size) |
Sets the top border thickness. More... | |
void | SetRightBorderSize (double p_size) |
Sets the right border thickness. More... | |
void | SetBottomBorderSize (double p_size) |
Sets the bottom border thickness. More... | |
void | SetBorderSize (Castor::Point4d const &p_size) |
Sets the borders thicknesses. More... | |
int | GetLeftBorderPixelSize () const |
Retrieves the left border thickness. More... | |
int | GetTopBorderPixelSize () const |
Retrieves the top border thickness. More... | |
int | GetRightBorderPixelSize () const |
Retrieves the right border thickness. More... | |
int | GetBottomBorderPixelSize () const |
Retrieves the bottom border thickness. More... | |
Castor::Rectangle const & | GetBorderPixelSize () const |
Retrieves the borders thicknesses. More... | |
Castor::Rectangle & | GetBorderPixelSize () |
Retrieves the borders thicknesses. More... | |
void | SetLeftBorderPixelSize (int p_size) |
Sets the left border thickness. More... | |
void | SetTopBorderPixelSize (int p_size) |
Sets the top border thickness. More... | |
void | SetRightBorderPixelSize (int p_size) |
Sets the right border thickness. More... | |
void | SetBottomBorderPixelSize (int p_size) |
Sets the bottom border thickness. More... | |
void | SetBorderPixelSize (Castor::Rectangle const &p_size) |
Sets the borders thicknesses. More... | |
eBORDER_POSITION | GetBorderPosition () const |
Retrieves the border position. More... | |
void | SetBorderPosition (eBORDER_POSITION p_position) |
Sets the border position. More... | |
OverlayCategory::VertexArray const & | GetBorderVertex () const |
Retrieves the borders vertex buffer. More... | |
void | SetBorderOuterUV (Castor::Point4d const &p_value) |
Sets the borders outer part UV. More... | |
Castor::Point4d const & | GetBorderOuterUV () const |
Retrieves the borders outer part UV. More... | |
void | SetBorderInnerUV (Castor::Point4d const &p_value) |
Sets the borders inner part UV. More... | |
Castor::Point4d const & | GetBorderInnerUV () const |
Retrieves the borders inner part UV. More... | |
Public Member Functions inherited from Castor3D::OverlayCategory | |
DECLARE_VECTOR (Vertex, Vertex) | |
C3D_API | OverlayCategory (eOVERLAY_TYPE p_type) |
Constructor. More... | |
virtual C3D_API | ~OverlayCategory () |
Destructor. More... | |
C3D_API void | Update () |
Updates the overlay position, size... More... | |
C3D_API void | Render () |
Draws the overlay. More... | |
virtual C3D_API void | SetMaterial (MaterialSPtr p_pMaterial) |
Sets the material. More... | |
C3D_API Castor::String const & | GetOverlayName () const |
Retrieves the overlay name. More... | |
C3D_API Castor::Position | GetAbsolutePosition (Castor::Size const &p_size) const |
Retrieves the absolute overlay position, in pixels. More... | |
C3D_API Castor::Size | GetAbsoluteSize (Castor::Size const &p_size) const |
Retrieves the absolute overlay size, in pixels. More... | |
C3D_API Castor::Point2d | GetAbsolutePosition () const |
Retrieves the absolute overlay position. More... | |
C3D_API Castor::Point2d | GetAbsoluteSize () const |
Retrieves the absolute overlay size. More... | |
C3D_API bool | IsSizeChanged () const |
C3D_API bool | IsPositionChanged () const |
void | SetPosition (Castor::Point2d const &p_position) |
Sets the overlay position. More... | |
void | SetSize (Castor::Point2d const &p_size) |
Sets the overlay size. More... | |
Castor::Point2d const & | GetSize () const |
Retrieves the overlay size. More... | |
Castor::Point2d const & | GetPosition () const |
Retrieves the overlay position. More... | |
Castor::Size const & | GetPixelSize () const |
Retrieves the overlay size. More... | |
Castor::Position const & | GetPixelPosition () const |
Retrieves the overlay position. More... | |
Castor::Point2d & | GetSize () |
Retrieves the overlay size. More... | |
Castor::Point2d & | GetPosition () |
Retrieves the overlay position. More... | |
Castor::Size & | GetPixelSize () |
Retrieves the overlay size. More... | |
Castor::Position & | GetPixelPosition () |
Retrieves the overlay position. More... | |
eOVERLAY_TYPE | GetType () const |
Retrieves the overlay type. More... | |
bool | IsVisible () const |
Retrieves the visibility status. More... | |
MaterialSPtr | GetMaterial () const |
Retrieves the material. More... | |
int | GetIndex () const |
Retrieves the index. More... | |
int | GetLevel () const |
Retrieves the level. More... | |
Overlay const & | GetOverlay () const |
Retrieves the overlay. More... | |
Overlay & | GetOverlay () |
Retrieves the overlay. More... | |
void | SetOverlay (Overlay *val) |
Sets the overlay. More... | |
void | SetVisible (bool val) |
Sets the visibility status. More... | |
void | SetPixelPosition (Castor::Position const &val) |
Sets the overlay position. More... | |
void | SetPixelSize (Castor::Size const &val) |
Sets the overlay size. More... | |
void | SetOrder (int p_index, int p_level) |
Sets the overlay order. More... | |
void | SetUV (Castor::Point4d const &val) |
Sets the overlay UV. More... | |
Castor::Point4d const & | GetUV () const |
Retrieves the overlay UV. More... | |
Static Public Member Functions | |
static C3D_API OverlayCategorySPtr | Create () |
Creation function, used by the factory. More... | |
Protected Member Functions | |
virtual C3D_API void | DoRender (OverlayRendererSPtr p_renderer) |
Draws the overlay. More... | |
virtual C3D_API void | DoUpdateBuffer (Castor::Size const &p_size) |
Updates the vertex buffer. More... | |
virtual C3D_API void | DoUpdateSize () |
Updates the overlay size, taking care of wanted pixel size. More... | |
Protected Member Functions inherited from Castor3D::OverlayCategory | |
Castor::Point2d | DoGetTotalSize () const |
virtual void | DoUpdatePosition () |
Updates the overlay position, taking care of wanted pixel position. More... | |
virtual void | DoUpdate () |
Updates the overlay position, size... More... | |
Protected Attributes | |
MaterialWPtr | m_pBorderMaterial |
The border material. More... | |
Castor::Point4d | m_ptBorderSize |
The border size. More... | |
Castor::Rectangle | m_borderSize |
The absolute size in pixels. More... | |
Castor::String | m_strBorderMatName |
The border material name. More... | |
eBORDER_POSITION | m_borderPosition |
The border material name. More... | |
VertexArray | m_arrayVtx |
The vertex buffer data. More... | |
OverlayCategory::VertexArray | m_arrayVtxBorder |
The borders vertex buffer data. More... | |
Castor::Point4d | m_borderOuterUv |
The UV for the outer part of the border. More... | |
Castor::Point4d | m_borderInnerUv |
The UV for the inner part of the border. More... | |
bool | m_borderChanged |
Tells if the border has changed, in any way. More... | |
Protected Attributes inherited from Castor3D::OverlayCategory | |
Overlay * | m_pOverlay |
The overlay. More... | |
Castor::Point2d | m_position |
The relative position (to parent or screen) More... | |
Castor::Point2d | m_ptSize |
The relative size (to parent or screen) More... | |
Castor::Position | m_pxPosition |
The relative position (to parent or screen), in pixels. More... | |
Castor::Size | m_size |
The absolute size in pixels. More... | |
bool | m_visible |
The visibility. More... | |
MaterialWPtr | m_pMaterial |
The material used by the overlay. More... | |
int | m_index |
The overlay index. More... | |
int | m_level |
The overlay level. More... | |
Castor::String | m_strMatName |
The material name. More... | |
eOVERLAY_TYPE | m_type |
The overlay type. More... | |
bool | m_sizeChanged |
Tells if this overlay's size has changed. More... | |
bool | m_positionChanged |
Tells if this overlay's position has changed. More... | |
Castor::Point4d | m_uv |
The UV for the panel. More... | |
A rectangular overlay with a border.
C3D_API Castor3D::BorderPanelOverlay::BorderPanelOverlay | ( | ) |
Constructor.
|
virtual |
Destructor.
|
static |
Creation function, used by the factory.
|
protectedvirtual |
Draws the overlay.
[in] | p_renderer | The renderer used to draw this overlay |
Implements Castor3D::OverlayCategory.
|
protectedvirtual |
Updates the vertex buffer.
[in] | p_size | The render target size. |
Implements Castor3D::OverlayCategory.
|
protectedvirtual |
Updates the overlay size, taking care of wanted pixel size.
Reimplemented from Castor3D::OverlayCategory.
C3D_API Castor::Rectangle Castor3D::BorderPanelOverlay::GetAbsoluteBorderSize | ( | Castor::Size const & | p_size | ) | const |
Retrieves the absolute overlay borders size, in pixels.
[in] | p_size | The screen size |
C3D_API Castor::Point4d Castor3D::BorderPanelOverlay::GetAbsoluteBorderSize | ( | ) | const |
Retrieves the absolute overlay borders size.
|
inline |
Retrieves the borders inner part UV.
References m_borderInnerUv.
|
inline |
|
inline |
Retrieves the borders outer part UV.
References m_borderOuterUv.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
true
if this overlay's has changed. Reimplemented from Castor3D::OverlayCategory.
References m_borderChanged.
|
inline |
Sets the borders inner part UV.
[in] | p_value | The new value (left, top, right and bottom) |
References m_borderInnerUv.
C3D_API void Castor3D::BorderPanelOverlay::SetBorderMaterial | ( | MaterialSPtr | p_material | ) |
Sets the border material.
[in] | p_material | The new value |
|
inline |
Sets the borders outer part UV.
[in] | p_value | The new value (left, top, right and bottom) |
References m_borderOuterUv.
|
inline |
Sets the borders thicknesses.
[in] | p_size | The new value |
References m_borderChanged, and m_borderSize.
|
inline |
|
inline |
Sets the borders thicknesses.
[in] | p_size | The new value |
References m_borderChanged, and m_ptBorderSize.
|
inline |
Sets the bottom border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_borderSize.
|
inline |
Sets the bottom border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_ptBorderSize.
|
inline |
Sets the left border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_borderSize.
|
inline |
Sets the left border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_ptBorderSize.
|
inline |
Sets the right border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_borderSize.
|
inline |
Sets the right border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_ptBorderSize.
|
inline |
Sets the top border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_borderSize.
|
inline |
Sets the top border thickness.
[in] | p_size | The new value |
References m_borderChanged, and m_ptBorderSize.
|
protected |
The vertex buffer data.
Referenced by GetPanelVertex().
|
protected |
The borders vertex buffer data.
Referenced by GetBorderVertex().
|
protected |
Tells if the border has changed, in any way.
Referenced by GetBorderPixelSize(), GetBorderSize(), IsChanged(), SetBorderPixelSize(), SetBorderSize(), SetBottomBorderPixelSize(), SetBottomBorderSize(), SetLeftBorderPixelSize(), SetLeftBorderSize(), SetRightBorderPixelSize(), SetRightBorderSize(), SetTopBorderPixelSize(), and SetTopBorderSize().
|
protected |
The UV for the inner part of the border.
Referenced by GetBorderInnerUV(), and SetBorderInnerUV().
|
protected |
The UV for the outer part of the border.
Referenced by GetBorderOuterUV(), and SetBorderOuterUV().
|
protected |
The border material name.
Referenced by GetBorderPosition(), and SetBorderPosition().
|
protected |
The absolute size in pixels.
Referenced by GetBorderPixelSize(), GetBottomBorderPixelSize(), GetLeftBorderPixelSize(), GetRightBorderPixelSize(), GetTopBorderPixelSize(), SetBorderPixelSize(), SetBottomBorderPixelSize(), SetLeftBorderPixelSize(), SetRightBorderPixelSize(), and SetTopBorderPixelSize().
|
protected |
The border material.
Referenced by GetBorderMaterial().
|
protected |
The border size.
Referenced by GetBorderSize(), GetBottomBorderSize(), GetLeftBorderSize(), GetRightBorderSize(), GetTopBorderSize(), SetBorderSize(), SetBottomBorderSize(), SetLeftBorderSize(), SetRightBorderSize(), and SetTopBorderSize().
|
protected |
The border material name.