com.jme3.post.filters
クラス CartoonEdgeFilter

java.lang.Object
  上位を拡張 com.jme3.post.Filter
      上位を拡張 com.jme3.post.filters.CartoonEdgeFilter
すべての実装されたインタフェース:
Savable

public class CartoonEdgeFilter
extends Filter

Applies a cartoon-style edge detection filter to all objects in the scene.


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
CartoonEdgeFilter()
          Creates a CartoonEdgeFilter
 
メソッドの概要
 float getDepthSensitivity()
          Return the depth sensitivity
for more details see setDepthSensitivity(float depthSensitivity)
 float getDepthThreshold()
          returns the depth threshold
for more details see setDepthThreshold(float depthThreshold)
 ColorRGBA getEdgeColor()
          returns the edge color
 float getEdgeIntensity()
          returns the edge intensity
for more details see setEdgeIntensity(float edgeIntensity)
 float getEdgeWidth()
          returns the width of the edges
 float getNormalSensitivity()
          returns the normals sensitivity
form more details see setNormalSensitivity(float normalSensitivity)
 float getNormalThreshold()
          returns the normal threshold
for more details see setNormalThreshold(float normalThreshold)
 void setDepthSensitivity(float depthSensitivity)
          sets the depth sensitivity
defines how much depth will influence edges, default is 10
 void setDepthThreshold(float depthThreshold)
          sets the depth threshold
Defines at what threshold of difference of depth an edge is outlined default is 0.1f
 void setEdgeColor(ColorRGBA edgeColor)
          Sets the edge color, default is black
 void setEdgeIntensity(float edgeIntensity)
          sets the edge intensity
Defineshow visilble will be the outlined edges
 void setEdgeWidth(float edgeWidth)
          sets the witdh of the edge in pixels default is 1
 void setNormalSensitivity(float normalSensitivity)
          sets the normals sensitivity default is 1
 void setNormalThreshold(float normalThreshold)
          sets the normal threshold default is 0.5
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, read, setEnabled, setName, write
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CartoonEdgeFilter

public CartoonEdgeFilter()
Creates a CartoonEdgeFilter

メソッドの詳細

getDepthSensitivity

public float getDepthSensitivity()
Return the depth sensitivity
for more details see setDepthSensitivity(float depthSensitivity)

戻り値:

setDepthSensitivity

public void setDepthSensitivity(float depthSensitivity)
sets the depth sensitivity
defines how much depth will influence edges, default is 10

パラメータ:
depthSensitivity -

getDepthThreshold

public float getDepthThreshold()
returns the depth threshold
for more details see setDepthThreshold(float depthThreshold)

戻り値:

setDepthThreshold

public void setDepthThreshold(float depthThreshold)
sets the depth threshold
Defines at what threshold of difference of depth an edge is outlined default is 0.1f

パラメータ:
depthThreshold -

getEdgeIntensity

public float getEdgeIntensity()
returns the edge intensity
for more details see setEdgeIntensity(float edgeIntensity)

戻り値:

setEdgeIntensity

public void setEdgeIntensity(float edgeIntensity)
sets the edge intensity
Defineshow visilble will be the outlined edges

パラメータ:
edgeIntensity -

getEdgeWidth

public float getEdgeWidth()
returns the width of the edges

戻り値:

setEdgeWidth

public void setEdgeWidth(float edgeWidth)
sets the witdh of the edge in pixels default is 1

パラメータ:
edgeWidth -

getNormalSensitivity

public float getNormalSensitivity()
returns the normals sensitivity
form more details see setNormalSensitivity(float normalSensitivity)

戻り値:

setNormalSensitivity

public void setNormalSensitivity(float normalSensitivity)
sets the normals sensitivity default is 1

パラメータ:
normalSensitivity -

getNormalThreshold

public float getNormalThreshold()
returns the normal threshold
for more details see setNormalThreshold(float normalThreshold)

戻り値:

setNormalThreshold

public void setNormalThreshold(float normalThreshold)
sets the normal threshold default is 0.5

パラメータ:
normalThreshold -

getEdgeColor

public ColorRGBA getEdgeColor()
returns the edge color

戻り値:

setEdgeColor

public void setEdgeColor(ColorRGBA edgeColor)
Sets the edge color, default is black

パラメータ:
edgeColor -