|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.shapelogic.imageprocessing.LineProperties
public class LineProperties
LineProperties contains properties that are important for a line when you are dealing with curved multi line.
Field Summary | |
---|---|
LineType |
_lineType
|
double |
angle
|
int |
areaNegativeDistance
|
int |
areaPositiveDistance
|
boolean |
inflectionPoint
|
double |
lastDist
|
double |
lengthOfDistanceUnit
|
int |
maxNegativeDist
|
int |
maxNegativeIndex
|
CPointInt |
maxNegativePoint
|
int |
maxPositiveDist
|
int |
maxPositiveIndex
|
double |
nextDist
|
CPointInt |
orthogonalVector
|
int |
pixelsWithAlmostZeroDistance
|
int |
pixelsWithNegativeDistance
|
int |
pixelsWithPositiveDistance
|
CPointInt |
relativeVector
|
CPointInt |
startPoint
|
static int |
STRAIGHT_LIMIT
|
Constructor Summary | |
---|---|
LineProperties()
|
Method Summary | |
---|---|
java.util.Set<LineType> |
calc()
|
LineType |
calcLineType()
The main LineType for a line there are 3 options: straight, arch, wave. |
double |
distanceToPoint(CPointInt point)
Same unnormalized point distance to line used in splitting line. |
java.util.Set<LineType> |
getCalcValue()
If dirty do calc() else return cached value. |
boolean |
isConcaveArch()
lineType needs to be set first. |
boolean |
isDirty()
|
void |
setup()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int STRAIGHT_LIMIT
public int pixelsWithPositiveDistance
public int pixelsWithNegativeDistance
public int pixelsWithAlmostZeroDistance
public int areaPositiveDistance
public int areaNegativeDistance
public int maxPositiveDist
public int maxPositiveIndex
public int maxNegativeDist
public int maxNegativeIndex
public CPointInt maxNegativePoint
public double angle
public LineType _lineType
public CPointInt startPoint
public CPointInt relativeVector
public CPointInt orthogonalVector
public double lengthOfDistanceUnit
public double lastDist
public double nextDist
public boolean inflectionPoint
Constructor Detail |
---|
public LineProperties()
Method Detail |
---|
public void setup()
setup
in interface LazyCalc<java.util.Set<LineType>>
public java.util.Set<LineType> calc()
calc
in interface Calc<java.util.Set<LineType>>
public java.util.Set<LineType> getCalcValue()
Calc
getCalcValue
in interface Calc<java.util.Set<LineType>>
public LineType calcLineType()
public double distanceToPoint(CPointInt point)
point
- an input
public boolean isConcaveArch()
public boolean isDirty()
isDirty
in interface LazyCalc<java.util.Set<LineType>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |