public class LineDataObject extends Object implements DataObject
Constructor and Description |
---|
LineDataObject(List<Node3D> points) |
LineDataObject(List<Node3D> points,
float width) |
Modifier and Type | Method and Description |
---|---|
Appearance |
createAppearance() |
void |
dispose() |
BranchGroup |
getBranchGroup()
This is required to add to a group
|
Node |
getNode() |
void |
setColor(float r,
float g,
float v) |
void |
updateGeometry(double[] positions)
Creates a copy of the provided array to keep as a backing and updates the LineArray.
|
void |
updateGeometry(List<double[]> points)
updates the geometry of snakes, not safe if there are zero points.
|
public void dispose()
public BranchGroup getBranchGroup()
DataObject
getBranchGroup
in interface DataObject
public Appearance createAppearance()
public void updateGeometry(double[] positions)
positions
- an array containing coordinates: { x0, y0, z0, x1, y1, z1, ...}public void updateGeometry(List<double[]> points)
public Node getNode()
public void setColor(float r, float g, float v)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.