|
||||||||||
| 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.
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).
| Constructor Summary | |
|---|---|
Parallelepiped()
Initialize a parallelepiped. |
|
Parallelepiped(BoundingBox3d b)
Initialize a parallelepiped. |
|
| Method Summary | |
|---|---|
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
Call OpenGL 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. |
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
|---|
addDrawableListener, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, 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 IGLRendererdraw in class AbstractDrawablegl - GL 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)
AbstractWireframeable
setWireframeColor in interface IWireframeablesetWireframeColor in class AbstractWireframeablepublic void setWireframeDisplayed(boolean status)
AbstractWireframeable
setWireframeDisplayed in interface IWireframeablesetWireframeDisplayed in class AbstractWireframeablepublic void setWireframeWidth(float width)
AbstractWireframeable
setWireframeWidth in interface IWireframeablesetWireframeWidth in class AbstractWireframeablepublic void setFaceDisplayed(boolean status)
AbstractWireframeable
setFaceDisplayed in interface IWireframeablesetFaceDisplayed in class AbstractWireframeablepublic Color getWireframeColor()
AbstractWireframeable
getWireframeColor in interface IWireframeablegetWireframeColor in class AbstractWireframeablepublic boolean getWireframeDisplayed()
AbstractWireframeable
getWireframeDisplayed in interface IWireframeablegetWireframeDisplayed in class AbstractWireframeablepublic float getWireframeWidth()
AbstractWireframeable
getWireframeWidth in interface IWireframeablegetWireframeWidth in class AbstractWireframeablepublic boolean getFaceDisplayed()
AbstractWireframeable
getFaceDisplayed in interface IWireframeablegetFaceDisplayed 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 | |||||||||