net.sf.j3d.threeD.raytracer.surfaceUI
Class SurfaceUIFactory
java.lang.Object
net.sf.j3d.threeD.raytracer.surfaceUI.SurfaceUIFactory
public class SurfaceUIFactory
- extends Object
The SurfaceUIFactory class provides static methods for creating SurfaceUI instances.
- Author:
- Mike Murray
createSurfaceUI
public static AbstractSurfaceUI createSurfaceUI(AbstractSurface s)
- Parameters:
s - AbstractSurface object to wrap.
- Returns:
- An AbstractSurfaceUI implementation that wraps the AbstractSurface specified.
createSurfaceUI
public static AbstractSurfaceUI createSurfaceUI(int nameIndex)
- Creates a new Surface implementation of the type given by the specified index
into the array returned by the getSurfaceTypeNames method.
- Parameters:
nameIndex - Index into array given by getSurfaceTypeNames that corresponds to the Surface object to construct.
- Returns:
- An AbstractSurfaceUI implementation that wraps the surface specified.
getSurfaceTypeNames
public static String[] getSurfaceTypeNames()
- Returns:
- An array containing the surface type names in order.