com.tensegrity.graphics.render
Interface RendererChain

All Superinterfaces:
Renderer
All Known Implementing Classes:
DefaultRendererChain

public interface RendererChain
extends Renderer

Interface RendererChain defines a component which concatenates two Renderer objects. In order to fulfill this responsibility, a RendererChain must be provided with and return source and target Rendererinstances.

The source Renderer is invoked first and then the target Renderer is called. The concatenated Renderer objects may of course be instances of the RendererChain interface, so that a deeper Renderer chain may be built.

With the exception of the final instance, all Renderer objects in the chain have their adjustData method invoked. The last Renderer, however, has its render() method called so that it renders the given RenderingData onto the specified Device.

Version:
$Id: RendererChain.java,v 1.7 2005/11/11 12:31:13 KevinCVS Exp $
Author:
MichaelKegel

Field Summary
 
Fields inherited from interface com.tensegrity.graphics.render.Renderer
RENDERERFLAG_PROCESS_PORTS_ONLY
 
Method Summary
 Renderer getSourceRenderer()
          Returns the actual source Renderer of this RendererChain.
 Renderer getTargetRenderer()
          Returns the actual target Renderer of this RendererChain.
 void setSourceRenderer(Renderer renderer)
          Sets the source Renderer of this RendererChain to the Renderer given by renderer.
 void setTargetRenderer(Renderer renderer)
          Sets the target Renderer of this RendererChain to the Renderer given by renderer.
 
Methods inherited from interface com.tensegrity.graphics.render.Renderer
adjustData, getConfiguration, render
 

Method Detail

getSourceRenderer

public Renderer getSourceRenderer()
Returns the actual source Renderer of this RendererChain. The source Renderer is the Renderer instance that is envoked before the target Renderer.

Returns:
Renderer instance that is actually used as source Renderer

setSourceRenderer

public void setSourceRenderer(Renderer renderer)
Sets the source Renderer of this RendererChain to the Renderer given by renderer. The source Renderer is the Renderer instance that is invoked before the target Renderer.

Parameters:
renderer - the new Renderer instance that should be used as source Renderer

getTargetRenderer

public Renderer getTargetRenderer()
Returns the actual target Renderer of this RendererChain. The target Renderer is the Renderer instance that is envoked after the source Renderer.

Returns:
Renderer instance that is actually used as target Renderer

setTargetRenderer

public void setTargetRenderer(Renderer renderer)
Sets the target Renderer of this RendererChain to the Renderer given by renderer. The target Renderer is the Renderer instance that is envoked after the source Renderer.

Parameters:
renderer - the new Renderer instance that should be used as target Renderer


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.