org.jzy3d.plot3d.primitives
Class Scatter

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.Scatter
All Implemented Interfaces:
ISingleColorable, IGLRenderer, ISortableDraw
Direct Known Subclasses:
InteractiveScatter

public class Scatter
extends AbstractDrawable
implements ISingleColorable

Experimental 3d object.

Author:
Martin Pernollet

Field Summary
 Color[] colors
           
 Coord3d[] coordinates
           
 Color rgb
           
 float width
           
 
Constructor Summary
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)
           
 
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.
 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.
 
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
 

Field Detail

colors

public Color[] colors

coordinates

public Coord3d[] coordinates

rgb

public Color rgb

width

public float width
Constructor Detail

Scatter

public Scatter()

Scatter

public Scatter(Coord3d[] coordinates)

Scatter

public Scatter(Coord3d[] coordinates,
               Color rgb)

Scatter

public Scatter(Coord3d[] coordinates,
               Color rgb,
               float width)

Scatter

public Scatter(Coord3d[] coordinates,
               Color[] colors)

Scatter

public Scatter(Coord3d[] coordinates,
               Color[] colors,
               float width)
Method Detail

clear

public void clear()

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)

setColor

public void setColor(Color color)
Description copied from interface: ISingleColorable
Set the color.

Specified by:
setColor in interface ISingleColorable
Parameters:
color - the color

getColor

public Color getColor()
Description copied from interface: ISingleColorable
Get the color.

Specified by:
getColor in interface ISingleColorable
Returns:
color the color.

setWidth

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

Parameters:
width - point's width