org.jzy3d.plot3d.primitives.enlightables
Class EnlightableDisk
java.lang.Object
org.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.AbstractWireframeable
org.jzy3d.plot3d.primitives.enlightables.AbstractEnlightable
org.jzy3d.plot3d.primitives.enlightables.EnlightableDisk
- All Implemented Interfaces:
- ISingleColorable, IGLRenderer, ISortableDraw
public class EnlightableDisk
- extends AbstractEnlightable
- implements ISingleColorable
Constructor Summary |
EnlightableDisk()
Initialize a Cylinder at the origin. |
EnlightableDisk(Coord3d position,
float radiusInner,
float radiusOuter,
int slices,
int loops,
Color color,
boolean faceup)
Initialize a cylinder with the given parameters. |
Methods inherited from class org.jzy3d.plot3d.primitives.enlightables.AbstractEnlightable |
applyMaterial, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection |
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
addDrawableListener, call, call, callWithAlphaFactor, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setTransform, setTransformBefore, toString, toString |
norm
protected Coord3d norm
EnlightableDisk
public EnlightableDisk()
- Initialize a Cylinder at the origin.
EnlightableDisk
public EnlightableDisk(Coord3d position,
float radiusInner,
float radiusOuter,
int slices,
int loops,
Color color,
boolean faceup)
- Initialize a cylinder with the given parameters.
draw
public void draw(javax.media.opengl.GL 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 contextglu
- GLU contextcam
- a reference to a shooting Camera.
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransform
in class AbstractDrawable
updateBounds
public void updateBounds()
- Specified by:
updateBounds
in class AbstractDrawable
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.
Copyright © 2013. All rights reserved.