|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.plot3d.primitives.AbstractDrawable org.jzy3d.plot3d.primitives.AbstractWireframeable org.jzy3d.plot3d.primitives.Disk
public class Disk
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.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL 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, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Disk()
public Disk(Coord3d position, float radiusInner, float radiusOuter, int slices, int loops, Color color)
Method Detail |
---|
public void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- GL contextglu
- GLU contextcam
- a reference to a shooting Camera.public void setData(Coord3d position, float radiusInner, float radiusOuter, int slices, int loops)
public void setPosition(Coord3d position)
public void setVolume(float radiusInner, float radiusOuter)
public void setSlicing(int verticalWires, int horizontalWires)
public void setColor(Color color)
ISingleColorable
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |