anl.aida.viz
Class AppearanceFactory
java.lang.Object
anl.aida.viz.AppearanceFactory
public class AppearanceFactory
- extends java.lang.Object
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Field Summary |
private static javax.vecmath.Color3f |
tmpColor
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tmpColor
private static javax.vecmath.Color3f tmpColor
AppearanceFactory
public AppearanceFactory()
setColoredAppearance
public static javax.media.j3d.Appearance setColoredAppearance(javax.media.j3d.Appearance appearance,
java.awt.Color color)
setTransparentAppearance
public static javax.media.j3d.Appearance setTransparentAppearance(javax.media.j3d.Appearance appearance,
int mode,
float transVal)
createAppearance
public static javax.media.j3d.Appearance createAppearance()
materialColorEquals
private static boolean materialColorEquals(javax.media.j3d.Material mat,
javax.vecmath.Color3f color)
setMaterialAppearance
public static javax.media.j3d.Appearance setMaterialAppearance(javax.media.j3d.Appearance appearance,
java.awt.Color color)
- Sets the material of the specified to appearance to the specified color.
This will create a new Appearance if the specified appearance is null.
- Parameters:
appearance
- color
- the color to set the diffuse color of the material to.
- Returns:
- an appearance whose material is the specified color. If the specified
appearance is not null, then it will be return having had its material's color
set appropriately.
setPolygonAppearance
public static javax.media.j3d.Appearance setPolygonAppearance(javax.media.j3d.Appearance appearance,
AppearanceFactory.PolygonDraw draw)