public class Arrow extends Object implements DataObject
Constructor and Description |
---|
Arrow()
Constructs an Arrow with default length of 1, width of 1/3, tip is 0.5 and tail_fraction is 0.4.
|
Arrow(double length,
double width)
Uses default values for tip: 0.5 of length and tail_width: 0.4 of width
|
Arrow(double length,
double width,
double tip)
Uses default tip tail_width of 0.4 cone width.
|
Arrow(double length,
double width,
double tip,
double tail_width)
Construct an arrow with the supplied geometry
|
Modifier and Type | Method and Description |
---|---|
Appearance |
createTailAppearance() |
Appearance |
createTipAppearance() |
BranchGroup |
getBranchGroup()
This is required to add to a group
|
static void |
main(String[] args) |
void |
moveTo(double x,
double y,
double z) |
void |
pointAlong(double[] direction) |
void |
setColor(Color r) |
void |
setScale(double s) |
void |
update() |
public Arrow()
public Arrow(double length, double width)
length
- length of arrow along pointing axis from tail to tip.width
- width of cone for arrowhead.public Arrow(double length, double width, double tip)
length
- length of arrow along pointing axis from tail to tip.width
- width of cone for arrowhead.tip
- fraction of length for cone section.public Arrow(double length, double width, double tip, double tail_width)
length
- width
- tip
- tail_width
- public Appearance createTailAppearance()
public void update()
public void setScale(double s)
public Appearance createTipAppearance()
public void moveTo(double x, double y, double z)
public void pointAlong(double[] direction)
public BranchGroup getBranchGroup()
DataObject
getBranchGroup
in interface DataObject
public static void main(String[] args) throws InterruptedException
InterruptedException
public void setColor(Color r)
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.