public class SelectableScatter extends Scatter implements ISingleColorable, Selectable
Modifier and Type | Field and Description |
---|---|
protected Color |
highlightColor |
protected boolean[] |
isHighlighted |
protected Coord3d[] |
projection |
colors, coordinates, rgb, width
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
SelectableScatter(Coord3d[] coordinates,
Color[] colors) |
Modifier and Type | Method and Description |
---|---|
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object.
|
Coord3d[] |
getData() |
Color |
getHighlightColor() |
boolean |
getHighlighted(int id) |
Polygon2d |
getHull2d() |
List<Coord3d> |
getLastProjection() |
Coord3d[] |
getProjection() |
void |
project(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam) |
void |
resetHighlighting() |
void |
setData(Coord3d[] coordinates)
Set the coordinates of the point.
|
void |
setHighlightColor(Color highlightColor) |
void |
setHighlighted(int id,
boolean value) |
applyGeometryTransform, clear, drawGL2, drawGLES2, getColor, setColor, setColors, setWidth, updateBounds
addDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString, vertexGL2, vertexGLES2
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColor, setColor
protected boolean[] isHighlighted
protected Color highlightColor
protected Coord3d[] projection
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class Scatter
gl
- GL2 contextglu
- GLU contextcam
- a reference to a shooting Camera.public void project(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
project
in interface Selectable
public Coord3d[] getProjection()
public Color getHighlightColor()
public void setHighlightColor(Color highlightColor)
public void setHighlighted(int id, boolean value)
public boolean getHighlighted(int id)
public void resetHighlighting()
public void setData(Coord3d[] coordinates)
public Polygon2d getHull2d()
getHull2d
in interface Selectable
public List<Coord3d> getLastProjection()
getLastProjection
in interface Selectable
Copyright © 2016. All rights reserved.