JIU 0.12.0 Homepage

net.sourceforge.jiu.geometry
Class TriangleFilter

java.lang.Object
  extended bynet.sourceforge.jiu.geometry.ResampleFilter
      extended bynet.sourceforge.jiu.geometry.TriangleFilter

public class TriangleFilter
extends ResampleFilter

A triangle filter (also known as linear or bilinear filter).

Since:
0.10.0
Author:
Marco Schmidt

Constructor Summary
TriangleFilter()
           
 
Method Summary
 float apply(float value)
          Returns the weight of the sample at the distance given by the argument value.
 String getName()
          Return the name of this filter.
 float getRecommendedSamplingRadius()
          Returns a recommendation for the sampling radius to be used with this filter.
 
Methods inherited from class net.sourceforge.jiu.geometry.ResampleFilter
getSamplingRadius, setSamplingRadius
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriangleFilter

public TriangleFilter()
Method Detail

apply

public float apply(float value)
Description copied from class: ResampleFilter
Returns the weight of the sample at the distance given by the argument value.

Specified by:
apply in class ResampleFilter

getName

public String getName()
Description copied from class: ResampleFilter
Return the name of this filter. Should avoid natural language words if possible.

Specified by:
getName in class ResampleFilter
Returns:
String with filter name

getRecommendedSamplingRadius

public float getRecommendedSamplingRadius()
Description copied from class: ResampleFilter
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 ResampleFilter.setSamplingRadius(float).

Specified by:
getRecommendedSamplingRadius in class ResampleFilter
Returns:
the recommended sampling radius to be used with this filter

JIU 0.12.0 Homepage

Copyright © 2000, 2001, 2002, 2003, 2004 Marco Schmidt