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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyGeometryTransform
(Transform transform) current()
protected void
doDrawBoundsIfDisplayed
(IPainter painter) void
doTransform
(IPainter painter) void
Call 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.int
double
getDistance
(Camera camera) Return the distance of the object center to theCamera
's eye.double
getLongestDistance
(Camera camera) double
getShortestDistance
(Camera camera) Get object's transformation that is applied at the beginning of a call todraw(IPainter)
.boolean
boolean
boolean
Return the display status of this object.boolean
void
setBoundingBoxColor
(Color boundingBoxColor) void
setBoundingBoxDisplayed
(boolean boundingBoxDisplayed) void
setCurrentDrawable
(int currentDrawable) void
setDisplayed
(boolean status) Set to true or false the displayed status of this object.void
setDrawables
(List<Drawable> drawables) void
void
setLegendDisplayed
(boolean status) void
setSpaceTransformer
(SpaceTransformer spaceTransformer) void
setTransform
(Transform transform) Set object's transformation that is applied at the beginning of a call todraw(IPainter)
.void
setTransformBefore
(Transform transformBefore) toString()
toString
(int depth) void
Methods 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:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
applyGeometryTransform
- Specified by:
applyGeometryTransform
in classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBounds
in classDrawable
-
doTransform
- Overrides:
doTransform
in classDrawable
-
doDrawBoundsIfDisplayed
- Overrides:
doDrawBoundsIfDisplayed
in classDrawable
-
setTransform
Set object's transformation that is applied at the beginning of a call todraw(IPainter)
.- Overrides:
setTransform
in classDrawable
- Parameters:
transform
-
-
getTransform
Get object's transformation that is applied at the beginning of a call todraw(IPainter)
.- Overrides:
getTransform
in classDrawable
- Returns:
- transform
-
getTransformBefore
- Overrides:
getTransformBefore
in classDrawable
-
setTransformBefore
- Overrides:
setTransformBefore
in 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:
getBarycentre
in 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:
setDisplayed
in classDrawable
- Parameters:
status
-
-
isDisplayed
public boolean isDisplayed()Return the display status of this object.- Overrides:
isDisplayed
in classDrawable
-
getDistance
Return the distance of the object center to theCamera
's eye.- Specified by:
getDistance
in interfaceISortableDraw
- Overrides:
getDistance
in classDrawable
-
getShortestDistance
- Specified by:
getShortestDistance
in interfaceISortableDraw
- Overrides:
getShortestDistance
in classDrawable
-
getLongestDistance
- Specified by:
getLongestDistance
in interfaceISortableDraw
- Overrides:
getLongestDistance
in classDrawable
-
setLegend
-
getLegend
-
hasLegend
public boolean hasLegend() -
setLegendDisplayed
public void setLegendDisplayed(boolean status) - Overrides:
setLegendDisplayed
in classDrawable
-
isLegendDisplayed
public boolean isLegendDisplayed()- Overrides:
isLegendDisplayed
in classDrawable
-
isBoundingBoxDisplayed
public boolean isBoundingBoxDisplayed()- Overrides:
isBoundingBoxDisplayed
in classDrawable
-
setBoundingBoxDisplayed
public void setBoundingBoxDisplayed(boolean boundingBoxDisplayed) - Overrides:
setBoundingBoxDisplayed
in classDrawable
-
getBoundingBoxColor
- Overrides:
getBoundingBoxColor
in classDrawable
-
setBoundingBoxColor
- Overrides:
setBoundingBoxColor
in classDrawable
-
getSpaceTransformer
- Overrides:
getSpaceTransformer
in classDrawable
-
setSpaceTransformer
- Overrides:
setSpaceTransformer
in classDrawable
-
toString
-
toString
-