Geometry-Based Edge Clustering
 All Classes Functions
GridCell Class Reference

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...
 

Detailed Description

This class represents a cell in the regular grid that is used in the automatic creation of the control mesh.

Author
Kurt Leimer

Definition at line 11 of file GridCell.java.

Constructor & Destructor Documentation

GridCell.GridCell ( int  x,
int  y,
int  width,
int  height 
)

Creates a GridCell.

Parameters
xThe x-coordinate of the upper left corner of the GridCell.
yThe y-coordinate of the upper left corner of the GridCell.
widthThe size of the GridCell in x-direction.
heightThe size of the GridCell in y-direction.

Definition at line 27 of file GridCell.java.

Member Function Documentation

Rectangle2D GridCell.bounds ( )

Returns a Rectangle2D object representing the bounding box of the GridCell.

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.

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.

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.

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.

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.

Returns
the x-coordinate of the upper left corner.

Definition at line 40 of file GridCell.java.

int GridCell.getY ( )

Returns the y-coordinate of the upper left corner of the GridCell.

Returns
the y-coordinate of the upper left corner.

Definition at line 48 of file GridCell.java.

void GridCell.setPrimaryAngle ( double  primaryAngle)

Sets the primary angle of the Edges passing through the GridCell.

Parameters
primaryAngleThe 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.

Parameters
regionIndexThe new index of the GridRegion that the cell belongs to.

Definition at line 80 of file GridCell.java.


The documentation for this class was generated from the following file: