public class ScatterPoint extends AbstractDrawable implements ISingleColorable
Modifier and Type | Field and Description |
---|---|
List<LightPoint> |
points |
float |
width |
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
ScatterPoint() |
ScatterPoint(List<LightPoint> points,
float width) |
Modifier and Type | Method and Description |
---|---|
void |
add(LightPoint point) |
void |
applyGeometryTransform(Transform transform) |
void |
clear() |
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object.
|
void |
drawGL2(com.jogamp.opengl.GL gl) |
void |
drawGLES2() |
Color |
getColor()
Get the color.
|
List<LightPoint> |
getData() |
void |
setColor(Color color)
Set the color.
|
void |
setPoints(List<LightPoint> points) |
void |
setWidth(float width)
Set the width of the point.
|
void |
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
public List<LightPoint> points
public float width
public ScatterPoint()
public ScatterPoint(List<LightPoint> points, float width)
public void clear()
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- GL2 contextglu
- GLU contextcam
- a reference to a shooting Camera.public void drawGLES2()
public void drawGL2(com.jogamp.opengl.GL gl)
public void applyGeometryTransform(Transform transform)
applyGeometryTransform
in class AbstractDrawable
public void add(LightPoint point)
public void setPoints(List<LightPoint> points)
public void updateBounds()
updateBounds
in class AbstractDrawable
public List<LightPoint> getData()
public void setColor(Color color)
ISingleColorable
setColor
in interface ISingleColorable
color
- the colorpublic Color getColor()
ISingleColorable
getColor
in interface ISingleColorable
public void setWidth(float width)
width
- point's widthCopyright © 2016. All rights reserved.