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
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.jogamp.java3d.Shape3D
createArrowHead
(float height, Object id) static org.jogamp.java3d.Shape3D
createAxes
(float width, float height, float depth, float maxAxisLength, Color color, Object id) static org.jogamp.java3d.Shape3D
createBox
(float xdim, float ydim, float zdim, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3D
createCone
(float radius, float height, Object id) static org.jogamp.java3d.Shape3D
createCone
(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3D
createCube
(float edgeLength, Object id) static org.jogamp.java3d.Shape3D
createCylinder
(float radius, float height, Object id) static org.jogamp.java3d.Shape3D
createCylinder
(float radius, float height, Object id, int primFlags, org.jogamp.java3d.Appearance appearance) static org.jogamp.java3d.Shape3D
createGrid
(float cellSize, Color color, int... dimensions) static org.jogamp.java3d.Shape3D
createLine
(float length, Object id) 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.static org.jogamp.java3d.Shape3D
createSphere
(float radius, Object id) static org.jogamp.java3d.Shape3D
createWireframeBox
(float xdim, float ydim, float zdim, Color color, Object id) static org.jogamp.java3d.Shape3D
createWireframeSquare
(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
-