com.jme3.post.filters
クラス CrossHatchFilter

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

public class CrossHatchFilter
extends Filter


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
CrossHatchFilter()
          Creates a crossHatch filter
CrossHatchFilter(ColorRGBA lineColor, ColorRGBA paperColor)
          Creates a crossHatch filter
 
メソッドの概要
 float getColorInfluenceLine()
          Returns current influence of image colors on lines
 float getColorInfluencePaper()
          Returns current influence of image colors on paper background
 float getFillValue()
          Returns line/paper color ratio for blobs
 ColorRGBA getLineColor()
          Returns line color
 float getLineDistance()
          Returns minimum distance between lines
 float getLineThickness()
          Returns the thickness of the lines drawn
 float getLuminance1()
          Returns treshold for lines 1
 float getLuminance2()
          Returns treshold for lines 2
 float getLuminance3()
          Returns treshold for lines 3
 float getLuminance4()
          Returns treshold for lines 4
 float getLuminance5()
          Returns treshold for blobs
 ColorRGBA getPaperColor()
          Returns paper background color
 void setColorInfluenceLine(float colorInfluenceLine)
          Sets color influence of original image on lines drawn
 void setColorInfluencePaper(float colorInfluencePaper)
          Sets color influence of original image on non-line areas
 void setFillValue(float fillValue)
          Sets line/paper color ratio for areas with values < luminance5, really dark areas get no lines but a filled blob instead
 void setLineColor(ColorRGBA lineColor)
          Sets color used to draw lines
 void setLineDistance(float lineDistance)
          Sets minimum distance between lines drawn Primary lines are drawn at 2*lineDistance Secondary lines are drawn at lineDistance
 void setLineThickness(float lineThickness)
          Sets the thickness of lines drawn
 void setLuminanceLevels(float luminance1, float luminance2, float luminance3, float luminance4, float luminance5)
          Sets minimum luminance levels for lines drawn
 void setPaperColor(ColorRGBA paperColor)
          Sets color used as background
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, read, setEnabled, setName, write
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CrossHatchFilter

public CrossHatchFilter()
Creates a crossHatch filter


CrossHatchFilter

public CrossHatchFilter(ColorRGBA lineColor,
                        ColorRGBA paperColor)
Creates a crossHatch filter

パラメータ:
lineColor - the colors of the lines
paperColor - the paper color
メソッドの詳細

setLineColor

public void setLineColor(ColorRGBA lineColor)
Sets color used to draw lines

パラメータ:
lineColor -

setPaperColor

public void setPaperColor(ColorRGBA paperColor)
Sets color used as background

パラメータ:
paperColor -

setColorInfluenceLine

public void setColorInfluenceLine(float colorInfluenceLine)
Sets color influence of original image on lines drawn

パラメータ:
colorInfluenceLine -

setColorInfluencePaper

public void setColorInfluencePaper(float colorInfluencePaper)
Sets color influence of original image on non-line areas

パラメータ:
colorInfluencePaper -

setFillValue

public void setFillValue(float fillValue)
Sets line/paper color ratio for areas with values < luminance5, really dark areas get no lines but a filled blob instead

パラメータ:
fillValue -

setLuminanceLevels

public void setLuminanceLevels(float luminance1,
                               float luminance2,
                               float luminance3,
                               float luminance4,
                               float luminance5)
Sets minimum luminance levels for lines drawn

パラメータ:
luminance1 - Top-left to down right 1
luminance2 - Top-right to bottom left 1
luminance3 - Top-left to down right 2
luminance4 - Top-right to bottom left 2
luminance5 - Blobs

setLineThickness

public void setLineThickness(float lineThickness)
Sets the thickness of lines drawn

パラメータ:
lineThickness -

setLineDistance

public void setLineDistance(float lineDistance)
Sets minimum distance between lines drawn Primary lines are drawn at 2*lineDistance Secondary lines are drawn at lineDistance

パラメータ:
lineDistance -

getLineColor

public ColorRGBA getLineColor()
Returns line color

戻り値:

getPaperColor

public ColorRGBA getPaperColor()
Returns paper background color

戻り値:

getColorInfluenceLine

public float getColorInfluenceLine()
Returns current influence of image colors on lines


getColorInfluencePaper

public float getColorInfluencePaper()
Returns current influence of image colors on paper background


getFillValue

public float getFillValue()
Returns line/paper color ratio for blobs


getLineThickness

public float getLineThickness()
Returns the thickness of the lines drawn


getLineDistance

public float getLineDistance()
Returns minimum distance between lines


getLuminance1

public float getLuminance1()
Returns treshold for lines 1


getLuminance2

public float getLuminance2()
Returns treshold for lines 2


getLuminance3

public float getLuminance3()
Returns treshold for lines 3


getLuminance4

public float getLuminance4()
Returns treshold for lines 4


getLuminance5

public float getLuminance5()
Returns treshold for blobs