|
||||||||||
| 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.AbstractComposite
public abstract class AbstractComposite
A Composite gathers several Drawable and provides default methods
for rendering them all in one call.
| Field Summary | |
|---|---|
protected Color |
color
|
protected List<AbstractDrawable> |
components
|
protected boolean |
detailedToString
|
protected ColorMapper |
mapper
|
protected Transform |
transform
|
| 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, transformBefore |
| Constructor Summary | |
|---|---|
AbstractComposite()
|
|
| Method Summary | |
|---|---|
void |
add(AbstractDrawable drawable)
Add a Drawable to this composite. |
void |
add(List<? extends AbstractDrawable> drawables)
Append a list of Drawables to this composite. |
void |
applyGeometryTransform(Transform transform)
|
void |
clear()
Clear the list of Drawables from this composite. |
void |
draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera camera)
Delegate rendering iteratively to all Drawable of this composite. |
AbstractDrawable |
get(int p)
Get a Drawable stored by this composite. |
BoundingBox3d |
getBounds()
Creates and return a BoundingBox3d that embed all available Drawable bounds. |
Color |
getColor()
Get the color. |
ColorMapper |
getColorMapper()
Get the colormapper. |
List<AbstractDrawable> |
getDrawables()
|
Transform |
getTransform()
Return the transform that was affected to this composite. |
boolean |
isDetailedToString()
|
void |
remove(AbstractDrawable drawable)
Remove a Drawable from this composite. |
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 |
setDetailedToString(boolean detailedToString)
When to true, the toString() method will give the detail of each element
of this composite object in a tree like layout. |
void |
setDisplayed(boolean status)
Set to true or false the displayed status of this object. |
void |
setFaceDisplayed(boolean status)
Set the face display status to on or off. |
void |
setTransform(Transform transform)
Delegate transforming iteratively to all Drawable of this composite and stores the given transform for keeping the ability of retrieving it. |
void |
setTransformBefore(Transform transform)
|
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. |
int |
size()
Return the number of Drawable stored by this composite. |
String |
toString()
Print out information concerning all Drawable of this composite. |
String |
toString(int depth)
|
void |
updateBounds()
|
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractWireframeable |
|---|
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth |
| Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
|---|
addDrawableListener, call, call, callWithAlphaFactor, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setLegend, setLegendDisplayed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected List<AbstractDrawable> components
protected Transform transform
protected ColorMapper mapper
protected Color color
protected boolean detailedToString
| Constructor Detail |
|---|
public AbstractComposite()
| Method Detail |
|---|
public void add(List<? extends AbstractDrawable> drawables)
public void clear()
public void add(AbstractDrawable drawable)
public void remove(AbstractDrawable drawable)
public AbstractDrawable get(int p)
public List<AbstractDrawable> getDrawables()
public int size()
public void draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera camera)
draw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 contextglu - GLU contextcamera - a reference to a shooting Camera.public void setTransform(Transform transform)
setTransform in class AbstractDrawablepublic void setTransformBefore(Transform transform)
setTransformBefore in class AbstractDrawablepublic Transform getTransform()
getTransform in class AbstractDrawablepublic BoundingBox3d getBounds()
getBounds in class AbstractDrawablepublic void updateBounds()
updateBounds in class AbstractDrawablepublic void applyGeometryTransform(Transform transform)
applyGeometryTransform 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 void setDisplayed(boolean status)
AbstractDrawable
setDisplayed in class AbstractDrawablepublic 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 ISingleColorablepublic String toString()
toString in class AbstractDrawablepublic String toString(int depth)
toString in class AbstractDrawablepublic boolean isDetailedToString()
public void setDetailedToString(boolean detailedToString)
toString() method will give the detail of each element
of this composite object in a tree like layout.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||