Class ShapeFactory


  • public class ShapeFactory
    extends Object
    Version:
    $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
    Author:
    Nick Collier
    • Constructor Summary

      Constructors 
      Constructor Description
      ShapeFactory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.jogamp.java3d.Shape3D createArrowHead​(float height, Object id)  
      static org.jogamp.java3d.Shape3D createAxes​(float width, float height, float depth, float maxAxisLength, Color color, Object id)  
      static org.jogamp.java3d.Shape3D createBox​(float xdim, float ydim, float zdim, Object id, int primFlags, org.jogamp.java3d.Appearance appearance)  
      static org.jogamp.java3d.Shape3D createCone​(float radius, float height, Object id)  
      static org.jogamp.java3d.Shape3D createCone​(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance)  
      static org.jogamp.java3d.Shape3D createCube​(float edgeLength, Object id)  
      static org.jogamp.java3d.Shape3D createCylinder​(float radius, float height, Object id)  
      static org.jogamp.java3d.Shape3D createCylinder​(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance)  
      static org.jogamp.java3d.Shape3D createGrid​(float cellSize, Color color, int... dimensions)  
      static org.jogamp.java3d.Shape3D createLine​(float length, Object id)  
      static org.jogamp.java3d.Shape3D createSphere​(float radius, int divisions, Object id, int primFlags, org.jogamp.java3d.Appearance appearance)
      Creates a sphere with the specified radius and number of divisions.
      static org.jogamp.java3d.Shape3D createSphere​(float radius, Object id)  
      static org.jogamp.java3d.Shape3D createWireframeBox​(float xdim, float ydim, float zdim, Color color, Object id)  
      static org.jogamp.java3d.Shape3D createWireframeSquare​(float unitSize, float xdim, float zdim, Color color)  
    • Constructor Detail

      • ShapeFactory

        public ShapeFactory()
    • Method Detail

      • createSphere

        public static org.jogamp.java3d.Shape3D createSphere​(float radius,
                                                             int divisions,
                                                             Object id,
                                                             int primFlags,
                                                             org.jogamp.java3d.Appearance appearance)
        Creates a sphere with the specified radius and number of divisions.
        Parameters:
        radius -
        divisions - the number of divisions in the sphere. More look better but less is faster.
        id - the id of the object.
        Returns:
        the created Sphere as a Shape3D.
      • createSphere

        public static org.jogamp.java3d.Shape3D createSphere​(float radius,
                                                             Object id)
      • createCube

        public static org.jogamp.java3d.Shape3D createCube​(float edgeLength,
                                                           Object id)
      • createArrowHead

        public static org.jogamp.java3d.Shape3D createArrowHead​(float height,
                                                                Object id)
      • createLine

        public static org.jogamp.java3d.Shape3D createLine​(float length,
                                                           Object id)
      • createCylinder

        public static org.jogamp.java3d.Shape3D createCylinder​(float radius,
                                                               float height,
                                                               Object id)
      • createCylinder

        public static org.jogamp.java3d.Shape3D createCylinder​(float radius,
                                                               float height,
                                                               Object id,
                                                               int primFlags,
                                                               org.jogamp.java3d.Appearance appearance)
      • createBox

        public static org.jogamp.java3d.Shape3D createBox​(float xdim,
                                                          float ydim,
                                                          float zdim,
                                                          Object id,
                                                          int primFlags,
                                                          org.jogamp.java3d.Appearance appearance)
      • createCone

        public static org.jogamp.java3d.Shape3D createCone​(float radius,
                                                           float height,
                                                           Object id)
      • createCone

        public static org.jogamp.java3d.Shape3D createCone​(float radius,
                                                           float height,
                                                           Object id,
                                                           int primFlags,
                                                           org.jogamp.java3d.Appearance appearance)
      • createWireframeSquare

        public static org.jogamp.java3d.Shape3D createWireframeSquare​(float unitSize,
                                                                      float xdim,
                                                                      float zdim,
                                                                      Color color)
      • createWireframeBox

        public static org.jogamp.java3d.Shape3D createWireframeBox​(float xdim,
                                                                   float ydim,
                                                                   float zdim,
                                                                   Color color,
                                                                   Object id)
      • createGrid

        public static org.jogamp.java3d.Shape3D createGrid​(float cellSize,
                                                           Color color,
                                                           int... dimensions)
      • createAxes

        public static org.jogamp.java3d.Shape3D createAxes​(float width,
                                                           float height,
                                                           float depth,
                                                           float maxAxisLength,
                                                           Color color,
                                                           Object id)