public class Parallelepiped extends AbstractWireframeable implements ISingleColorable, IMultiColorable
facestatus, wfcolor, wfstatus, wfwidth
bbox, 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, vertexGLES2
public Parallelepiped()
public Parallelepiped(BoundingBox3d b)
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- GL2 contextglu
- GLU contextcam
- a reference to a shooting Camera.public void setTransform(Transform transform)
AbstractDrawable
AbstractDrawable.draw(GL,GLU,Camera)
.setTransform
in class AbstractDrawable
public void setWireframeColor(Color color)
AbstractWireframeable
setWireframeColor
in class AbstractWireframeable
public void setWireframeDisplayed(boolean status)
AbstractWireframeable
setWireframeDisplayed
in class AbstractWireframeable
public void setWireframeWidth(float width)
AbstractWireframeable
setWireframeWidth
in class AbstractWireframeable
public void setFaceDisplayed(boolean status)
AbstractWireframeable
setFaceDisplayed
in class AbstractWireframeable
public Color getWireframeColor()
AbstractWireframeable
getWireframeColor
in class AbstractWireframeable
public boolean getWireframeDisplayed()
AbstractWireframeable
getWireframeDisplayed
in class AbstractWireframeable
public float getWireframeWidth()
AbstractWireframeable
getWireframeWidth
in class AbstractWireframeable
public boolean getFaceDisplayed()
AbstractWireframeable
getFaceDisplayed
in class AbstractWireframeable
public void setData(BoundingBox3d box)
public void setColorMapper(ColorMapper mapper)
IMultiColorable
setColorMapper
in interface IMultiColorable
public ColorMapper getColorMapper()
IMultiColorable
getColorMapper
in interface IMultiColorable
public void setColor(Color color)
ISingleColorable
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
public void applyGeometryTransform(Transform transform)
applyGeometryTransform
in class AbstractDrawable
public void updateBounds()
updateBounds
in class AbstractDrawable
Copyright © 2016. All rights reserved.