anl.aida.viz3d
Class VShapeFactory
java.lang.Object
anl.aida.viz3d.VShapeFactory
public class VShapeFactory
- extends java.lang.Object
Factory for generation VNodes for particular shapes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
VShapeFactory
private VShapeFactory()
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)