Class ShapeFactory
java.lang.Object
repast.simphony.visualization.visualization3D.ShapeFactory
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jogamp.java3d.Shape3DcreateArrowHead(float height, Object id) static org.jogamp.java3d.Shape3DcreateAxes(float width, float height, float depth, float maxAxisLength, Color color, Object id) static org.jogamp.java3d.Shape3DcreateBox(float xdim, float ydim, float zdim, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3DcreateCone(float radius, float height, Object id) static org.jogamp.java3d.Shape3DcreateCone(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3DcreateCube(float edgeLength, Object id) static org.jogamp.java3d.Shape3DcreateCylinder(float radius, float height, Object id) static org.jogamp.java3d.Shape3DcreateCylinder(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3DcreateGrid(float cellSize, Color color, int... dimensions) static org.jogamp.java3d.Shape3DcreateLine(float length, Object id) static org.jogamp.java3d.Shape3DcreateSphere(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.Shape3DcreateSphere(float radius, Object id) static org.jogamp.java3d.Shape3DcreateWireframeBox(float xdim, float ydim, float zdim, Color color, Object id) static org.jogamp.java3d.Shape3DcreateWireframeSquare(float unitSize, float xdim, float zdim, Color color)
-
Constructor Details
-
ShapeFactory
public ShapeFactory()
-
-
Method Details
-
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
-
createCube
-
createArrowHead
-
createLine
-
createCylinder
-
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
-
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
-
createGrid
-
createAxes
-