A rectangle for use with SignDocImage.
More...
#include <SignDocSDK-cpp.h>
A rectangle for use with SignDocImage.
The origin is in the upper left corner, the right and bottom coordinates are exclusive.
This class uses image coordinates, see Coordinate Systems.
The edges of the rectangle are parallel to the axes.
Constructor.
All coordinates will be 0.
Constructor.
- Parameters
-
[in] | aX1 | The first X coordinate. |
[in] | aY1 | The first Y coordinate. |
[in] | aX2 | The second X coordinate. |
[in] | aY2 | The second Y coordinate. |
Copy constructor.
- Parameters
-
[in] | aSource | The object to be copied. |
Get the height of the rectangle.
- Returns
- The height of the rectangle.
Get the width of the rectangle.
- Returns
- The width of the rectangle.
Get the first X coordinate.
Get the second X coordinate.
Get the first Y coordinate.
Get the second Y coordinate.
Intersect this rectangle with another one.
If either rectangle is empty, this rectangle will be empty. The resulting rectangle will be normalized.
- Parameters
-
[in] | aOther | The other rectangle. |
- See also
- isEmpty(), uniteWith()
Check if the rectangle is empty.
A rectangle is empty if the two X coordinates are equal or if the two Y coordinates are equal.
- Returns
- true iff the rectangle is empty.
Normalize the rectangle.
Normalize the rectangle to the one with lower-left and upper-right corners assuming that the origin is in the lower-left corner of the page.
This function assumes that document coordinates are used, see Coordinate Systems).
void set |
( |
int |
aX1, |
|
|
int |
aY1, |
|
|
int |
aX2, |
|
|
int |
aY2 |
|
) |
| |
|
inline |
Set the coordinates of the rectangle.
- Parameters
-
[in] | aX1 | The first X coordinate. |
[in] | aY1 | The first Y coordinate. |
[in] | aX2 | The second X coordinate. |
[in] | aY2 | The second Y coordinate. |
Unite this rectangle with another one.
Replace this rectangle with the smallest rectangle that contains both retangles.
If this rectangle is empty, it will be set to aOther. If aOther is empty, this rectangle won't be modified. The resulting rectangle will be normalized.
- Parameters
-
[in] | aOther | The other rectangle. |
- See also
- intersectWith(), isEmpty()
The documentation for this class was generated from the following file: