public class LineStrip extends AbstractWireframeable
| Modifier and Type | Field and Description |
|---|---|
protected List<Point> |
points |
protected boolean |
showPoints |
protected boolean |
showSymbols |
protected boolean |
stipple |
protected int |
stippleFactor |
protected short |
stipplePattern |
protected SymbolHandler |
symbolHandler |
facestatus, wfcolor, wfstatus, wfwidthbbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
LineStrip() |
LineStrip(Color color,
Coord3d... coords) |
LineStrip(Coord3d... coords) |
LineStrip(int n) |
LineStrip(List<Coord3d> coords) |
LineStrip(Point c1,
Point c2) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Coord3d coord3d) |
void |
add(List<Coord3d> coords) |
void |
add(Point point) |
void |
addAll(LineStrip strip) |
void |
addAll(List<Point> points) |
void |
addAllPoints(List<Coord3d> coords) |
void |
applyGeometryTransform(Transform transform) |
void |
clear() |
void |
draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
Call OpenGL2 routines for rendering the object.
|
void |
drawLine(com.jogamp.opengl.GL gl) |
void |
drawLineGL2(com.jogamp.opengl.GL gl) |
void |
drawLineGLES2() |
void |
drawPoints(com.jogamp.opengl.GL gl) |
void |
drawPointsGL2(com.jogamp.opengl.GL gl) |
void |
drawPointsGLES2() |
void |
drawPointsIfEnabled(com.jogamp.opengl.GL gl) |
Point |
get(int p) |
double |
getDistance(Camera camera)
Return the distance of the object center to the
Camera's eye. |
Point |
getLastPoint() |
double |
getLongestDistance(Camera camera) |
List<Point> |
getPoints() |
double |
getShortestDistance(Camera camera) |
int |
getStippleFactor()
Stippled line factor.
|
short |
getStipplePattern()
Stippled line pattern.
|
SymbolHandler |
getSymbolHandler() |
boolean |
isShowPoints() |
boolean |
isShowSymbols() |
boolean |
isStipple()
Indicates if stippled rendering is enabled for this line.
|
static LineStrip |
merge(LineStrip strip1,
LineStrip strip2)
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
|
void |
setShowPoints(boolean showPoints) |
void |
setShowSymbols(boolean showSymbols) |
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)
Deprecated.
|
int |
size() |
String |
toString(int depth) |
void |
updateBounds() |
getFaceDisplayed, getWireframeColor, getWireframeDisplayed, getWireframeWidth, setFaceDisplayed, setWireframeColor, setWireframeDisplayed, setWireframeWidthaddDrawableListener, call, call, callWithAlphaFactor, colorGL2, colorGLES2, dispose, doDrawBounds, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getLegend, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, vertexGL2, vertexGL2, vertexGLES2protected boolean showPoints
protected boolean showSymbols
protected boolean stipple
protected int stippleFactor
protected short stipplePattern
protected SymbolHandler symbolHandler
public LineStrip()
public LineStrip(int n)
public LineStrip(Coord3d... coords)
public void draw(com.jogamp.opengl.GL gl,
com.jogamp.opengl.glu.GLU glu,
Camera cam)
AbstractDrawabledraw in interface IGLRendererdraw in class AbstractDrawablegl - GL2 contextglu - GLU contextcam - a reference to a shooting Camera.public void drawLine(com.jogamp.opengl.GL gl)
public void drawLineGLES2()
public void drawLineGL2(com.jogamp.opengl.GL gl)
public void drawPointsIfEnabled(com.jogamp.opengl.GL gl)
public void drawPoints(com.jogamp.opengl.GL gl)
public void drawPointsGLES2()
public void drawPointsGL2(com.jogamp.opengl.GL gl)
public void applyGeometryTransform(Transform transform)
applyGeometryTransform in class AbstractDrawablepublic void updateBounds()
updateBounds in class AbstractDrawablepublic void add(Point point)
public void add(Coord3d coord3d)
public void addAll(LineStrip strip)
public void clear()
public Point get(int p)
public Point getLastPoint()
public int size()
@Deprecated public void setWidth(float width)
public boolean isShowPoints()
public void setShowPoints(boolean showPoints)
public boolean isShowSymbols()
public void setShowSymbols(boolean showSymbols)
public boolean isStipple()
(Stippled line section)public void setStipple(boolean stipple)
(Stippled line section)public int getStippleFactor()
http://www.glprogramming.com/red/images/Image35.gif,
(Stippled line section)public void setStippleFactor(int stippleFactor)
http://www.glprogramming.com/red/images/Image35.gif,
(Stippled line section)public short getStipplePattern()
http://www.glprogramming.com/red/images/Image35.gif,
(Stippled line section)public void setStipplePattern(short stipplePattern)
http://www.glprogramming.com/red/images/Image35.gif,
(Stippled line section)public double getDistance(Camera camera)
AbstractDrawableCamera's eye.getDistance in interface ISortableDrawgetDistance in class AbstractDrawablepublic double getShortestDistance(Camera camera)
getShortestDistance in interface ISortableDrawgetShortestDistance in class AbstractDrawablepublic double getLongestDistance(Camera camera)
getLongestDistance in interface ISortableDrawgetLongestDistance in class AbstractDrawablepublic static LineStrip merge(LineStrip strip1, LineStrip strip2)
public SymbolHandler getSymbolHandler()
public void setSymbolHandler(SymbolHandler symbolHandler)
public String toString(int depth)
toString in class AbstractDrawableCopyright © 2018. All rights reserved.