org.jzy3d.plot3d.primitives.interactive
Class InteractiveScatter
java.lang.Object
org.jzy3d.plot3d.primitives.AbstractDrawable
org.jzy3d.plot3d.primitives.Scatter
org.jzy3d.plot3d.primitives.interactive.InteractiveScatter
- All Implemented Interfaces:
- ISingleColorable, IGLRenderer, IInteractive, ISortableDraw
public class InteractiveScatter
- extends Scatter
- implements ISingleColorable, IInteractive
A Scatter that supports an "highlighted status" to change selected point color
- Author:
- Martin Pernollet
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable |
addDrawableListener, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InteractiveScatter
public InteractiveScatter(Coord3d[] coordinates,
Color[] colors)
draw
public void draw(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
- Description copied from class:
AbstractDrawable
- Call OpenGL routines for rendering the object.
- Specified by:
draw
in interface IGLRenderer
- Overrides:
draw
in class Scatter
- Parameters:
gl
- GL contextglu
- GLU contextcam
- a reference to a shooting Camera.
project
public void project(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
- Specified by:
project
in interface IInteractive
getProjection
public Coord3d[] getProjection()
getHighlightColor
public Color getHighlightColor()
setHighlightColor
public void setHighlightColor(Color highlightColor)
setHighlighted
public void setHighlighted(int id,
boolean value)
getHighlighted
public boolean getHighlighted(int id)
resetHighlighting
public void resetHighlighting()
setData
public void setData(Coord3d[] coordinates)
- Set the coordinates of the point.
- Overrides:
setData
in class Scatter
- Parameters:
xyz
- point's coordinates
getData
public Coord3d[] getData()
- Overrides:
getData
in class Scatter
getHull2d
public java.awt.Polygon getHull2d()
- Specified by:
getHull2d
in interface IInteractive
getLastProjection
public java.util.List<Coord3d> getLastProjection()
- Specified by:
getLastProjection
in interface IInteractive