The ILayerState graph node interface. More...

#include "murl_graph_i_layer_state.h"

Inheritance diagram for Murl::Graph::ILayerState:

Public Member Functions

virtual INodeGetNodeInterface ()=0
 Get the mutable Graph::INode interface. More...
 
virtual const INodeGetNodeInterface () const =0
 Get the constant Graph::INode interface. More...
 
virtual Bool SetLayerIndex (UInt32 layerIndex)=0
 Set the current layer index. More...
 
virtual UInt32 GetLayerIndex () const =0
 Get the current layer index. More...
 

Detailed Description

The ILayerState graph node interface.

To allow finer control over the order in which geometry is rendered within an active Graph::ICamera, it is possible to select an individual render layer by using a Graph::ILayerState node with a given index. Layers with lower indices (default 0) are rendered first, i.e. their objects will be overdrawn by objects contained in layers with higher indices.

In any case, if one layer contains both solid and (semi-)transparent objects, the solid ones are always rendered before the transparent ones. If this order is to be reversed, all solid objects must be put to a layer with an index higher than the current one.

Member Function Documentation

◆ GetNodeInterface() [1/2]

virtual INode* Murl::Graph::ILayerState::GetNodeInterface ( )
pure virtual

Get the mutable Graph::INode interface.

This method returns a mutable pointer to the node's Graph::INode interface, to be able to query or modify common node properties such as active state, visibility or ID.

Returns
The mutable Graph::INode interface, or null if not available

◆ GetNodeInterface() [2/2]

virtual const INode* Murl::Graph::ILayerState::GetNodeInterface ( ) const
pure virtual

Get the constant Graph::INode interface.

This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Returns
The constant Graph::INode interface, or null if not available

◆ SetLayerIndex()

virtual Bool Murl::Graph::ILayerState::SetLayerIndex ( UInt32  layerIndex)
pure virtual

Set the current layer index.

Parameters
layerIndexThe current layer index to set.
Returns
true if successful.

◆ GetLayerIndex()

virtual UInt32 Murl::Graph::ILayerState::GetLayerIndex ( ) const
pure virtual

Get the current layer index.

Returns
The current layer index.

The documentation for this interface was generated from the following file:
  • murl_graph_i_layer_state.h


Copyright © 2011-2024 Spraylight GmbH.