edu.illinois.ncsa.versus.extract.impl
Class SurfaceAreaExtractor

java.lang.Object
  extended by edu.illinois.ncsa.versus.extract.impl.SurfaceAreaExtractor
All Implemented Interfaces:
Extractor

public class SurfaceAreaExtractor
extends java.lang.Object
implements Extractor

Extract the surface area an object that has a mesh.

Author:
Kenton McHenry

Constructor Summary
SurfaceAreaExtractor()
           
 
Method Summary
 Descriptor extract(Adapter adapter)
          Extract a feature F from and adapter A.
private  DoubleArrayFeature extract(HasMesh adapter)
          Extract a double array representation of an object that has a mesh.
 java.lang.Class<? extends Descriptor> getFeatureType()
          The class of the feature that will be created by this extractor.
 java.lang.String getName()
          The pretty name for the extractor to use in applications.
 MeshAdapter newAdapter()
          Create an instance of the adapter required for this extractor.
 java.util.Set<java.lang.Class<? extends Adapter>> supportedAdapters()
          The set of adapters supported by the extractor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceAreaExtractor

public SurfaceAreaExtractor()
Method Detail

extract

private DoubleArrayFeature extract(HasMesh adapter)
Extract a double array representation of an object that has a mesh.

Parameters:
adapter - an object that has a mesh
Returns:
a double array representation of the given object

newAdapter

public MeshAdapter newAdapter()
Description copied from interface: Extractor
Create an instance of the adapter required for this extractor.

Specified by:
newAdapter in interface Extractor
Returns:
an adapter instance used by this extractor

getName

public java.lang.String getName()
Description copied from interface: Extractor
The pretty name for the extractor to use in applications.

Specified by:
getName in interface Extractor
Returns:
the pretty name of the extractor

extract

public Descriptor extract(Adapter adapter)
                   throws UnsupportedTypeException
Description copied from interface: Extractor
Extract a feature F from and adapter A.

Specified by:
extract in interface Extractor
Returns:
feature
Throws:
UnsupportedTypeException

supportedAdapters

public java.util.Set<java.lang.Class<? extends Adapter>> supportedAdapters()
Description copied from interface: Extractor
The set of adapters supported by the extractor.

Specified by:
supportedAdapters in interface Extractor
Returns:
adapters supported by the extractor

getFeatureType

public java.lang.Class<? extends Descriptor> getFeatureType()
Description copied from interface: Extractor
The class of the feature that will be created by this extractor.

Specified by:
getFeatureType in interface Extractor
Returns:
the class type of the output feature