org.jzy3d.plot3d.primitives
Class Disk

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.Disk
All Implemented Interfaces:
ISingleColorable, IGLRenderer, ISortableDraw

public class Disk
extends AbstractWireframeable
implements ISingleColorable


Field Summary
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
facestatus, wfcolor, wfstatus, wfwidth
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, displayed, hasListeners, legend, legendDisplayed, listeners, transform
 
Constructor Summary
Disk()
          Initialize a Cylinder at the origin.
Disk(Coord3d position, float radiusInner, float radiusOuter, int slices, int loops, Color color)
          Initialize a cylinder with the given parameters.
 
Method Summary
 void draw(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL2 routines for rendering the object.
 Color getColor()
          Get the color.
 void setColor(Color color)
          Set the color.
 void setData(Coord3d position, float radiusInner, float radiusOuter, int slices, int loops)
           
 void setPosition(Coord3d position)
           
 void setSlicing(int verticalWires, int horizontalWires)
           
 void setVolume(float radiusInner, float radiusOuter)
           
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidth
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Disk

public Disk()
Initialize a Cylinder at the origin.


Disk

public Disk(Coord3d position,
            float radiusInner,
            float radiusOuter,
            int slices,
            int loops,
            Color color)
Initialize a cylinder with the given parameters.

Method Detail

draw

public void draw(javax.media.opengl.GL2 gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL2 routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Specified by:
draw in class AbstractDrawable
Parameters:
gl - GL2 context
glu - GLU context
cam - a reference to a shooting Camera.

setData

public void setData(Coord3d position,
                    float radiusInner,
                    float radiusOuter,
                    int slices,
                    int loops)

setPosition

public void setPosition(Coord3d position)

setVolume

public void setVolume(float radiusInner,
                      float radiusOuter)

setSlicing

public void setSlicing(int verticalWires,
                       int horizontalWires)

setColor

public void setColor(Color color)
Description copied from interface: ISingleColorable
Set the color.

Specified by:
setColor in interface ISingleColorable
Parameters:
color - the color

getColor

public Color getColor()
Description copied from interface: ISingleColorable
Get the color.

Specified by:
getColor in interface ISingleColorable
Returns:
color the color.