|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.mit.sketch.geom.Range
|
+--edu.mit.sketch.geom.Segment
This class represents a Point described by a java.awt.geom.Line2D.Double
| Field Summary | |
edu.mit.sketch.geom.Segment.SegmentCollection |
accumulated_segments
SegmentCollection |
boolean |
included
true if included |
Segment |
left
left subsegment |
Segment |
parent
left subsegment |
Segment |
right
right subsegment |
double |
significance
Significance of this segment |
Vertex[] |
vertices
vertices |
| Fields inherited from class edu.mit.sketch.geom.Range |
max, min |
| Constructor Summary | |
Segment()
The constructor. |
|
Segment(Vertex[] vertices,
int min,
int max)
The constructor. |
|
| Method Summary | |
void |
accumulateSegments()
accumulate segments |
int |
adjustSignificance()
override to preserve maximum significance of the segments in this collection |
void |
buildTree()
build tree |
int[] |
getFeaturePointIndices()
override to preserve maximum significance of the segments in this collection |
boolean |
subdivide()
subdivide at the index with the maximum deviation return false if cannot be divided any further. |
String |
toString()
Override toString |
| Methods inherited from class edu.mit.sketch.geom.Range |
appendRanges, cloneRanges, compare, equals, vectorToArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double significance
public boolean included
public Segment parent
public Segment left
public Segment right
public Vertex[] vertices
public edu.mit.sketch.geom.Segment.SegmentCollection accumulated_segments
| Constructor Detail |
public Segment()
public Segment(Vertex[] vertices,
int min,
int max)
| Method Detail |
public String toString()
toString in class Rangepublic boolean subdivide()
public void buildTree()
public void accumulateSegments()
public int[] getFeaturePointIndices()
public int adjustSignificance()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||