|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.arbaro.tree.Segment
A segment class, multiple segments form a stem.
Field Summary | |
int |
index
|
LevelParams |
lpar
|
double |
rad2
|
java.util.Vector |
subsegments
|
Constructor Summary | |
Segment(Stem stm,
int inx,
Transformation trf,
double r1,
double r2)
|
Method Summary | |
double |
getLength()
|
boolean |
isFirstStemSegment()
Tests, if the segment is the first stem segment |
boolean |
isLastStemSegment()
Tests, if the segment ist the last stem segment |
void |
make()
Makes the segments from subsegments |
Vector |
posFrom()
Position at the beginning of the segment |
Vector |
posTo()
Position of the end of the segment |
Transformation |
substemPosition(Transformation trf,
double where)
Calcs the position of a substem in the segment given a relativ position where in 0..1 - needed esp. for helical stems, because the substems doesn't grow from the axis of the segement |
boolean |
traverseStem(StemTraversal traversal)
Adds the segments to a mesh part. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public LevelParams lpar
public int index
public double rad2
public java.util.Vector subsegments
Constructor Detail |
public Segment(Stem stm, int inx, Transformation trf, double r1, double r2)
Method Detail |
public double getLength()
public void make()
public Transformation substemPosition(Transformation trf, double where)
trf
- the transformation of the substemwhere
- the offset, where the substem spreads out
public Vector posFrom()
public Vector posTo()
public boolean isFirstStemSegment()
public boolean isLastStemSegment()
public boolean traverseStem(StemTraversal traversal) throws TraversalException
TraversalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |