Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Dali::Internal::SceneGraph::RenderItem Class Reference

A render-item is a renderer & modelView matrix pair. More...

#include <render-item.h>

Collaboration diagram for Dali::Internal::SceneGraph::RenderItem:
Collaboration graph
[legend]

Public Member Functions

 ~RenderItem ()
 Non-virtual destructor; RenderItem is not suitable as a base class. More...
 
void operator delete (void *ptr)
 Overriden delete operator. More...
 
void Reset ()
 Reset the render-item. More...
 
Render::RendererGetRenderer () const
 Retrieve the renderer. More...
 
void SetRenderer (Render::Renderer *renderer)
 Set the renderer. More...
 
void SetNode (Node *node)
 Set the node. More...
 
const NodeGetNode () const
 Retrieve the node. More...
 
MatrixGetModelViewMatrix ()
 Retrieve the modelView matrix. More...
 
const MatrixGetModelViewMatrix () const
 Retrieve the modelView matrix. More...
 
int GetDepthIndex () const
 Retrieve the depth index. More...
 
void SetDepthIndex (int depthIndex)
 Set the depth index. More...
 
void SetIsOpaque (bool isOpaque)
 Set if the RenderItem is opaque. More...
 
bool IsOpaque () const
 Check if the RenderItem is opaque. More...
 

Static Public Member Functions

static RenderItemNew ()
 Construct a new RenderItem. More...
 

Private Member Functions

 RenderItem ()
 Private constructor. More...
 
 RenderItem (const RenderItem &item)
 
RenderItemoperator= (const RenderItem &item)
 

Private Attributes

Matrix mModelViewMatrix
 
Render::RenderermRenderer
 
NodemNode
 
int mDepthIndex
 
bool mIsOpaque:1
 

Detailed Description

A render-item is a renderer & modelView matrix pair.

Definition at line 48 of file render-item.h.

Constructor & Destructor Documentation

Dali::Internal::SceneGraph::RenderItem::~RenderItem ( )

Non-virtual destructor; RenderItem is not suitable as a base class.

Definition at line 53 of file render-item.cpp.

Dali::Internal::SceneGraph::RenderItem::RenderItem ( )
private

Private constructor.

See RenderItem::New

Definition at line 44 of file render-item.cpp.

Referenced by New().

Here is the caller graph for this function:

Dali::Internal::SceneGraph::RenderItem::RenderItem ( const RenderItem item)
private

Member Function Documentation

int Dali::Internal::SceneGraph::RenderItem::GetDepthIndex ( ) const
inline

Retrieve the depth index.

Definition at line 114 of file render-item.h.

References mDepthIndex.

Referenced by Dali::Internal::SceneGraph::CompareItems(), and Dali::Internal::SceneGraph::SortRenderItems().

Here is the caller graph for this function:

Matrix & Dali::Internal::SceneGraph::RenderItem::GetModelViewMatrix ( )

Retrieve the modelView matrix.

Returns
The modelView matrix.

Definition at line 82 of file render-item.cpp.

References mModelViewMatrix.

Referenced by Dali::Internal::SceneGraph::AddRendererToRenderList(), Dali::Internal::Render::PrintRenderItem(), Dali::Internal::Render::ProcessRenderList(), and Dali::Internal::SceneGraph::SortRenderItems().

Here is the caller graph for this function:

const Matrix & Dali::Internal::SceneGraph::RenderItem::GetModelViewMatrix ( ) const

Retrieve the modelView matrix.

Returns
The modelView matrix.

Definition at line 87 of file render-item.cpp.

References mModelViewMatrix.

const Node& Dali::Internal::SceneGraph::RenderItem::GetNode ( ) const
inline

Retrieve the node.

Returns
The node

Definition at line 95 of file render-item.h.

References mNode.

Referenced by Dali::Internal::Render::ProcessRenderList().

Here is the caller graph for this function:

