org.scilab.forge.scirenderer.utils.shapes.geometry
Class SphereFactory

java.lang.Object
  extended by org.scilab.forge.scirenderer.utils.shapes.geometry.SphereFactory

public final class SphereFactory
extends java.lang.Object

Author:
Pierre Lando

Method Summary
 Geometry create(Canvas canvas, java.lang.Float radius, int givenLatitude, int givenLongitude)
          Create a sphere geometry with classic longitude / latitude division.
static SphereFactory getSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static SphereFactory getSingleton()

create

public Geometry create(Canvas canvas,
                       java.lang.Float radius,
                       int givenLatitude,
                       int givenLongitude)
Create a sphere geometry with classic longitude / latitude division.

Parameters:
canvas - the canvas where the geometry will be created.
radius - the sphere radius.
givenLatitude - number of division in latitude.
givenLongitude - number of division in longitude.
Returns:
a sphere geometry with classic longitude / latitude division.