Castor3D
..
|
The overlay class. More...
Classes | |
class | BinaryParser |
Overlay loader. More... | |
class | TextLoader |
Overlay loader. More... | |
Public Types | |
typedef OverlayPtrArray::iterator | iterator |
typedef OverlayPtrArray::const_iterator | const_iterator |
Public Member Functions | |
C3D_API | Overlay (Engine &p_engine, eOVERLAY_TYPE p_type) |
Constructor. More... | |
C3D_API | Overlay (Engine &p_engine, eOVERLAY_TYPE p_type, SceneSPtr p_scene, OverlaySPtr p_parent) |
Constructor. More... | |
virtual C3D_API | ~Overlay () |
Destructor. More... | |
virtual C3D_API void | Render (Castor::Size const &p_size) |
Draws the overlay. More... | |
C3D_API bool | AddChild (OverlaySPtr p_overlay) |
Adds a child to the overlay. More... | |
C3D_API int | GetChildsCount (int p_level) const |
Retrieves the childs count at given level. More... | |
C3D_API PanelOverlaySPtr | GetPanelOverlay () const |
Retrieves the panel overlay. More... | |
C3D_API BorderPanelOverlaySPtr | GetBorderPanelOverlay () const |
Retrieves the border panel overlay. More... | |
C3D_API TextOverlaySPtr | GetTextOverlay () const |
Retrieves the text overlay. More... | |
C3D_API bool | IsVisible () const |
Retrieves the visibility status. More... | |
OverlayCategorySPtr | GetCategory () const |
Retrieves the overlay category. More... | |
Castor::Position | GetAbsolutePosition (Castor::Size const &p_size) const |
Retrieves the absolute overlay position, in pixels. More... | |
Castor::Size | GetAbsoluteSize (Castor::Size const &p_size) const |
Retrieves the absolute overlay size, in pixels. More... | |
Castor::Point2d | GetAbsolutePosition () const |
Retrieves the absolute overlay position. More... | |
Castor::Point2d | GetAbsoluteSize () const |
Retrieves the absolute overlay size. More... | |
bool | IsSizeChanged () const |
bool | IsPositionChanged () const |
Castor::String const & | GetName () const |
Retrieves the overlay name. More... | |
Castor::Point2d const & | GetPosition () const |
Retrieves the overlay position. More... | |
Castor::Point2d const & | GetSize () const |
Retrieves the overlay size. More... | |
Castor::Position const & | GetPixelPosition () const |
Retrieves the overlay position. More... | |
Castor::Size const & | GetPixelSize () const |
Retrieves the overlay size. More... | |
eOVERLAY_TYPE | GetType () const |
Retrieves the overlay type. More... | |
OverlaySPtr | GetParent () const |
Retrieves the parent overlay. More... | |
MaterialSPtr | GetMaterial () const |
Retrieves the material. More... | |
Castor::Point2d & | GetPosition () |
Retrieves the overlay position. More... | |
Castor::Point2d & | GetSize () |
Retrieves the overlay size. More... | |
Castor::Position & | GetPixelPosition () |
Retrieves the overlay position. More... | |
Castor::Size & | GetPixelSize () |
Retrieves the overlay size. More... | |
SceneSPtr | GetScene () const |
Retrieves the parent scene. More... | |
int | GetIndex () const |
Retrieves the index. More... | |
int | GetLevel () const |
Retrieves the level. More... | |
uint32_t | GetChildsCount () const |
Retrieves the childs count. More... | |
iterator | begin () |
Retrieves an iterator to the first child. More... | |
const_iterator | begin () const |
Retrieves an iterator to the first child. More... | |
iterator | end () |
Retrieves an iterator to after the last child. More... | |
const_iterator | end () const |
Retrieves an iterator to after the last child. More... | |
OverlayManager const & | GetOverlayManager () const |
Retrieves the overlay manager. More... | |
OverlayManager & | GetOverlayManager () |
Retrieves the overlay manager. More... | |
void | SetVisible (bool val) |
Sets the visibility status. More... | |
void | SetOrder (int p_index, int p_level) |
Sets the overlay order. More... | |
void | SetMaterial (MaterialSPtr p_pMaterial) |
Sets the material. More... | |
void | SetPosition (Castor::Point2d const &p_position) |
Sets the relative position of the overlay. More... | |
void | SetSize (Castor::Point2d const &p_size) |
Sets the relative size of the overlay. More... | |
void | SetPixelPosition (Castor::Position const &p_position) |
Sets the relative position of the overlay. More... | |
void | SetPixelSize (Castor::Size const &p_size) |
Sets the relative size of the overlay. More... | |
void | SetName (Castor::String const &p_name) |
Sets the name of the overlay. More... | |
Protected Attributes | |
OverlayManager & | m_manager |
The overlay manager. More... | |
Castor::String | m_name |
The overlay name. More... | |
OverlayWPtr | m_parent |
The parent overlay, if any. More... | |
OverlayPtrArray | m_overlays |
The childs. More... | |
OverlayCategorySPtr | m_category |
The overlay category. More... | |
SceneWPtr | m_pScene |
The parent scene. More... | |
RenderSystem * | m_renderSystem |
The render system. More... | |
The overlay class.
typedef OverlayPtrArray::const_iterator Castor3D::Overlay::const_iterator |
typedef OverlayPtrArray::iterator Castor3D::Overlay::iterator |
C3D_API Castor3D::Overlay::Overlay | ( | Engine & | p_engine, |
eOVERLAY_TYPE | p_type | ||
) |
Constructor.
[in] | p_engine | The engine |
[in] | p_type | The overlay type |
C3D_API Castor3D::Overlay::Overlay | ( | Engine & | p_engine, |
eOVERLAY_TYPE | p_type, | ||
SceneSPtr | p_scene, | ||
OverlaySPtr | p_parent | ||
) |
Constructor.
[in] | p_engine | The engine |
[in] | p_type | The overlay type |
[in] | p_scene | The scene holding the overlay |
[in] | p_parent | The parent overlay (if any) |
Constructeur
[in] | p_engine | Le moteur |
[in] | p_type | Le type de l'incrustation |
[in] | p_scene | La scène parent |
[in] | p_parent | L'incrustation parente |
|
virtual |
Destructor.
C3D_API bool Castor3D::Overlay::AddChild | ( | OverlaySPtr | p_overlay | ) |
Adds a child to the overlay.
[in] | p_overlay | The overlay to add |
true
if successful, false if not
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Retrieves the absolute overlay position, in pixels.
[in] | p_size | The screen size |
References m_category.
|
inline |
|
inline |
Retrieves the absolute overlay size, in pixels.
[in] | p_size | The screen size |
References m_category.
|
inline |
C3D_API BorderPanelOverlaySPtr Castor3D::Overlay::GetBorderPanelOverlay | ( | ) | const |
Retrieves the border panel overlay.
|
inline |
C3D_API int Castor3D::Overlay::GetChildsCount | ( | int | p_level | ) | const |
Retrieves the childs count at given level.
[in] | p_level | The wanted level |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API PanelOverlaySPtr Castor3D::Overlay::GetPanelOverlay | ( | ) | const |
Retrieves the panel overlay.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
C3D_API TextOverlaySPtr Castor3D::Overlay::GetTextOverlay | ( | ) | const |
Retrieves the text overlay.
|
inline |
|
inline |
true
if this overlay's or one of its parents' position has changed. References m_category.
|
inline |
true
if this overlay's or one of its parents' size has changed. References m_category.
C3D_API bool Castor3D::Overlay::IsVisible | ( | ) | const |
Retrieves the visibility status.
|
virtual |
Draws the overlay.
[in] | p_size | The render target size |
|
inline |
|
inline |
|
inline |
Sets the overlay order.
[in] | p_index | The new index |
[in] | p_level | The new level |
References m_category.
|
inline |
Sets the relative position of the overlay.
[in] | p_position | The new position |
References m_category.
|
inline |
|
inline |
Sets the relative position of the overlay.
[in] | p_position | The new position |
References m_category.
|
inline |
|
inline |
|
protected |
The overlay category.
Referenced by GetAbsolutePosition(), GetAbsoluteSize(), GetCategory(), GetIndex(), GetLevel(), GetMaterial(), GetPixelPosition(), GetPixelSize(), GetPosition(), GetSize(), GetType(), IsPositionChanged(), IsSizeChanged(), SetMaterial(), SetOrder(), SetPixelPosition(), SetPixelSize(), SetPosition(), SetSize(), and SetVisible().
|
protected |
The overlay manager.
Referenced by GetOverlayManager().
|
protected |
|
protected |
The childs.
Referenced by begin(), end(), and GetChildsCount().
|
protected |
The parent overlay, if any.
Referenced by GetParent().
|
protected |
The parent scene.
Referenced by GetScene().
|
protected |
The render system.