|
Castor3D
..
|
Holds specific members for an overlay category. More...
Inheritance diagram for Castor3D::OverlayCategory:
Collaboration diagram for Castor3D::OverlayCategory:Classes | |
| class | BinaryParser |
| OverlayCategory loader. More... | |
| class | TextLoader |
| OverlayCategory loader. More... | |
| struct | Vertex |
| Holds specific vertex data for an Overlay. More... | |
Public Member Functions | |
| 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 |
| virtual C3D_API bool | IsChanged () 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... | |
Protected Member Functions | |
| Castor::Point2d | DoGetTotalSize () const |
| virtual void | DoUpdatePosition () |
| Updates the overlay position, taking care of wanted pixel position. More... | |
| virtual void | DoUpdateSize () |
| Updates the overlay size, taking care of wanted pixel size. More... | |
| virtual void | DoRender (OverlayRendererSPtr p_renderer)=0 |
| Draws the overlay. More... | |
| virtual void | DoUpdate () |
| Updates the overlay position, size... More... | |
| virtual void | DoUpdateBuffer (Castor::Size const &p_size)=0 |
| Updates the vertex buffer. More... | |
Protected Attributes | |
| 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... | |
Holds specific members for an overlay category.
| C3D_API Castor3D::OverlayCategory::OverlayCategory | ( | eOVERLAY_TYPE | p_type | ) |
Constructor.
| [in] | p_type | The overlay type |
|
virtual |
Destructor.
|
protected |
|
protectedpure virtual |
Draws the overlay.
| [in] | p_renderer | The renderer used to draw this overlay |
Implemented in Castor3D::BorderPanelOverlay, and Castor3D::PanelOverlay.
|
inlineprotectedvirtual |
Updates the overlay position, size...
|
protectedpure virtual |
Updates the vertex buffer.
| [in] | p_size | The render target size. |
Implemented in Castor3D::BorderPanelOverlay, and Castor3D::PanelOverlay.
|
protectedvirtual |
Updates the overlay position, taking care of wanted pixel position.
|
protectedvirtual |
Updates the overlay size, taking care of wanted pixel size.
Reimplemented in Castor3D::BorderPanelOverlay.
| C3D_API Castor::Position Castor3D::OverlayCategory::GetAbsolutePosition | ( | Castor::Size const & | p_size | ) | const |
Retrieves the absolute overlay position, in pixels.
| [in] | p_size | The screen size |
| C3D_API Castor::Point2d Castor3D::OverlayCategory::GetAbsolutePosition | ( | ) | const |
Retrieves the absolute overlay position.
| C3D_API Castor::Size Castor3D::OverlayCategory::GetAbsoluteSize | ( | Castor::Size const & | p_size | ) | const |
Retrieves the absolute overlay size, in pixels.
| [in] | p_size | The screen size |
| C3D_API Castor::Point2d Castor3D::OverlayCategory::GetAbsoluteSize | ( | ) | const |
Retrieves the absolute overlay size.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| C3D_API Castor::String const& Castor3D::OverlayCategory::GetOverlayName | ( | ) | const |
Retrieves the overlay name.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
true if this overlay's has changed. Reimplemented in Castor3D::TextOverlay, and Castor3D::BorderPanelOverlay.
| C3D_API bool Castor3D::OverlayCategory::IsPositionChanged | ( | ) | const |
true if this overlay's or one of its parents' position has changed. | C3D_API bool Castor3D::OverlayCategory::IsSizeChanged | ( | ) | const |
true if this overlay's or one of its parents' size has changed.
|
inline |
| C3D_API void Castor3D::OverlayCategory::Render | ( | ) |
Draws the overlay.
|
virtual |
Sets the material.
| [in] | p_pMaterial | The new value |
|
inline |
|
inline |
|
inline |
Sets the overlay position.
| [in] | val | The new value |
References m_positionChanged, and m_pxPosition.
|
inline |
|
inline |
Sets the overlay position.
| [in] | p_position | The new value |
References m_position, and m_positionChanged.
|
inline |
|
inline |
|
inline |
| C3D_API void Castor3D::OverlayCategory::Update | ( | ) |
Updates the overlay position, size...
|
protected |
The overlay index.
Referenced by GetIndex(), and SetOrder().
|
protected |
The overlay level.
Referenced by GetLevel(), and SetOrder().
|
protected |
The material used by the overlay.
Referenced by GetMaterial().
|
protected |
The relative position (to parent or screen)
Referenced by GetPosition(), and SetPosition().
|
protected |
Tells if this overlay's position has changed.
Referenced by SetPixelPosition(), and SetPosition().
|
protected |
The overlay.
Referenced by GetOverlay(), and SetOverlay().
|
protected |
|
protected |
The relative position (to parent or screen), in pixels.
Referenced by GetPixelPosition(), and SetPixelPosition().
|
protected |
The absolute size in pixels.
Referenced by GetPixelSize(), and SetPixelSize().
|
protected |
Tells if this overlay's size has changed.
Referenced by SetPixelSize(), and SetSize().
|
protected |
The material name.
|
protected |
The overlay type.
Referenced by GetType().
|
protected |
|
protected |
The visibility.
Referenced by IsVisible(), and SetVisible().
1.8.15