Package org.jzy3d.plot3d.primitives
Class ScatterPoint
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.ScatterPoint
-
- All Implemented Interfaces:
ISingleColorable
,IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
ConcurrentScatterPoint
public class ScatterPoint extends Drawable implements ISingleColorable
Experimental 3d object.- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description List<LightPoint>
points
float
width
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
-
Constructor Summary
Constructors Constructor Description ScatterPoint()
ScatterPoint(List<LightPoint> points, float width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(LightPoint point)
void
applyGeometryTransform(Transform transform)
void
clear()
protected void
doDrawPoints(IPainter painter)
void
draw(IPainter painter)
Call OpenGL2 routines for rendering the object.Color
getColor()
Get the color.List<LightPoint>
getData()
void
setColor(Color color)
Set the color.void
setPoints(List<LightPoint> points)
void
setWidth(float width)
Set the width of the point.void
updateBounds()
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, 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
-
points
public List<LightPoint> points
-
width
public float width
-
-
Constructor Detail
-
ScatterPoint
public ScatterPoint()
-
ScatterPoint
public ScatterPoint(List<LightPoint> points, float width)
-
-
Method Detail
-
clear
public void clear()
-
draw
public void draw(IPainter painter)
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
doDrawPoints
protected void doDrawPoints(IPainter painter)
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransform
in classDrawable
-
add
public void add(LightPoint point)
-
setPoints
public void setPoints(List<LightPoint> points)
-
updateBounds
public void updateBounds()
- Specified by:
updateBounds
in classDrawable
-
getData
public List<LightPoint> getData()
-
setColor
public void setColor(Color color)
Description copied from interface:ISingleColorable
Set the color.- Specified by:
setColor
in interfaceISingleColorable
- Parameters:
color
- the color
-
getColor
public Color getColor()
Description copied from interface:ISingleColorable
Get the color.- Specified by:
getColor
in interfaceISingleColorable
- Returns:
- color the color.
-
setWidth
public void setWidth(float width)
Set the width of the point.- Parameters:
width
- point's width
-
-