org.jzy3d.plot3d.primitives
Class Scatter
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.AbstractDrawable
-
- org.jzy3d.plot3d.primitives.Scatter
-
- All Implemented Interfaces:
- ISingleColorable, IGLRenderer, ISortableDraw
- Direct Known Subclasses:
- AxeTransformableScatter, SelectableScatter
public class Scatter extends AbstractDrawable implements ISingleColorable
Experimental 3d object.
-
-
Field Summary
Fields Modifier and Type Field and Description Color[]colorsCoord3d[]coordinatesColorrgbfloatwidth
-
Constructor Summary
Constructors 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)
-
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()ColorgetColor()Get the color.Coord3d[]getData()voidsetColor(Color color)Set the color.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
-
-
-
-
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)
-
-
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
-
setData
public void setData(Coord3d[] coordinates)
Set the coordinates of the point.- Parameters:
xyz- point's coordinates
-
updateBounds
public void updateBounds()
- Specified by:
updateBoundsin classAbstractDrawable
-
getData
public Coord3d[] getData()
-
setColors
public void setColors(Color[] colors)
-
setColor
public void setColor(Color color)
Description copied from interface:ISingleColorableSet the color.- Specified by:
setColorin interfaceISingleColorable- Parameters:
color- the color
-
getColor
public Color getColor()
Description copied from interface:ISingleColorableGet the color.- Specified by:
getColorin interfaceISingleColorable- Returns:
- color the color.
-
setWidth
public void setWidth(float width)
Set the width of the point.- Parameters:
width- point's width
-
-
DMelt 3.0 © DataMelt by jWork.ORG