Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Stores a set of four Points that represent a Quadrangle region. More...
Inherits BaseJavaClass.
Public Member Functions | |
def | __init__ (self, Assist.Point leftTop, Assist.Point rightTop, Assist.Point rightBottom, Assist.Point leftBottom) |
Initializes a new instance of the Quadrangle structure with the describing points. More... | |
bool | contains (self, Assist.Point pt) |
Determines if the specified Point is contained within this Quadrangle structure. More... | |
bool | containsPoint (self, int x, int y) |
Determines if the specified point is contained within this Quadrangle structure. More... | |
bool | containsQuadrangle (self, Quadrangle quad) |
Determines if the specified Quadrangle is contained or intersects this Quadrangle structure. More... | |
bool | containsRectangle (self, Assist.Rectangle rect) |
Determines if the specified Rectangle is contained or intersects this Quadrangle structure. More... | |
bool | equals (self, Quadrangle other) |
Returns a value indicating whether this instance is equal to a specified Quadrangle value. More... | |
Assist.Rectangle | getBoundingRectangle (self) |
Creates Rectangle bounding this Quadrangle. More... | |
Assist.Point | getLeftBottom (self) |
Gets left-bottom corner Point of Quadrangle region. More... | |
Assist.Point | getLeftTop (self) |
Gets left-top corner Point of Quadrangle region. More... | |
Assist.Point | getRightBottom (self) |
Gets right-bottom corner Point of Quadrangle region. More... | |
Assist.Point | getRightTop (self) |
Gets right-top corner Point of Quadrangle region. More... | |
int | hashCode (self) |
Returns the hash code for this instance. More... | |
None | init (self) |
bool | isEmpty (self) |
Tests whether all Points of this Quadrangle have values of zero. More... | |
None | setLeftBottom (self, Assist.Point value) |
Sets left-bottom corner Point of Quadrangle region. More... | |
None | setLeftTop (self, Assist.Point value) |
Sets left-top corner Point of Quadrangle region. More... | |
None | setRightBottom (self, Assist.Point value) |
Sets right-bottom corner Point of Quadrangle region. More... | |
None | setRightTop (self, Assist.Point value) |
Sets right-top corner Point of Quadrangle region. More... | |
str | toString (self) |
Returns a human-readable string representation of this Quadrangle. More... | |
Public Member Functions inherited from BaseJavaClass | |
None | __init__ (self, javaClass) |
def | getJavaClass (self) |
str | getJavaClassName (self) |
bool | isNull (self) |
None | printJavaClassName (self) |
None | setJavaClass (self, javaClass) |
Static Public Member Functions | |
Quadrangle | construct (*args) |
Quadrangle | EMPTY () |
Represents a Quadrangle structure with its properties left uninitialized. More... | |
Public Attributes | |
leftBottom | |
leftTop | |
rightBottom | |
rightTop | |
Public Attributes inherited from BaseJavaClass | |
javaClass | |
javaClassName | |
Static Public Attributes | |
string | javaClassName = "com.aspose.mw.barcode.recognition.MwQuadrangle" |
Stores a set of four Points that represent a Quadrangle region.
def __init__ | ( | self, | |
Assist.Point | leftTop, | ||
Assist.Point | rightTop, | ||
Assist.Point | rightBottom, | ||
Assist.Point | leftBottom | ||
) |
Initializes a new instance of the Quadrangle structure with the describing points.
leftTop A Point that represents the left-top corner of the Quadrangle. | |
rightTop A Point that represents the right-top corner of the Quadrangle. | |
rightBottom A Point that represents the right-bottom corner of the Quadrangle. | |
leftBottom A Point that represents the left-bottom corner of the Quadrangle. |
|
static |
bool contains | ( | self, | |
Assist.Point | pt | ||
) |
Determines if the specified Point is contained within this Quadrangle structure.
pt The Point to test. |
bool containsPoint | ( | self, | |
int | x, | ||
int | y | ||
) |
Determines if the specified point is contained within this Quadrangle structure.
x The x coordinate. | |
y The y coordinate. |
bool containsQuadrangle | ( | self, | |
Quadrangle | quad | ||
) |
Determines if the specified Quadrangle is contained or intersects this Quadrangle structure.
quad The Quadrangle to test. |
bool containsRectangle | ( | self, | |
Assist.Rectangle | rect | ||
) |
Determines if the specified Rectangle is contained or intersects this Quadrangle structure.
rect The Rectangle to test. |
|
static |
Represents a Quadrangle structure with its properties left uninitialized.
Value: Quadrangle
bool equals | ( | self, | |
Quadrangle | other | ||
) |
Returns a value indicating whether this instance is equal to a specified Quadrangle value.
other A Quadrangle value to compare to this instance. |
Assist.Rectangle getBoundingRectangle | ( | self | ) |
Creates Rectangle bounding this Quadrangle.
Assist.Point getLeftBottom | ( | self | ) |
Gets left-bottom corner Point of Quadrangle region.
Assist.Point getLeftTop | ( | self | ) |
Gets left-top corner Point of Quadrangle region.
Assist.Point getRightBottom | ( | self | ) |
Gets right-bottom corner Point of Quadrangle region.
Assist.Point getRightTop | ( | self | ) |
Gets right-top corner Point of Quadrangle region.
int hashCode | ( | self | ) |
Returns the hash code for this instance.
None init | ( | self | ) |
Reimplemented from BaseJavaClass.
bool isEmpty | ( | self | ) |
Tests whether all Points of this Quadrangle have values of zero.
None setLeftBottom | ( | self, | |
Assist.Point | value | ||
) |
Sets left-bottom corner Point of Quadrangle region.
value | A left-bottom corner Point of Quadrangle region. |
None setLeftTop | ( | self, | |
Assist.Point | value | ||
) |
Sets left-top corner Point of Quadrangle region.
value | A left-top corner Point of Quadrangle region |
None setRightBottom | ( | self, | |
Assist.Point | value | ||
) |
Sets right-bottom corner Point of Quadrangle region.
value | A right-bottom corner Point of Quadrangle region. |
None setRightTop | ( | self, | |
Assist.Point | value | ||
) |
Sets right-top corner Point of Quadrangle region.
value | A right-top corner Point of Quadrangle region |
str toString | ( | self | ) |
Returns a human-readable string representation of this Quadrangle.
|
static |
leftBottom |
leftTop |
rightBottom |
rightTop |