|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IGLRenderer
draw
in class AbstractDrawable
gl
- GL 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 interface IWireframeable
setWireframeColor
in class AbstractWireframeable
public void setWireframeDisplayed(boolean status)
AbstractWireframeable
setWireframeDisplayed
in interface IWireframeable
setWireframeDisplayed
in class AbstractWireframeable
public void setWireframeWidth(float width)
AbstractWireframeable
setWireframeWidth
in interface IWireframeable
setWireframeWidth
in class AbstractWireframeable
public void setFaceDisplayed(boolean status)
AbstractWireframeable
setFaceDisplayed
in interface IWireframeable
setFaceDisplayed
in class AbstractWireframeable
public Color getWireframeColor()
AbstractWireframeable
getWireframeColor
in interface IWireframeable
getWireframeColor
in class AbstractWireframeable
public boolean getWireframeDisplayed()
AbstractWireframeable
getWireframeDisplayed
in interface IWireframeable
getWireframeDisplayed
in class AbstractWireframeable
public float getWireframeWidth()
AbstractWireframeable
getWireframeWidth
in interface IWireframeable
getWireframeWidth
in class AbstractWireframeable
public boolean getFaceDisplayed()
AbstractWireframeable
getFaceDisplayed
in interface IWireframeable
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |