Package org.jzy3d.plot3d.primitives
Class MultiDrawable
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.MultiDrawable
- All Implemented Interfaces:
IGLRenderer,ISortableDraw
-
Field Summary
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGeometryTransform(Transform transform) current()protected voiddoDrawBoundsIfDisplayed(IPainter painter) voiddoTransform(IPainter painter) voidCall OpenGL2 routines for rendering the object.Return the barycentre of this object, which is computed as the center of its bounding box.Return the BoundingBox of this object.intdoublegetDistance(Camera camera) Return the distance of the object center to theCamera's eye.doublegetLongestDistance(Camera camera) doublegetShortestDistance(Camera camera) Get object's transformation that is applied at the beginning of a call todraw(IPainter).booleanbooleanbooleanReturn the display status of this object.booleanvoidsetBoundingBoxColor(Color boundingBoxColor) voidsetBoundingBoxDisplayed(boolean boundingBoxDisplayed) voidsetCurrentDrawable(int currentDrawable) voidsetDisplayed(boolean status) Set to true or false the displayed status of this object.voidsetDrawables(List<Drawable> drawables) voidvoidsetLegendDisplayed(boolean status) voidsetSpaceTransformer(SpaceTransformer spaceTransformer) voidsetTransform(Transform transform) Set object's transformation that is applied at the beginning of a call todraw(IPainter).voidsetTransformBefore(Transform transformBefore) toString()toString(int depth) voidMethods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, fireDrawableChanged, fireDrawableChanged, removeDrawableListener
-
Constructor Details
-
MultiDrawable
public MultiDrawable() -
MultiDrawable
-
-
Method Details
-
getDrawables
-
setDrawables
-
getCurrentDrawable
public int getCurrentDrawable() -
setCurrentDrawable
public void setCurrentDrawable(int currentDrawable) -
current
-
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
applyGeometryTransform
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBoundsin classDrawable
-
doTransform
- Overrides:
doTransformin classDrawable
-
doDrawBoundsIfDisplayed
- Overrides:
doDrawBoundsIfDisplayedin classDrawable
-
setTransform
Set object's transformation that is applied at the beginning of a call todraw(IPainter).- Overrides:
setTransformin classDrawable- Parameters:
transform-
-
getTransform
Get object's transformation that is applied at the beginning of a call todraw(IPainter).- Overrides:
getTransformin classDrawable- Returns:
- transform
-
getTransformBefore
- Overrides:
getTransformBeforein classDrawable
-
setTransformBefore
- Overrides:
setTransformBeforein classDrawable
-
getBounds
Return the BoundingBox of this object. -
getBarycentre
Return the barycentre of this object, which is computed as the center of its bounding box. If the bounding box is not available, the returned value isinvalid @link
Coord3d.INVALID- Overrides:
getBarycentrein classDrawable- Returns:
- the center of the bounding box, or
.
invalid @link
Coord3d.INVALID
-
setDisplayed
public void setDisplayed(boolean status) Set to true or false the displayed status of this object.- Overrides:
setDisplayedin classDrawable- Parameters:
status-
-
isDisplayed
public boolean isDisplayed()Return the display status of this object.- Overrides:
isDisplayedin classDrawable
-
getDistance
Return the distance of the object center to theCamera's eye.- Specified by:
getDistancein interfaceISortableDraw- Overrides:
getDistancein classDrawable
-
getShortestDistance
- Specified by:
getShortestDistancein interfaceISortableDraw- Overrides:
getShortestDistancein classDrawable
-
getLongestDistance
- Specified by:
getLongestDistancein interfaceISortableDraw- Overrides:
getLongestDistancein classDrawable
-
setLegend
-
getLegend
-
hasLegend
public boolean hasLegend() -
setLegendDisplayed
public void setLegendDisplayed(boolean status) - Overrides:
setLegendDisplayedin classDrawable
-
isLegendDisplayed
public boolean isLegendDisplayed()- Overrides:
isLegendDisplayedin classDrawable
-
isBoundingBoxDisplayed
public boolean isBoundingBoxDisplayed()- Overrides:
isBoundingBoxDisplayedin classDrawable
-
setBoundingBoxDisplayed
public void setBoundingBoxDisplayed(boolean boundingBoxDisplayed) - Overrides:
setBoundingBoxDisplayedin classDrawable
-
getBoundingBoxColor
- Overrides:
getBoundingBoxColorin classDrawable
-
setBoundingBoxColor
- Overrides:
setBoundingBoxColorin classDrawable
-
getSpaceTransformer
- Overrides:
getSpaceTransformerin classDrawable
-
setSpaceTransformer
- Overrides:
setSpaceTransformerin classDrawable
-
toString
-
toString
-