Package samer.j3d

Class Util

  • java.lang.Object
    • samer.j3d.Util
    • Constructor Summary

      Constructors 
      Constructor and Description
      Util() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void addKeyNavigator(Group g, TransformGroup tg) 
      static TransformGroup addRotator(int period, TransformGroup tg) 
      static Appearance alpha(double t, Appearance a) 
      static Light ambientLight() 
      static Background background(double r, double g, double b) 
      static Appearance color(Color3f c, Appearance a) 
      static Light color(Light l, Color3f c) 
      static Light directionalLight(double x, double y, double z) 
      static Appearance flat(Appearance a) 
      static Appearance flat(Color3f c, Appearance a) 
      static Bounds getBounds() 
      static Appearance material(Color3f diff, Color3f spec, int shin, Appearance a) 
      static TransformGroup mouseRotate(TransformGroup tg) 
      static TransformGroup mouseTranslate(TransformGroup tg) 
      static TransformGroup mouseZoom(TransformGroup tg) 
      static Appearance offsetPolygon() 
      static Appearance patches() 
      static Light pointLight(double x, double y, double z) 
      static Appearance points() 
      static TransformGroup readwrite(TransformGroup tg) 
      static void setBounds(Bounds b) 
      static Appearance shadedwireframe() 
      static Appearance wireframe() 
      static TransformGroup writable(TransformGroup tg) 
      static ViewPlatform writable(ViewPlatform vp) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • setBounds

        public static void setBounds(Bounds b)
      • getBounds

        public static Bounds getBounds()
      • mouseRotate

        public static TransformGroup mouseRotate(TransformGroup tg)
      • mouseTranslate

        public static TransformGroup mouseTranslate(TransformGroup tg)
      • mouseZoom

        public static TransformGroup mouseZoom(TransformGroup tg)
      • addKeyNavigator

        public static void addKeyNavigator(Group g,
                                           TransformGroup tg)
      • addRotator

        public static TransformGroup addRotator(int period,
                                                TransformGroup tg)
      • color

        public static Light color(Light l,
                                  Color3f c)
      • directionalLight

        public static Light directionalLight(double x,
                                             double y,
                                             double z)
      • ambientLight

        public static Light ambientLight()
      • pointLight

        public static Light pointLight(double x,
                                       double y,
                                       double z)
      • background

        public static Background background(double r,
                                            double g,
                                            double b)
      • writable

        public static ViewPlatform writable(ViewPlatform vp)
      • writable

        public static TransformGroup writable(TransformGroup tg)
      • readwrite

        public static TransformGroup readwrite(TransformGroup tg)
      • points

        public static Appearance points()
      • wireframe

        public static Appearance wireframe()
      • shadedwireframe

        public static Appearance shadedwireframe()
      • offsetPolygon

        public static Appearance offsetPolygon()
      • patches

        public static Appearance patches()
      • color

        public static Appearance color(Color3f c,
                                       Appearance a)
      • flat

        public static Appearance flat(Appearance a)
      • flat

        public static Appearance flat(Color3f c,
                                      Appearance a)
      • alpha

        public static Appearance alpha(double t,
                                       Appearance a)
      • material

        public static Appearance material(Color3f diff,
                                          Color3f spec,
                                          int shin,
                                          Appearance a)