public class Disk extends AbstractWireframeable implements ISingleColorable
facestatus, wfcolor, wfstatus, wfwidthbbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyGeometryTransform(Transform transform) |
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.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) |
void |
updateBounds() |
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidthaddDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, vertexGL2, vertexGLES2public void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 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 updateBounds()
updateBounds in class AbstractDrawablepublic void setSlicing(int verticalWires,
int horizontalWires)
public void setColor(Color color)
ISingleColorablesetColor in interface ISingleColorablecolor - the colorpublic Color getColor()
ISingleColorablegetColor in interface ISingleColorablepublic void applyGeometryTransform(Transform transform)
applyGeometryTransform in class AbstractDrawableCopyright © 2016. All rights reserved.