|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.painter.noise.WoodFilter
public class WoodFilter
Noise filter that produces wood-like distribution. This class is part of officially supported API.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jvnet.substance.painter.noise.NoiseFilter |
---|
NoiseFilter.TrigKind |
Field Summary | |
---|---|
protected double |
factor
Stretch factor. |
Constructor Summary | |
---|---|
WoodFilter()
Creates new wood filter with default stretch factor. |
|
WoodFilter(double factor)
Create new wood filter. |
Method Summary | |
---|---|
double |
apply(double x,
double y,
double z,
double origValue)
Applies filter on the noise at the specified location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double factor
Constructor Detail |
---|
public WoodFilter()
public WoodFilter(double factor)
factor
- Stretch factor.Method Detail |
---|
public double apply(double x, double y, double z, double origValue)
NoiseFilter
apply
in interface NoiseFilter
x
- X coordinate.y
- Y coordinate.z
- Z coordinate.origValue
- The original noise value.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |