anl.aida.viz3d
Class VShapeFactory

java.lang.Object
  extended by anl.aida.viz3d.VShapeFactory

public class VShapeFactory
extends java.lang.Object

Factory for generation VNodes for particular shapes.


Field Summary
private  boolean forceImmMode
           
private static VShapeFactory instance
           
private  java.util.Map<javax.media.opengl.GLContext,com.sun.opengl.util.j2d.TextRenderer> trMap
           
 
Constructor Summary
private VShapeFactory()
           
 
Method Summary
 VSpatial createCircle(float radius, int slices)
           
private  GeometryData createCircleGeom(float radius, int slices, float normal)
           
 VSpatial createCylinder(float radius, float height, int slices)
           
private  GeometryData createCylinderGeom(float radius, float height, int slices)
           
 VSpatial createDisk(float radius, float height, int slices)
           
 VLabel createLabel(java.lang.String text)
           
static VShapeFactory getInstance()
           
 com.sun.opengl.util.j2d.TextRenderer getTextRenderer()
           
 void glInit()
           
static void init()
          Initializes the VNodeFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static VShapeFactory instance

trMap

private java.util.Map<javax.media.opengl.GLContext,com.sun.opengl.util.j2d.TextRenderer> trMap

forceImmMode

private boolean forceImmMode
Constructor Detail

VShapeFactory

private VShapeFactory()
Method Detail

glInit

public void glInit()

getTextRenderer

public com.sun.opengl.util.j2d.TextRenderer getTextRenderer()

init

public static void init()
Initializes the VNodeFactory. This should be called in the GLEventListener.init method.


getInstance

public static VShapeFactory getInstance()

createLabel

public VLabel createLabel(java.lang.String text)

createCircleGeom

private GeometryData createCircleGeom(float radius,
                                      int slices,
                                      float normal)

createCylinderGeom

private GeometryData createCylinderGeom(float radius,
                                        float height,
                                        int slices)

createCircle

public VSpatial createCircle(float radius,
                             int slices)

createCylinder

public VSpatial createCylinder(float radius,
                               float height,
                               int slices)

createDisk

public VSpatial createDisk(float radius,
                           float height,
                           int slices)