public class LineStrip extends AbstractWireframeable
| Modifier and Type | Field and Description |
|---|---|
protected List<Point> |
points |
protected boolean |
showPoints |
protected float |
width |
facestatus, wfcolor, wfstatus, wfwidthbbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore| Constructor and Description |
|---|
LineStrip() |
LineStrip(int n) |
LineStrip(List<Coord3d> coords) |
LineStrip(Point c1,
Point c2) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Point point) |
void |
addAll(LineStrip strip) |
void |
addAll(List<Point> points) |
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() |
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) |
boolean |
isShowPoints() |
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 |
setWidth(float width) |
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, vertexGLES2public 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 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 addAll(LineStrip strip)
public void clear()
public Point get(int p)
public Point getLastPoint()
public int size()
public void setWidth(float width)
public boolean isShowPoints()
public void setShowPoints(boolean showPoints)
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 String toString(int depth)
toString in class AbstractDrawableCopyright © 2016. All rights reserved.