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, widthbbox, 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, updateBoundsaddDrawableListener, 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, vertexGLES2clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColor, setColorprotected boolean[] isHighlighted
protected Color highlightColor
protected Coord3d[] projection
public void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class Scattergl - 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 Selectablepublic 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 Selectablepublic List<Coord3d> getLastProjection()
getLastProjection in interface SelectableCopyright © 2016. All rights reserved.