lt.monarch.chart.chart3D.engine
Class Sphere3D

java.lang.Object
  extended by lt.monarch.chart.chart3D.engine.Shape3D<Projector3D>
      extended by lt.monarch.chart.chart3D.engine.Sphere3D
All Implemented Interfaces:
java.io.Serializable

public class Sphere3D
extends Shape3D<Projector3D>

A class which generates sphere geometry.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
static class Sphere3D.SphereType
          The enumeration of possible sphere types.
 
Nested classes/interfaces inherited from class lt.monarch.chart.chart3D.engine.Shape3D
Shape3D.Line, Shape3D.Polygon, Shape3D.ProjectableShape<ChartProjector extends Projector>
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.chart3D.engine.Shape3D
bounds, shapeList
 
Constructor Summary
Constructor and Description
Sphere3D(Sphere3D.SphereType sphereType)
          Constructs a new instance of a sphere with its topology type specified.
 
Method Summary
Modifier and Type Method and Description
protected  void initShape()
          Initializes the shape and adds its points to the array
 void setIterationCount(int iterationCount)
          Sets an iteration count for ico sphere.
 void setRingCount(int ringCount)
          Sets the ring count for uv sphere.
 void setSegmentCount(int segmentCount)
          Sets the segment count for uv sphere.
 
Methods inherited from class lt.monarch.chart.chart3D.engine.Shape3D
dispose, draw, finalize, getBounds, getSelectionId, projectPoint, setBounds, setDrawTransformation, setSelectionID
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sphere3D

public Sphere3D(Sphere3D.SphereType sphereType)
Constructs a new instance of a sphere with its topology type specified.

Parameters:
sphereType - the type of sphere topology
Method Detail

initShape

protected void initShape()
Description copied from class: Shape3D
Initializes the shape and adds its points to the array

Specified by:
initShape in class Shape3D<Projector3D>

setIterationCount

public void setIterationCount(int iterationCount)
Sets an iteration count for ico sphere.

Parameters:
iterationCount - iteration count

setRingCount

public void setRingCount(int ringCount)
Sets the ring count for uv sphere.

Parameters:
ringCount - ring count

setSegmentCount

public void setSegmentCount(int segmentCount)
Sets the segment count for uv sphere.

Parameters:
segmentCount - segmentCount