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
Experimental 3d object.
- Author:
- Martin Pernollet
-
Field Summary
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(LightPoint point) void
applyGeometryTransform
(Transform transform) void
clear()
protected void
doDrawPoints
(IPainter painter) void
Call OpenGL2 routines for rendering the object.getColor()
Get the color.getData()
void
Set the color.void
setPoints
(List<LightPoint> points) void
setWidth
(float width) Set the width of the point.void
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 Details
-
points
-
width
public float width
-
-
Constructor Details
-
ScatterPoint
public ScatterPoint() -
ScatterPoint
-
-
Method Details
-
clear
public void clear() -
draw
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
doDrawPoints
-
applyGeometryTransform
- Specified by:
applyGeometryTransform
in classDrawable
-
add
-
setPoints
-
updateBounds
public void updateBounds()- Specified by:
updateBounds
in classDrawable
-
getData
-
setColor
Description copied from interface:ISingleColorable
Set the color.- Specified by:
setColor
in interfaceISingleColorable
- Parameters:
color
- the 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
-