Class AppearanceFactory
- java.lang.Object
-
- repast.simphony.visualization.visualization3D.AppearanceFactory
-
public class AppearanceFactory extends Object
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppearanceFactory.PolygonDraw
-
Constructor Summary
Constructors Constructor Description AppearanceFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.jogamp.java3d.Appearance
createAppearance()
static org.jogamp.java3d.Appearance
setColoredAppearance(org.jogamp.java3d.Appearance appearance, Color color)
static org.jogamp.java3d.Appearance
setMaterialAppearance(org.jogamp.java3d.Appearance appearance, Color color)
Sets the material of the specified to appearance to the specified color.static org.jogamp.java3d.Appearance
setPolygonAppearance(org.jogamp.java3d.Appearance appearance, AppearanceFactory.PolygonDraw draw)
static org.jogamp.java3d.Appearance
setTransparentAppearance(org.jogamp.java3d.Appearance appearance, int mode, float transVal)
-
-
-
Method Detail
-
setColoredAppearance
public static org.jogamp.java3d.Appearance setColoredAppearance(org.jogamp.java3d.Appearance appearance, Color color)
-
setTransparentAppearance
public static org.jogamp.java3d.Appearance setTransparentAppearance(org.jogamp.java3d.Appearance appearance, int mode, float transVal)
-
createAppearance
public static org.jogamp.java3d.Appearance createAppearance()
-
setMaterialAppearance
public static org.jogamp.java3d.Appearance setMaterialAppearance(org.jogamp.java3d.Appearance appearance, 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 org.jogamp.java3d.Appearance setPolygonAppearance(org.jogamp.java3d.Appearance appearance, AppearanceFactory.PolygonDraw draw)
-
-