com.tensegrity.graphics.render
Class DefaultRenderer

java.lang.Object
  extended bycom.tensegrity.graphics.render.DefaultRenderer
All Implemented Interfaces:
Renderer

public class DefaultRenderer
extends java.lang.Object
implements Renderer

The DefaultRenderer class is the default implementation of the Renderer interface.

This class renders the object described through the given rendering data as it is but with respect to the current configuration.

Version:
$Id: DefaultRenderer.java,v 1.18 2004/09/29 10:30:44 BurkhardWick Exp $
Author:
M. Kegel

Field Summary
 
Fields inherited from interface com.tensegrity.graphics.render.Renderer
RENDERERFLAG_PROCESS_PORTS_ONLY
 
Constructor Summary
DefaultRenderer()
          Constructor for DefaultRenderer.
 
Method Summary
 void adjustData(RenderingData renderdata)
          This method modifies the RenderingData instance given by renderdata according to the Renderer instance and the configuration of it.
 RendererConfiguration getConfiguration()
          Returns the current configuration of the Renderer.
 void render(RenderingData renderdata, Device device)
          This method renders the RenderingData object given by renderdata onto the Device given by device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRenderer

public DefaultRenderer()
Constructor for DefaultRenderer.

Method Detail

getConfiguration

public RendererConfiguration getConfiguration()
Description copied from interface: Renderer
Returns the current configuration of the Renderer. The configuration is represented by a RendererConfiguration object. To get more informations about this kind of object take a look at the documentation of RendererConfiguration.

Specified by:
getConfiguration in interface Renderer
Returns:
RendererConfiguration the current configuration of the Renderer

render

public void render(RenderingData renderdata,
                   Device device)
Description copied from interface: Renderer
This method renders the RenderingData object given by renderdata onto the Device given by device. The rendering process is done according to the Renderer instance and the configuration of it.

Specified by:
render in interface Renderer
Parameters:
renderdata - the RenderingData instance to render
device - the Device instance to render onto

adjustData

public void adjustData(RenderingData renderdata)
Description copied from interface: Renderer
This method modifies the RenderingData instance given by renderdata according to the Renderer instance and the configuration of it.

Specified by:
adjustData in interface Renderer
Parameters:
renderdata - the RenderingData instance to modify


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