org.jzy3d.plot3d.rendering.view.annotation
Class BarycenterAnnotation
java.lang.Object
org.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.AbstractWireframeable
org.jzy3d.plot3d.primitives.AbstractComposite
org.jzy3d.plot3d.rendering.view.annotation.BarycenterAnnotation
- All Implemented Interfaces:
- IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw
public class BarycenterAnnotation
- extends AbstractComposite
Draws the barycenter of an AbstractGeometry
and a line each point and the barycenter.
- Author:
- Martin
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractComposite |
add, add, applyGeometryTransform, clear, get, getBounds, getColor, getColorMapper, getDrawables, getTransform, isDetailedToString, remove, setColor, setColorMapper, setDetailedToString, setDisplayed, setFaceDisplayed, setTransform, setTransformBefore, setWireframeColor, setWireframeDisplayed, setWireframeWidth, size, toString, toString, updateBounds |
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 |
annotated
protected AbstractGeometry annotated
bary
protected Point bary
lines
protected List<LineStrip> lines
BarycenterAnnotation
public BarycenterAnnotation(AbstractGeometry annotated)
draw
public void draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera camera)
- Description copied from class:
AbstractComposite
- Delegate rendering iteratively to all Drawable of this composite.
- Specified by:
draw
in interface IGLRenderer
- Overrides:
draw
in class AbstractComposite
- Parameters:
gl
- GL2 contextglu
- GLU contextcamera
- a reference to a shooting Camera.
annotate
public static List<BarycenterAnnotation> annotate(AbstractComposite composite)
Copyright © 2013. All rights reserved.