|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.mit.sketch.ddg.Constraint
edu.mit.sketch.ddg.BinaryRelationshipConstraint
edu.mit.sketch.ddg.AngleConstraint
public class AngleConstraint
This class represents the meets constraints for lines and ellipses.
AngleConstraint.java Created: Sat Nov 21 18:26:00 2001
| Field Summary | |
|---|---|
static int |
NUM_CONSTRAINTS
Total number of possible constraints (to allow iterating over the names) |
static int |
PARALLEL
|
static int |
PERPENDICULAR
|
| Constructor Summary | |
|---|---|
AngleConstraint()
Constructs an empty constraint graph. |
|
AngleConstraint(int name)
Constructs an empty constraint graph. |
|
| Method Summary | |
|---|---|
void |
addConstraints(java.util.HashMap primToGeomParts,
double[][] obstruction,
PrimitiveList primitives)
Infer the constraints from the users stroke geom parts and add them to the constraint graph. |
java.lang.Object |
clone()
Clone the constraint |
static double |
constraintConfidence(Line l1,
Line l2,
int name)
Returns the confidence that the constraint with the given name holds between two primitives |
java.lang.String |
name()
Name of the constraint type |
boolean |
orientationInvariant()
Returns true if the constraint is orinetation invariant |
| Methods inherited from class edu.mit.sketch.ddg.Constraint |
|---|
constraintGraph, labelledEdgeList, mergeIn, print, removeLowConfidence, removeLowRelevance, renamePrimitives, sameAs, setConstraintGraph, subgraph |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PARALLEL
public static final int PERPENDICULAR
public static final int NUM_CONSTRAINTS
| Constructor Detail |
|---|
public AngleConstraint()
public AngleConstraint(int name)
| Method Detail |
|---|
public boolean orientationInvariant()
orientationInvariant in class BinaryRelationshipConstraint
public void addConstraints(java.util.HashMap primToGeomParts,
double[][] obstruction,
PrimitiveList primitives)
public static double constraintConfidence(Line l1,
Line l2,
int name)
public java.lang.String name()
name in class BinaryRelationshipConstraintpublic java.lang.Object clone()
clone in class BinaryRelationshipConstraint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||