anl.aida.viz
Class ShapeFactory
java.lang.Object
anl.aida.viz.ShapeFactory
public class ShapeFactory
- extends java.lang.Object
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
Method Summary |
static javax.media.j3d.Shape3D |
createArrowHead(float height,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createAxes(float width,
float height,
float depth,
float maxAxisLength,
java.awt.Color color,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createBox(float xdim,
float ydim,
float zdim,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
|
static javax.media.j3d.Shape3D |
createCone(float radius,
float height,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createCone(float radius,
float height,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
|
static javax.media.j3d.Shape3D |
createCube(float edgeLength,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createCylinder(float radius,
float height,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createCylinder(float radius,
float height,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
|
static javax.media.j3d.Shape3D |
createGrid(float cellSize,
java.awt.Color color,
int... dimensions)
|
static javax.media.j3d.Shape3D |
createLine(float length,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createSphere(float radius,
int divisions,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
Creates a sphere with the specified radius and number of divisions. |
static javax.media.j3d.Shape3D |
createSphere(float radius,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createWireframeBox(float xdim,
float ydim,
float zdim,
java.awt.Color color,
java.lang.Object id)
|
static javax.media.j3d.Shape3D |
createWireframeSquare(float unitSize,
float xdim,
float zdim,
java.awt.Color color)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShapeFactory
public ShapeFactory()
createSphere
public static javax.media.j3d.Shape3D createSphere(float radius,
int divisions,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
- Creates a sphere with the specified radius and number of divisions.
- Parameters:
radius
- sphere radiusdivisions
- the number of divisions in the sphere. More look better
but less is faster.id
- the id of the object.primFlags
- primitive flagsappearance
- the appearence of the object
- Returns:
- the created Sphere as a Shape3D.
createSphere
public static javax.media.j3d.Shape3D createSphere(float radius,
java.lang.Object id)
createCube
public static javax.media.j3d.Shape3D createCube(float edgeLength,
java.lang.Object id)
createArrowHead
public static javax.media.j3d.Shape3D createArrowHead(float height,
java.lang.Object id)
createLine
public static javax.media.j3d.Shape3D createLine(float length,
java.lang.Object id)
createCylinder
public static javax.media.j3d.Shape3D createCylinder(float radius,
float height,
java.lang.Object id)
createCylinder
public static javax.media.j3d.Shape3D createCylinder(float radius,
float height,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
createBox
public static javax.media.j3d.Shape3D createBox(float xdim,
float ydim,
float zdim,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
createCone
public static javax.media.j3d.Shape3D createCone(float radius,
float height,
java.lang.Object id)
createCone
public static javax.media.j3d.Shape3D createCone(float radius,
float height,
java.lang.Object id,
int primFlags,
javax.media.j3d.Appearance appearance)
createWireframeSquare
public static javax.media.j3d.Shape3D createWireframeSquare(float unitSize,
float xdim,
float zdim,
java.awt.Color color)
createWireframeBox
public static javax.media.j3d.Shape3D createWireframeBox(float xdim,
float ydim,
float zdim,
java.awt.Color color,
java.lang.Object id)
createGrid
public static javax.media.j3d.Shape3D createGrid(float cellSize,
java.awt.Color color,
int... dimensions)
createAxes
public static javax.media.j3d.Shape3D createAxes(float width,
float height,
float depth,
float maxAxisLength,
java.awt.Color color,
java.lang.Object id)