|
Geometry-Based Edge Clustering
|
This class represents a cell in the regular grid that is used in the automatic creation of the control mesh. More...
Public Member Functions | |
| GridCell (int x, int y, int width, int height) | |
| Creates a GridCell. More... | |
| int | getX () |
| Returns the x-coordinate of the upper left corner of the GridCell. More... | |
| int | getY () |
| Returns the y-coordinate of the upper left corner of the GridCell. More... | |
| int | getWidth () |
| Returns the size of the GridCell in x-direction. More... | |
| int | getHeight () |
| Returns the size of the GridCell in y-direction. More... | |
| int | getRegionIndex () |
| Returns the index of the GridRegion that the GridCell belongs to. More... | |
| void | setRegionIndex (int regionIndex) |
| Sets the index of the GridRegion that the cell belongs to. More... | |
| double | getPrimaryAngle () |
| Returns the primary angle of the Edges passing through the GridCell. More... | |
| void | setPrimaryAngle (double primaryAngle) |
| Sets the primary angle of the Edges passing through the GridCell. More... | |
| Rectangle2D | bounds () |
| Returns a Rectangle2D object representing the bounding box of the GridCell. More... | |
This class represents a cell in the regular grid that is used in the automatic creation of the control mesh.
Definition at line 11 of file GridCell.java.
| GridCell.GridCell | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height | ||
| ) |
| Rectangle2D GridCell.bounds | ( | ) |
Returns a Rectangle2D object representing the bounding box of the GridCell.
Definition at line 104 of file GridCell.java.
| int GridCell.getHeight | ( | ) |
Returns the size of the GridCell in y-direction.
Definition at line 64 of file GridCell.java.
| double GridCell.getPrimaryAngle | ( | ) |
Returns the primary angle of the Edges passing through the GridCell.
Definition at line 88 of file GridCell.java.
| int GridCell.getRegionIndex | ( | ) |
Returns the index of the GridRegion that the GridCell belongs to.
Definition at line 72 of file GridCell.java.
| int GridCell.getWidth | ( | ) |
Returns the size of the GridCell in x-direction.
Definition at line 56 of file GridCell.java.
| int GridCell.getX | ( | ) |
Returns the x-coordinate of the upper left corner of the GridCell.
Definition at line 40 of file GridCell.java.
| int GridCell.getY | ( | ) |
Returns the y-coordinate of the upper left corner of the GridCell.
Definition at line 48 of file GridCell.java.
| void GridCell.setPrimaryAngle | ( | double | primaryAngle) |
Sets the primary angle of the Edges passing through the GridCell.
| primaryAngle | The new primary angle of the Edges passing through the GridCell. |
Definition at line 96 of file GridCell.java.
| void GridCell.setRegionIndex | ( | int | regionIndex) |
Sets the index of the GridRegion that the cell belongs to.
| regionIndex | The new index of the GridRegion that the cell belongs to. |
Definition at line 80 of file GridCell.java.