| Modifier and Type | Field and Description |
|---|---|
| protected Point2D[][] | |
| protected final float[][] | |
| protected int[] | |
| protected List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected double | Returns: calculated valuetarget point p, Point2D one end of a line p1, Point2D the other end of a line p2)A line from point p1 to point p2 defines an equation, adjust the form of the equation to let the rhs equals 0, then calculate the lhs value by plugging the coordinate of p in the lhs expression. |
| protected float[][] | |
| protected abstract Point2D[] | |
| protected float[][] | |
| protected abstract Point2D[] | |
| protected float[][] | |
| protected abstract Point2D[] | |
| protected double | |
| protected List | Returns: a ShadedTriangle list which can compose the grid patchall the crossing point coordinates and color of a grid patchCC)An assistant method to accomplish type 6 and type 7 shading. |
| protected boolean | Returns: true when 4 control points are on a line, otherwise falsean edge's control points, the size of ctl is 4 ctl)Whether the for control points are on a line. |
| private boolean |
| controlPoints | back to summary |
|---|---|
| protected Point2D[][] controlPoints | |
| cornerColor | back to summary |
|---|---|
| protected final float[][] cornerColor | |
| level | back to summary |
|---|---|
| protected int[] level | |
| listOfTriangles | back to summary |
|---|---|
| protected List<ShadedTriangle> listOfTriangles | |
| Patch | back to summary |
|---|---|
| pack-priv Patch(float[][] color) Constructor of Patch.
| |
| edgeEquationValue | back to summary |
|---|---|
| protected double edgeEquationValue(Point2D p, Point2D p1, Point2D p2) A line from point p1 to point p2 defines an equation, adjust the form of the equation to let the rhs equals 0, then calculate the lhs value by plugging the coordinate of p in the lhs expression. | |
| getFlag1Color | back to summary |
|---|---|
| protected float[][] getFlag1Color() Get the implicit color for flag = 1.
| |
| getFlag1Edge | back to summary |
|---|---|
| protected abstract Point2D[] getFlag1Edge() Get the implicit edge for flag = 1.
| |
| getFlag2Color | back to summary |
|---|---|
| protected float[][] getFlag2Color() Get implicit color for flag = 2.
| |
| getFlag2Edge | back to summary |
|---|---|
| protected abstract Point2D[] getFlag2Edge() Get the implicit edge for flag = 2.
| |
| getFlag3Color | back to summary |
|---|---|
| protected float[][] getFlag3Color() Get implicit color for flag = 3.
| |
| getFlag3Edge | back to summary |
|---|---|
| protected abstract Point2D[] getFlag3Edge() Get the implicit edge for flag = 3.
| |
| getLen | back to summary |
|---|---|
| protected double getLen(Point2D ps, Point2D pe) Calculate the distance from point ps to point pe. | |
| getShadedTriangles | back to summary |
|---|---|
| protected List An assistant method to accomplish type 6 and type 7 shading.
| |
| isEdgeALine | back to summary |
|---|---|
| protected boolean isEdgeALine(Point2D[] ctl) Whether the for control points are on a line.
| |
| overlaps | back to summary |
|---|---|
| private boolean overlaps(Point2D p0, Point2D p1) | |