org.jzy3d.plot3d.rendering.view.annotation
Class BarycenterAnnotation

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.AbstractWireframeable
          extended by org.jzy3d.plot3d.primitives.AbstractComposite
              extended by 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

Field Summary
protected  AbstractGeometry annotated
           
protected  Point bary
           
protected  List<LineStrip> lines
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractComposite
color, components, detailedToString, mapper, 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
BarycenterAnnotation(AbstractGeometry annotated)
           
 
Method Summary
static List<BarycenterAnnotation> annotate(AbstractComposite 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.
 
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.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

annotated

protected AbstractGeometry annotated

bary

protected Point bary

lines

protected List<LineStrip> lines
Constructor Detail

BarycenterAnnotation

public BarycenterAnnotation(AbstractGeometry annotated)
Method Detail

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 context
glu - GLU context
camera - a reference to a shooting Camera.

annotate

public static List<BarycenterAnnotation> annotate(AbstractComposite composite)


Copyright © 2013. All rights reserved.