pedviz.view.symbols3d
Class ShapeCreator3D

java.lang.Object
  extended by pedviz.view.symbols3d.ShapeCreator3D

public class ShapeCreator3D
extends java.lang.Object

A very speedy NodeCreator implementation for about 35.000 nodes. Use some fast GeometryGenerators from j3d.org.

Version:
0.1
Author:
Lukas Forer

Constructor Summary
ShapeCreator3D()
           
 
Method Summary
static javax.media.j3d.GeometryArray createBox(float x, float y, float z, float size)
          Returns a box.
static javax.media.j3d.GeometryArray createBox(float x, float y, float z, float size, double rot)
           
static javax.media.j3d.GeometryArray createBox(float x, float y, float z, float sizeX, float sizeY, float sizeZ)
           
static javax.media.j3d.GeometryArray createBox(float x, float y, float z, float sizeX, float sizeY, float sizeZ, double rotZ)
           
static javax.media.j3d.GeometryArray createSphere(float x, float y, float z, float size)
          Returns a sphere.
static javax.media.j3d.GeometryArray createSphere(float x, float y, float z, float size, boolean half, double rotZ, int k)
           
static javax.vecmath.Color4f[] getColorArray(javax.vecmath.Color4f color, int size)
          Creates a color array with the given color and size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeCreator3D

public ShapeCreator3D()
Method Detail

createBox

public static javax.media.j3d.GeometryArray createBox(float x,
                                                      float y,
                                                      float z,
                                                      float size)
Returns a box.

Parameters:
x - position on the x-axis.
y - position on the y-axis.
z - position on the z-axis.
size - radius
Returns:
Geometry array for a box.

createBox

public static javax.media.j3d.GeometryArray createBox(float x,
                                                      float y,
                                                      float z,
                                                      float sizeX,
                                                      float sizeY,
                                                      float sizeZ)

createBox

public static javax.media.j3d.GeometryArray createBox(float x,
                                                      float y,
                                                      float z,
                                                      float size,
                                                      double rot)

createBox

public static javax.media.j3d.GeometryArray createBox(float x,
                                                      float y,
                                                      float z,
                                                      float sizeX,
                                                      float sizeY,
                                                      float sizeZ,
                                                      double rotZ)

getColorArray

public static javax.vecmath.Color4f[] getColorArray(javax.vecmath.Color4f color,
                                                    int size)
Creates a color array with the given color and size.

Parameters:
color - color
size - vertex count
Returns:

createSphere

public static javax.media.j3d.GeometryArray createSphere(float x,
                                                         float y,
                                                         float z,
                                                         float size)
Returns a sphere.

Parameters:
x - position on the x-axis.
y - position on the y-axis.
z - position on the z-axis.
size - radius
Returns:
Geometry array for a sphere.

createSphere

public static javax.media.j3d.GeometryArray createSphere(float x,
                                                         float y,
                                                         float z,
                                                         float size,
                                                         boolean half,
                                                         double rotZ,
                                                         int k)