public class Scatter extends AbstractDrawable implements ISingleColorable
Modifier and Type | Field and Description |
---|---|
Color[] |
colors |
Coord3d[] |
coordinates |
Color |
rgb |
float |
width |
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
Constructor and Description |
---|
Scatter() |
Scatter(Coord3d[] coordinates) |
Scatter(Coord3d[] coordinates,
Color rgb) |
Scatter(Coord3d[] coordinates,
Color[] colors) |
Scatter(Coord3d[] coordinates,
Color[] colors,
float width) |
Scatter(Coord3d[] coordinates,
Color rgb,
float width) |
Modifier and Type | Method and Description |
---|---|
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.
|
Coord3d[] |
getData() |
void |
setColor(Color color)
Set the color.
|
void |
setColors(Color[] colors) |
void |
setData(Coord3d[] coordinates)
Set the coordinates of the point.
|
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 Color[] colors
public Coord3d[] coordinates
public Color rgb
public float width
public Scatter()
public Scatter(Coord3d[] coordinates)
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 setData(Coord3d[] coordinates)
xyz
- point's coordinatespublic void updateBounds()
updateBounds
in class AbstractDrawable
public Coord3d[] getData()
public void setColors(Color[] colors)
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.