net.sourceforge.jiu.geometry
Class ResampleFilter
java.lang.Object
net.sourceforge.jiu.geometry.ResampleFilter
public abstract class ResampleFilter
extends java.lang.Object
Abstract base class for filters to be used with
the
Resample
operation.
abstract float | apply(float value) - Returns the weight of the sample at the distance given
by the argument value.
|
abstract String | getName() - Return the name of this filter.
|
abstract float | getRecommendedSamplingRadius() - Returns a recommendation for the sampling radius to
be used with this filter.
|
float | getSamplingRadius() - Returns the sampling radius of this object.
|
void | setSamplingRadius(float newValue) - Sets the sampling radius to a new value.
|
samplingRadius
private float samplingRadius
ResampleFilter
public ResampleFilter()
apply
public abstract float apply(float value)
Returns the weight of the sample at the distance given
by the argument value.
getName
public abstract String getName()
Return the name of this filter.
Should avoid natural language words if possible.
getRecommendedSamplingRadius
public abstract float getRecommendedSamplingRadius()
Returns a recommendation for the sampling radius to
be used with this filter.
This recommendation value will be the default value
for the sampling radius of objects of this class.
You can modify it with a call to
setSamplingRadius(float)
.
- the recommended sampling radius to be used with this filter
getSamplingRadius
public float getSamplingRadius()
Returns the sampling radius of this object.
setSamplingRadius
public void setSamplingRadius(float newValue)
newValue
- new sampling radius to be used with this object