public

Inheritance Graph

graph BT
	ColorCubeRenderer
	ColorCubeRenderer --> NodeRendererState
	click ColorCubeRenderer "classMinSG_1_1ColorCubeRenderer"
	click NodeRendererState "classMinSG_1_1NodeRendererState"

Description

color cube renderer, which is based on color-cube rendering approach. Its implementation here slightly differs from that described in the paper (see below). Moreover any scene graph ( Node ) can be rendered with our color cube renderer, because our implementation uses nodes’ absolute bounding boxes as their color cubes (this requires a different processing approach for inner nodes, see ColorCube.cpp for more details).

Note: the various lighting states ( LightingState ) or shader ( ShaderState ) should be enabled before current ColorCubeRenderer , otherwise the drawing of color cubes will ignore those lights and shaders enabled after current ColorCubeRenderer .

Author: Paul Justus

Date: 2010-07-06

See also: Bradford Chamberlain. “Fast rendering of complex environments using a spatial hierarchy” Proceedings of the conference on Graphics interface ‘96, Pages: 132-141, Toronto, Ontario, Canada , 1996

Public Functions

   
   
  ColorCubeRenderer()
[ctor]
   
  ColorCubeRenderer( Util::StringIdentifier channel)
[ctor]
   
bool isHighlightEnabled() const
returns if color cube highlighting is enabled (for debugging)
   
void setHighlightEnabled(bool b)
set whether color cube highlighting is enabled (for debugging)
   
NodeRendererResult displayNode( FrameContext & context, Node * node, const RenderParam & rp)
   
ColorCubeRenderer * clone() const
Create a duplicate of this State object.

Documentation

function
MinSG::ColorCubeRenderer::ColorCubeRenderer

public
   
   
ColorCubeRenderer( )

[ctor]

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:78


function
MinSG::ColorCubeRenderer::ColorCubeRenderer

public
     
     
ColorCubeRenderer( Util::StringIdentifier channel )

[ctor]

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:81


function
MinSG::ColorCubeRenderer::isHighlightEnabled

public const inline
   
   
bool isHighlightEnabled( ) const

returns if color cube highlighting is enabled (for debugging)

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:84


function
MinSG::ColorCubeRenderer::setHighlightEnabled

public inline
     
     
void setHighlightEnabled( bool b )

set whether color cube highlighting is enabled (for debugging)

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:87


function
MinSG::ColorCubeRenderer::displayNode

public virtual
     
     
NodeRendererResult displayNode( FrameContext & context,
  Node * node,
  const RenderParam & rp
)    

Node renderer function. This function is registered at the configured channel when the state is activated. This function has to be implemented by subclasses.

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:89


function
MinSG::ColorCubeRenderer::clone

public const virtual
   
   
ColorCubeRenderer * clone( ) const

Create a duplicate of this State object.

Defined in MinSG/Ext/ColorCubes/ColorCubeRenderer.h:91