|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.AbstractWireframeable
org.jzy3d.plot3d.primitives.Parallelepiped
public class Parallelepiped
A Parallelepiped is a parallelepiped rectangle that is Drawable and Wireframeable. A future version of Rectangle3d should consider it as a Composite3d. This class has been implemented for debugging purpose and inconsistency of its input w.r.t other primitives should not be considered (no setData function).
Field Summary |
---|
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable |
---|
facestatus, wfcolor, wfstatus, wfwidth |
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
---|
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, transform, transformBefore |
Constructor Summary | |
---|---|
Parallelepiped()
Initialize a parallelepiped. |
|
Parallelepiped(BoundingBox3d b)
Initialize a parallelepiped. |
Method Summary | |
---|---|
void |
applyGeometryTransform(Transform transform)
|
void |
draw(javax.media.opengl.GL gl,
javax.media.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()
|
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, setTransformBefore, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Parallelepiped()
public Parallelepiped(BoundingBox3d b)
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
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |