org.jzy3d.plot3d.primitives.selectable
Class SelectableScatter
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.AbstractDrawable
-
- org.jzy3d.plot3d.primitives.Scatter
-
- org.jzy3d.plot3d.primitives.selectable.SelectableScatter
-
- All Implemented Interfaces:
- ISingleColorable, IGLRenderer, ISortableDraw, Selectable
public class SelectableScatter extends Scatter implements ISingleColorable, Selectable
A Scatter that supports an "highlighted status" to change selected point color
-
-
Field Summary
-
Fields inherited from class org.jzy3d.plot3d.primitives.Scatter
colors, coordinates, rgb, width
-
-
Constructor Summary
Constructors Constructor and Description SelectableScatter(Coord3d[] coordinates, Color[] colors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddraw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Call OpenGL2 routines for rendering the object.Coord3d[]getData()ColorgetHighlightColor()booleangetHighlighted(int id)Polygon2dgetHull2d()java.util.List<Coord3d>getLastProjection()Coord3d[]getProjection()voidproject(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)voidresetHighlighting()voidsetData(Coord3d[] coordinates)Set the coordinates of the point.voidsetHighlightColor(Color highlightColor)voidsetHighlighted(int id, boolean value)-
Methods inherited from class org.jzy3d.plot3d.primitives.Scatter
applyGeometryTransform, clear, drawGL2, drawGLES2, getColor, setColor, setColors, setWidth, updateBounds
-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, doTransform, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jzy3d.colors.ISingleColorable
getColor, setColor
-
-
-
-
Method Detail
-
draw
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Description copied from class:AbstractDrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Overrides:
drawin classScatter- Parameters:
gl- GL2 contextglu- GLU contextcam- a reference to a shooting Camera.
-
project
public void project(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)- Specified by:
projectin interfaceSelectable
-
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.
-
getHull2d
public Polygon2d getHull2d()
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
public java.util.List<Coord3d> getLastProjection()
- Specified by:
getLastProjectionin interfaceSelectable
-
-
DMelt 3.0 © DataMelt by jWork.ORG