public class LineStrip extends AbstractWireframeable
Modifier and Type | Field and Description |
---|---|
protected List<Point> |
points |
protected boolean |
showPoints |
protected float |
width |
facestatus, wfcolor, wfstatus, wfwidth
bbox, 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, setWireframeWidth
addDrawableListener, 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, vertexGLES2
public void draw(com.jogamp.opengl.GL gl, com.jogamp.opengl.glu.GLU glu, Camera cam)
AbstractDrawable
draw
in interface IGLRenderer
draw
in class AbstractDrawable
gl
- 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 AbstractDrawable
public void updateBounds()
updateBounds
in class AbstractDrawable
public 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)
AbstractDrawable
Camera
's eye.getDistance
in interface ISortableDraw
getDistance
in class AbstractDrawable
public double getShortestDistance(Camera camera)
getShortestDistance
in interface ISortableDraw
getShortestDistance
in class AbstractDrawable
public double getLongestDistance(Camera camera)
getLongestDistance
in interface ISortableDraw
getLongestDistance
in class AbstractDrawable
public static LineStrip merge(LineStrip strip1, LineStrip strip2)
public String toString(int depth)
toString
in class AbstractDrawable
Copyright © 2016. All rights reserved.