org.jzy3d.plot3d.primitives
Class MultiColorScatter

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.MultiColorScatter
All Implemented Interfaces:
IMultiColorable, IGLRenderer, ISortableDraw

public class MultiColorScatter
extends AbstractDrawable
implements IMultiColorable

A scatter plot supporting a colormap for shading each dot color and alpha.

Author:
Martin Pernollet

Constructor Summary
MultiColorScatter(Coord3d[] coordinates, Color[] colors, ColorMapper mapper)
           
MultiColorScatter(Coord3d[] coordinates, Color[] colors, ColorMapper mapper, float width)
           
MultiColorScatter(Coord3d[] coordinates, ColorMapper mapper)
           
 
Method Summary
 void clear()
           
 void draw(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL routines for rendering the object.
 void enableColorBar(ITickProvider provider, ITickRenderer renderer)
           
 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.
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiColorScatter

public MultiColorScatter(Coord3d[] coordinates,
                         Color[] colors,
                         ColorMapper mapper)

MultiColorScatter

public MultiColorScatter(Coord3d[] coordinates,
                         ColorMapper mapper)

MultiColorScatter

public MultiColorScatter(Coord3d[] coordinates,
                         Color[] colors,
                         ColorMapper mapper,
                         float width)
Method Detail

clear

public void clear()

enableColorBar

public void enableColorBar(ITickProvider provider,
                           ITickRenderer renderer)

draw

public void draw(javax.media.opengl.GL gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Specified by:
draw in class AbstractDrawable
Parameters:
gl - GL context
glu - GLU context
cam - a reference to a shooting Camera.

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: IMultiColorable
Get the colormapper.

Specified by:
getColorMapper in interface IMultiColorable

setColorMapper

public void setColorMapper(ColorMapper mapper)
Description copied from interface: IMultiColorable
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.

Specified by:
setColorMapper in interface IMultiColorable

setWidth

public void setWidth(float width)
Set the width of the point.

Parameters:
width - point's width