Package com.jme3.terrain.noise.filter
Class AbstractFilter
java.lang.Object
com.jme3.terrain.noise.filter.AbstractFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
FilteredBasis
,HydraulicErodeFilter
,IterativeFilter
,OptimizedErode
,PerturbFilter
,SmoothFilter
,ThermalErodeFilter
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPostFilter
(Filter filter) addPreFilter
(Filter filter) doFilter
(float sx, float sy, float base, FloatBuffer data, int size) abstract FloatBuffer
filter
(float sx, float sy, float base, FloatBuffer buffer, int size) int
getMargin
(int size, int margin) boolean
void
setEnabled
(boolean enabled)
-
Field Details
-
preFilters
-
postFilters
-
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
addPreFilter
- Specified by:
addPreFilter
in interfaceFilter
-
addPostFilter
- Specified by:
addPostFilter
in interfaceFilter
-
doFilter
-
filter
-
getMargin
public int getMargin(int size, int margin) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-