Render::Renderer & Dali::Internal::SceneGraph::RenderItem::GetRenderer ( ) const

Retrieve the renderer.

Returns
The renderer.

Definition at line 77 of file render-item.cpp.

References mRenderer.

Referenced by Dali::Internal::Render::ProcessRenderList(), and Dali::Internal::SceneGraph::SortRenderItems().

Here is the caller graph for this function:

bool Dali::Internal::SceneGraph::RenderItem::IsOpaque ( ) const
inline

Check if the RenderItem is opaque.

Returns
True if it is opaque, false otherwise

Definition at line 134 of file render-item.h.

References mIsOpaque.

Referenced by Dali::Internal::SceneGraph::AddColorRenderers(), Dali::Internal::SceneGraph::CompareItems3D(), and Dali::Internal::Render::ProcessRenderList().

Here is the caller graph for this function:

RenderItem * Dali::Internal::SceneGraph::RenderItem::New ( )
static

Construct a new RenderItem.

Definition at line 39 of file render-item.cpp.

References anonymous_namespace{render-item.cpp}::gRenderItemPool, and RenderItem().

Referenced by Dali::Internal::SceneGraph::RenderList::GetNextFreeItem().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderItem::operator delete ( void *  ptr)

Overriden delete operator.

Deletes the RenderItem from its global memory pool

Definition at line 57 of file render-item.cpp.

References anonymous_namespace{render-item.cpp}::gRenderItemPool.

RenderItem& Dali::Internal::SceneGraph::RenderItem::operator= ( const RenderItem item)
private
void Dali::Internal::SceneGraph::RenderItem::Reset ( )

Reset the render-item.

Definition at line 62 of file render-item.cpp.

References mRenderer.

Referenced by Dali::Internal::SceneGraph::RenderList::GetNextFreeItem().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderItem::SetDepthIndex ( int  depthIndex)

Set the depth index.

Definition at line 92 of file render-item.cpp.

References mDepthIndex.

Referenced by Dali::Internal::SceneGraph::AddRendererToRenderList().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderItem::SetIsOpaque ( bool  isOpaque)

Set if the RenderItem is opaque.

Parameters
[in]isOpaquetrue if the RenderItem is opaque, false otherwise

Definition at line 97 of file render-item.cpp.

References mIsOpaque.

Referenced by Dali::Internal::SceneGraph::AddRendererToRenderList().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderItem::SetNode ( Node node)

Set the node.

Parameters
[in]nodeThe node

Definition at line 72 of file render-item.cpp.

References mNode.

Referenced by Dali::Internal::SceneGraph::AddRendererToRenderList().

Here is the caller graph for this function:

void Dali::Internal::SceneGraph::RenderItem::SetRenderer ( Render::Renderer renderer)

Set the renderer.

Parameters
[in]rendererThe renderer

Definition at line 67 of file render-item.cpp.

References mRenderer.

Referenced by Dali::Internal::SceneGraph::AddRendererToRenderList().

Here is the caller graph for this function:

Member Data Documentation

int Dali::Internal::SceneGraph::RenderItem::mDepthIndex
private

Definition at line 153 of file render-item.h.

Referenced by GetDepthIndex(), and SetDepthIndex().

bool Dali::Internal::SceneGraph::RenderItem::mIsOpaque
private

Definition at line 154 of file render-item.h.

Referenced by IsOpaque(), and SetIsOpaque().

Matrix Dali::Internal::SceneGraph::RenderItem::mModelViewMatrix
private

Definition at line 150 of file render-item.h.

Referenced by GetModelViewMatrix().

Node* Dali::Internal::SceneGraph::RenderItem::mNode
private

Definition at line 152 of file render-item.h.

Referenced by GetNode(), and SetNode().

Render::Renderer* Dali::Internal::SceneGraph::RenderItem::mRenderer
private

Definition at line 151 of file render-item.h.

Referenced by GetRenderer(), Reset(), and SetRenderer().


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali