|
||||||||||
| 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, displayed, hasListeners, legend, legendDisplayed, listeners, transform |
| Constructor Summary | |
|---|---|
Parallelepiped()
Initialize a parallelepiped. |
|
Parallelepiped(BoundingBox3d b)
Initialize a parallelepiped. |
|
| Method Summary | |
|---|---|
void |
draw(javax.media.opengl.GL2 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 #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. |
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
|---|
addDrawableListener, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, 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.GL2 gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
AbstractDrawable
draw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 contextglu - GLU contextcam - a reference to a shooting Camera.public void setTransform(Transform transform)
AbstractDrawable#draw(GL,GLU,Camera).
setTransform in class AbstractDrawablepublic void setWireframeColor(Color color)
AbstractWireframeable
setWireframeColor in class AbstractWireframeablepublic void setWireframeDisplayed(boolean status)
AbstractWireframeable
setWireframeDisplayed in class AbstractWireframeablepublic void setWireframeWidth(float width)
AbstractWireframeable
setWireframeWidth in class AbstractWireframeablepublic void setFaceDisplayed(boolean status)
AbstractWireframeable
setFaceDisplayed in class AbstractWireframeablepublic Color getWireframeColor()
AbstractWireframeable
getWireframeColor in class AbstractWireframeablepublic boolean getWireframeDisplayed()
AbstractWireframeable
getWireframeDisplayed in class AbstractWireframeablepublic float getWireframeWidth()
AbstractWireframeable
getWireframeWidth in class AbstractWireframeablepublic boolean getFaceDisplayed()
AbstractWireframeable
getFaceDisplayed in class AbstractWireframeablepublic void setData(BoundingBox3d box)
public void setColorMapper(ColorMapper mapper)
IMultiColorable
setColorMapper in interface IMultiColorablepublic ColorMapper getColorMapper()
IMultiColorable
getColorMapper in interface IMultiColorablepublic void setColor(Color color)
ISingleColorable
setColor in interface ISingleColorablecolor - the colorpublic Color getColor()
ISingleColorable
getColor in interface ISingleColorable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||