public class Parallelepiped extends AbstractWireframeable implements ISingleColorable, IMultiColorable
facestatus, wfcolor, wfstatus, wfwidthbbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
Parallelepiped()
Initialize a parallelepiped.
|
Parallelepiped(BoundingBox3d b)
Initialize a parallelepiped.
|
| 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.
|
ColorMapper |
getColorMapper()
Get the colormapper.
|
boolean |
getFaceDisplayed()
Get the face display status to on or off.
|
Color |
getWireframeColor()
Get the wireframe color.
|
boolean |
getWireframeDisplayed()
Get the wireframe display status to on or off.
|
float |
getWireframeWidth()
Get the wireframe width.
|
void |
setColor(Color color)
Set the color.
|
void |
setColorMapper(ColorMapper mapper)
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.
|
void |
setData(BoundingBox3d box)
Set the parallelepiped data.
|
void |
setFaceDisplayed(boolean status)
Set the face display status to on or off.
|
void |
setTransform(Transform transform)
Set object's transformation that is applied at the beginning of a call to
AbstractDrawable.draw(GL,GLU,Camera). |
void |
setWireframeColor(Color color)
Set the wireframe color.
|
void |
setWireframeDisplayed(boolean status)
Set the wireframe display status to on or off.
|
void |
setWireframeWidth(float width)
Set the wireframe width.
|
void |
updateBounds() |
addDrawableListener, 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, setTransformBefore, toString, toString, vertexGL2, vertexGLES2public Parallelepiped()
public Parallelepiped(BoundingBox3d b)
public 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 setTransform(Transform transform)
AbstractDrawableAbstractDrawable.draw(GL,GLU,Camera).setTransform in class AbstractDrawablepublic void setWireframeColor(Color color)
AbstractWireframeablesetWireframeColor in class AbstractWireframeablepublic void setWireframeDisplayed(boolean status)
AbstractWireframeablesetWireframeDisplayed in class AbstractWireframeablepublic void setWireframeWidth(float width)
AbstractWireframeablesetWireframeWidth in class AbstractWireframeablepublic void setFaceDisplayed(boolean status)
AbstractWireframeablesetFaceDisplayed in class AbstractWireframeablepublic Color getWireframeColor()
AbstractWireframeablegetWireframeColor in class AbstractWireframeablepublic boolean getWireframeDisplayed()
AbstractWireframeablegetWireframeDisplayed in class AbstractWireframeablepublic float getWireframeWidth()
AbstractWireframeablegetWireframeWidth in class AbstractWireframeablepublic boolean getFaceDisplayed()
AbstractWireframeablegetFaceDisplayed in class AbstractWireframeablepublic void setData(BoundingBox3d box)
public void setColorMapper(ColorMapper mapper)
IMultiColorablesetColorMapper in interface IMultiColorablepublic ColorMapper getColorMapper()
IMultiColorablegetColorMapper in interface IMultiColorablepublic void setColor(Color color)
ISingleColorablesetColor in interface ISingleColorablecolor - the colorpublic Color getColor()
ISingleColorablegetColor in interface ISingleColorablepublic void applyGeometryTransform(Transform transform)
applyGeometryTransform in class AbstractDrawablepublic void updateBounds()
updateBounds in class AbstractDrawableCopyright © 2016. All rights reserved.