org.jzy3d.plot3d.primitives
Class ScatterMultiColor
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.AbstractDrawable
-
- org.jzy3d.plot3d.primitives.ScatterMultiColor
-
- All Implemented Interfaces:
- IMultiColorable, IGLRenderer, ISortableDraw
- Direct Known Subclasses:
- AWTScatterMultiColor, ConcurrentScatterMultiColor
public class ScatterMultiColor extends AbstractDrawable implements IMultiColorable
A scatter plot supporting a colormap for shading each dot color and alpha.
-
-
Constructor Summary
Constructors Constructor and Description ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper)ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper, float width)ScatterMultiColor(Coord3d[] coordinates, ColorMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidapplyGeometryTransform(Transform transform)voidclear()voiddraw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Call OpenGL2 routines for rendering the object.voiddrawGL2(com.jogamp.opengl.GL gl)voiddrawGLES2()ColorMappergetColorMapper()Get the colormapper.Coord3d[]getData()voidsetColorMapper(ColorMapper mapper)Set the colormapper that will be used by the Drawable, instead of using precomputed colors.voidsetColors(Color[] colors)voidsetData(Coord3d[] coordinates)Set the coordinates of the point.voidsetWidth(float width)Set the width of the point.voidupdateBounds()-
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, doTransform, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
-
-
-
Constructor Detail
-
ScatterMultiColor
public ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper)
-
ScatterMultiColor
public ScatterMultiColor(Coord3d[] coordinates, ColorMapper mapper)
-
ScatterMultiColor
public ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper, float width)
-
-
Method Detail
-
clear
public void clear()
-
draw
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)Description copied from class:AbstractDrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classAbstractDrawable- Parameters:
gl- GL2 contextglu- GLU contextcam- a reference to a shooting Camera.
-
drawGLES2
public void drawGLES2()
-
drawGL2
public void drawGL2(com.jogamp.opengl.GL gl)
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransformin classAbstractDrawable
-
updateBounds
public void updateBounds()
- Specified by:
updateBoundsin classAbstractDrawable
-
setData
public void setData(Coord3d[] coordinates)
Set the coordinates of the point.- Parameters:
xyz- point's coordinates
-
getData
public Coord3d[] getData()
-
setColors
public void setColors(Color[] colors)
-
getColorMapper
public ColorMapper getColorMapper()
Description copied from interface:IMultiColorableGet the colormapper.- Specified by:
getColorMapperin interfaceIMultiColorable
-
setColorMapper
public void setColorMapper(ColorMapper mapper)
Description copied from interface:IMultiColorableSet the colormapper that will be used by the Drawable, instead of using precomputed colors.- Specified by:
setColorMapperin interfaceIMultiColorable
-
setWidth
public void setWidth(float width)
Set the width of the point.- Parameters:
width- point's width
-
-
DMelt 3.0 © DataMelt by jWork.ORG