barsuift.simLife.j3d
Class AppearanceFactory

java.lang.Object
  extended by barsuift.simLife.j3d.AppearanceFactory

public final class AppearanceFactory
extends java.lang.Object


Method Summary
static void setColorWithColoringAttributes(javax.media.j3d.Appearance appearance, javax.vecmath.Color3f color)
          Set the given color to the given appearance with coloring attributes
static void setColorWithMaterial(javax.media.j3d.Appearance appearance, javax.vecmath.Color3f ambientColor, javax.vecmath.Color3f diffuseColor, javax.vecmath.Color3f specularColor)
          Set the given colors to the given appearance using a material instance
static void setCullFace(javax.media.j3d.Appearance appearance, int cullFace)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setColorWithColoringAttributes

public static void setColorWithColoringAttributes(javax.media.j3d.Appearance appearance,
                                                  javax.vecmath.Color3f color)
Set the given color to the given appearance with coloring attributes

Parameters:
appearance - the appearance
color - the color

setColorWithMaterial

public static void setColorWithMaterial(javax.media.j3d.Appearance appearance,
                                        javax.vecmath.Color3f ambientColor,
                                        javax.vecmath.Color3f diffuseColor,
                                        javax.vecmath.Color3f specularColor)
Set the given colors to the given appearance using a material instance

Parameters:
appearance - the appearance
ambientColor - the expected ambient color
diffuseColor - the expected diffuse color
specularColor - the expected specular color

setCullFace

public static void setCullFace(javax.media.j3d.Appearance appearance,
                               int cullFace)


Copyright © 2010. All Rights Reserved.