com.jme.renderer.pass
Class OutlinePass

java.lang.Object
  extended by com.jme.renderer.pass.Pass
      extended by com.jme.renderer.pass.RenderPass
          extended by com.jme.renderer.pass.OutlinePass
All Implemented Interfaces:
java.io.Serializable

public class OutlinePass
extends RenderPass

Started Date: Jan 21, 2006
This Pass can be used for drawing an outline around geometry objects. It does this by first drawing the geometry as normal, and then drawing an outline using the geometry's wireframe.

Version:
$Id: OutlinePass.java 4131 2009-03-19 20:15:28Z blaine.dev $
Author:
Beskid Lucian Cristian, Tijl Houtbeckers (only minor changes / extra javadoc)
See Also:
Serialized Form

Field Summary
static float DEFAULT_LINE_WIDTH
           
static ColorRGBA DEFAULT_OUTLINE_COLOR
           
 
Fields inherited from class com.jme.renderer.pass.Pass
context, enabled, passStates, savedStates, spatials, zFactor, zOffset
 
Constructor Summary
OutlinePass()
           
 
Method Summary
 void doRender(Renderer renderer)
           
 BlendState getBlendState()
           
 ColorRGBA getOutlineColor()
           
 float getOutlineWidth()
           
 void setBlendState(BlendState alphaState)
           
 void setOutlineColor(ColorRGBA outlineColor)
           
 void setOutlineWidth(float width)
           
 
Methods inherited from class com.jme.renderer.pass.Pass
add, applyPassStates, cleanUp, clearPassState, clearPassState, clearPassStates, contains, doUpdate, get, getRenderState, getRenderState, getZFactor, getZOffset, isEnabled, remove, removeAll, renderPass, resetOldStates, setEnabled, setPassState, setZFactor, setZOffset, size, updatePass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LINE_WIDTH

public static final float DEFAULT_LINE_WIDTH
See Also:
Constant Field Values

DEFAULT_OUTLINE_COLOR

public static final ColorRGBA DEFAULT_OUTLINE_COLOR
Constructor Detail

OutlinePass

public OutlinePass()
Method Detail

doRender

public void doRender(Renderer renderer)
Overrides:
doRender in class RenderPass

setOutlineWidth

public void setOutlineWidth(float width)

getOutlineWidth

public float getOutlineWidth()

setOutlineColor

public void setOutlineColor(ColorRGBA outlineColor)

getOutlineColor

public ColorRGBA getOutlineColor()

getBlendState

public BlendState getBlendState()

setBlendState

public void setBlendState(BlendState alphaState)