|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--LineSegment
Class to represent a single line segment.
Field Summary | |
RegionPixelStats |
core_stats
stats about the pixels contained within the line's core region |
DPoint |
direction
|
DPoint |
end
the other endpoint |
EndPoint |
endpoint1
the EndPoint object corresponding to start |
EndPoint |
endpoint2
the EndPoint object corresponding to end |
int |
id
Its id - same ID as its corresponding quadric group |
QuadricGroup |
quads
|
DPoint |
start
one endpoint of the line |
double |
width
the width, in pixels |
RegionPixelStats |
wing1_stats
stats about the pixels contained in wing #1 |
RegionPixelStats |
wing2_stats
stats about the pixels contained in wing #2 |
Constructor Summary | |
LineSegment(int _id,
DPoint p1,
DPoint p2,
double w,
RegionPixelStats _core_stats,
RegionPixelStats _wing1_stats,
RegionPixelStats _wing2_stats,
QuadricGroup qg)
create a new LineSegment with given id, start, end, and width |
Method Summary | |
java.lang.String |
toString()
for debug printing |
static DPoint |
unitVector(DPoint p1,
DPoint p2)
return a unit vector representing the direction of the segment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int id
public DPoint start
public DPoint end
public double width
public RegionPixelStats core_stats
public RegionPixelStats wing1_stats
public RegionPixelStats wing2_stats
public DPoint direction
public QuadricGroup quads
public EndPoint endpoint1
public EndPoint endpoint2
Constructor Detail |
public LineSegment(int _id, DPoint p1, DPoint p2, double w, RegionPixelStats _core_stats, RegionPixelStats _wing1_stats, RegionPixelStats _wing2_stats, QuadricGroup qg)
Method Detail |
public static DPoint unitVector(DPoint p1, DPoint p2)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |