public class ScatterMultiColor extends AbstractDrawable implements IMultiColorable
| Modifier and Type | Field and Description |
|---|---|
protected Color[] |
colors |
protected Coord3d[] |
coordinates |
protected ColorMapper |
mapper |
protected float |
width |
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
ScatterMultiColor(Coord3d[] coordinates,
Color[] colors,
ColorMapper mapper) |
ScatterMultiColor(Coord3d[] coordinates,
Color[] colors,
ColorMapper mapper,
float width) |
ScatterMultiColor(Coord3d[] coordinates,
ColorMapper mapper) |
| 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() |
ColorMapper |
getColorMapper()
Get the colormapper.
|
Coord3d[] |
getData() |
void |
setColorMapper(ColorMapper mapper)
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.
|
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, vertexGLES2protected Coord3d[] coordinates
protected Color[] colors
protected float width
protected ColorMapper mapper
public ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper)
public ScatterMultiColor(Coord3d[] coordinates, ColorMapper mapper)
public ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper, float width)
public void clear()
public void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class AbstractDrawablegl - 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 AbstractDrawablepublic void updateBounds()
updateBounds in class AbstractDrawablepublic void setData(Coord3d[] coordinates)
xyz - point's coordinatespublic Coord3d[] getData()
public void setColors(Color[] colors)
public ColorMapper getColorMapper()
IMultiColorablegetColorMapper in interface IMultiColorablepublic void setColorMapper(ColorMapper mapper)
IMultiColorablesetColorMapper in interface IMultiColorablepublic void setWidth(float width)
width - point's widthCopyright © 2016. All rights reserved.