Package org.jzy3d.plot3d.primitives
Class LineStrip
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.Wireframeable
org.jzy3d.plot3d.primitives.LineStrip
- All Implemented Interfaces:
IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
CameraPathAnnotation
,ConcurrentLineStrip
,CroppableLineStrip
,ParametricDrawable
,ParametricDrawable2
Color works as follow:
- If wireframe color is null (default), uses each point color and performs color interpolation
- Otherwise apply a uniform wireframe color.
- Author:
- Martin Pernollet
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected int
protected short
protected SymbolHandler
Fields inherited from class org.jzy3d.plot3d.primitives.Wireframeable
depthFunctionChangeForWireframe, faceDisplayed, materialAmbiantReflection, materialDiffuseReflection, materialEmission, materialShininess, materialSpecularReflection, NO_OVERLAP_DEPTH_RATIO, polygonOffsetFactor, polygonOffsetFillEnable, polygonOffsetUnit, polygonWireframeDepthTrick, reflectLight, wireframeColor, wireframeColorFromPolygonPoints, wireframeDisplayed, wireframeWidth, wireframeWithLineLoop
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
(Collection<Coord3d> coords) void
void
void
void
addAll
(Collection<Point> points) void
void
addAllPoints
(Collection<Coord3d> coords) void
applyGeometryTransform
(Transform transform) void
clear()
void
Call OpenGL2 routines for rendering the object.void
void
drawPoints
(IPainter painter) void
drawPointsIfEnabled
(IPainter painter) get
(int p) getColor()
A convenient shortcut forWireframeable.getWireframeColor()
double
getDistance
(Camera camera) Return the distance of the object center to theCamera
's eye.double
getLongestDistance
(Camera camera) double
getShortestDistance
(Camera camera) int
Stippled line factor.short
Stippled line pattern.float
getWidth()
A shortcut forWireframeable.getWireframeWidth()
boolean
boolean
boolean
Indicates if stippled rendering is enabled for this line.static LineStrip
Merge lines by selecting the most relevant connection point: A-B to C-D if distance BC is shorter than distance DA C-D to A-Bvoid
A convenient shortcut forsetWireframeColor(org.jzy3d.colors.Color)
void
setShowPoints
(boolean showPoints) void
setShowSymbols
(boolean showSymbols) void
setSpaceTransformer
(SpaceTransformer spaceTransformer) void
setStipple
(boolean stipple) Enable or disable stippled rendering.void
setStippleFactor
(int stippleFactor) Stippled line factor.void
setStipplePattern
(short stipplePattern) Stippled line pattern.void
setSymbolHandler
(SymbolHandler symbolHandler) void
setWidth
(float width) A shortcut forWireframeable.setWireframeWidth(float)
void
setWireframeColor
(Color color) Set the wireframe color.int
size()
toString
(int depth) void
Methods inherited from class org.jzy3d.plot3d.primitives.Wireframeable
applyDepthRangeDefault, applyDepthRangeForOverlying, applyDepthRangeForUnderlying, applyMaterial, doDrawBoundsIfDisplayed, getMaterialAmbiantReflection, getMaterialDiffuseReflection, getMaterialEmission, getMaterialShininess, getMaterialSpecularReflection, getPolygonOffsetFactor, getPolygonOffsetUnit, getWireframeColor, getWireframeWidth, isFaceDisplayed, isPolygonOffsetFillEnable, isPolygonWireframeDepthTrick, isReflectLight, isWireframeColorFromPolygonPoints, isWireframeDisplayed, polygonOffsetFillDisable, polygonOffsetFillEnable, polygonOffsetLineDisable, polygonOffsetLineEnable, setFaceDisplayed, setMaterialAmbiantReflection, setMaterialDiffuseReflection, setMaterialEmission, setMaterialShininess, setMaterialSpecularReflection, setPolygonOffsetFactor, setPolygonOffsetFillEnable, setPolygonOffsetUnit, setPolygonWireframeDepthTrick, setReflectLight, setWireframeColorFromPolygonPoints, setWireframeDisplayed, setWireframeWidth
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getLegend, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setTransform, setTransformBefore, toString
-
Field Details
-
points
-
showPoints
protected boolean showPoints -
showSymbols
protected boolean showSymbols -
stipple
protected boolean stipple -
stippleFactor
protected int stippleFactor -
stipplePattern
protected short stipplePattern -
symbolHandler
-
-
Constructor Details
-
LineStrip
public LineStrip() -
LineStrip
public LineStrip(int n) -
LineStrip
-
LineStrip
-
LineStrip
-
LineStrip
-
LineStrip
-
-
Method Details
-
setWireframeColor
Set the wireframe color.- Overrides:
setWireframeColor
in classWireframeable
-
setColor
A convenient shortcut forsetWireframeColor(org.jzy3d.colors.Color)
- Parameters:
color
-
-
getColor
A convenient shortcut forWireframeable.getWireframeColor()
-
draw
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
drawLine
-
drawPointsIfEnabled
-
drawPoints
-
applyGeometryTransform
- Specified by:
applyGeometryTransform
in classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBounds
in classDrawable
-
add
-
add
-
add
-
add
-
addAll
-
addAll
-
addAllPoints
-
clear
public void clear() -
get
-
getLastPoint
-
getPoints
-
size
public int size() -
setWidth
public void setWidth(float width) A shortcut forWireframeable.setWireframeWidth(float)
-
getWidth
public float getWidth()A shortcut forWireframeable.getWireframeWidth()
-
isShowPoints
public boolean isShowPoints() -
setShowPoints
public void setShowPoints(boolean showPoints) -
isShowSymbols
public boolean isShowSymbols() -
setShowSymbols
public void setShowSymbols(boolean showSymbols) -
isStipple
public boolean isStipple()Indicates if stippled rendering is enabled for this line. -
setStipple
public void setStipple(boolean stipple) Enable or disable stippled rendering. -
getStippleFactor
public int getStippleFactor()Stippled line factor. -
setStippleFactor
public void setStippleFactor(int stippleFactor) Stippled line factor. -
getStipplePattern
public short getStipplePattern()Stippled line pattern. -
setStipplePattern
public void setStipplePattern(short stipplePattern) Stippled line pattern. -
getDistance
Description copied from class:Drawable
Return the distance of the object center to theCamera
's eye.- Specified by:
getDistance
in interfaceISortableDraw
- Overrides:
getDistance
in classDrawable
-
getShortestDistance
- Specified by:
getShortestDistance
in interfaceISortableDraw
- Overrides:
getShortestDistance
in classDrawable
-
getLongestDistance
- Specified by:
getLongestDistance
in interfaceISortableDraw
- Overrides:
getLongestDistance
in classDrawable
-
merge
Merge lines by selecting the most relevant connection point: A-B to C-D if distance BC is shorter than distance DA C-D to A-B -
getSymbolHandler
-
setSymbolHandler
-
setSpaceTransformer
- Overrides:
setSpaceTransformer
in classDrawable
-
toString
-